Jump to content

OBJ Import Material Links


Recommended Posts

Hi,

 

 

I guess thats a pretty easy question but I couldn't figure it out yet. So I have an obj import that consists out of a big amount of pieces. Importing it to other apps brings in the materials too. So I just can work on those materials insteat of reselecting everything. Importing that obj to Houdini doesn't show any materials. Why is that? 

Link to comment
Share on other sites

Houdini OBJ importer actually supports materials assignment, it just doesn't import / create them based on mtl files  - you can spot a  primitive attribute shop_materialpath pointing to something like /shop/Material_name (as found in obj file). Importer doesn't touch mtl file though, so materials have to be created manually. Note also that materials assignment inside OBJ file itself is based on primitive groups, which also end up in Houdini, so you can assign new materials based on those groups rather than rely on per primitive attribute.

Link to comment
Share on other sites

If you have a choice you could try FBX, which supports basic materials. You could also look around as there were a couple of MTL parsers for Houdini around. It's a trivial task if you know a little Python. Unfortunately Houdini is hardly used in a scenarios where obj files with mtl becomes handy. Also most Houdini materials seriously overcomes MTL specification. 

Link to comment
Share on other sites

Anyway, I can do it like this. But another problem: I can't merge all resulting material node together for rendering. This is causing shading errors. I can display one material at a time and render the whole thing with proper material assignment on one set of primitives. As soon as I try to merge two material nodes together…shading issues.

 

I need to blast the primitives depending on their group. So how can I blast them based on this selection expression? @shop_materialpath=="/shop/Cruiseship_cleanup_v003_rpr:Glas_Grey_DisplaySG"

Edited by Heraklit
Link to comment
Share on other sites

  • 1 year later...
  • 1 year later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...