Using .OBJ files and .mtl files

   1913   4   2
User Avatar
Member
281 posts
Joined: June 2016
Offline
Hi

Trying to use some .obj files downloaded from Turbosquid.

They also come with .mtl and .xfr files.

After importing the .obj using a File SOP, how do you import and apply the materials?
User Avatar
Member
403 posts
Joined: Jan. 2018
Offline
I have personally found that it's easier for me to create a new Mantra or Redshift material and re-apply it manually rather that try to figure out how to get Houdini to utilize the .mtl file. But I am curious to see if someone else has a better solution.
>>Kays
User Avatar
Member
645 posts
Joined: Feb. 2006
Offline
I would love to see the exact same approach as Keyshot… truly drag and drop integrated to their shader tech rather than doing a hack… It is so effective!!!
User Avatar
Member
98 posts
Joined: Aug. 2014
Offline
art3mis
Hi

Trying to use some .obj files downloaded from Turbosquid.

They also come with .mtl and .xfr files.

After importing the .obj using a File SOP, how do you import and apply the materials?

Material assignment, including multiple materials, should be readable as shop_materialpath attribute. You can checkout by MMB over File SOP, is there an attribute. In spreadshit (RMB for menu) you can see the name. In case of Maya obj export, that's name of shading group, something like /shop/phong2SG or like. That means, if there is material in SHOP network called phong2SG, it is assigned to every polygon in scene, having attribute with same name. For using MAT network instead, attribute should be renamed to something like /mat/phong2SG.
All what I said is only about assignment, considering re-building the material in H. Anyway, it makes possible to do assignments to polygons in other 3d and do automatic update in H, by reloading node or scene.
User Avatar
Member
5 posts
Joined: July 2013
Offline
Hi,
I created a little obj and mtl importer for Houdini, Objilla. It creates materials, assigns colors, textures, transparency, supports multi-material obj import and multiple obj import. Hope you will find it useful.
https://www.sidefx.com/forum/topic/70201/ [www.sidefx.com]
  • Quick Links