Using .OBJ files and .mtl files

   6557   4   2
User Avatar
Member
350 posts
Joined: 6月 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
833 posts
Joined: 1月 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
For my Houdini tutorials and more visit:
https://www.youtube.com/c/RightBrainedTutorials [www.youtube.com]
User Avatar
Member
655 posts
Joined: 2月 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: 8月 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
8 posts
Joined: 7月 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