symek Posted May 5, 2007 Share Posted May 5, 2007 Am I wrong or it is possible to use only one/object level shader when rendering object from a file? (Render from file option in render tab of object). thanks for your commnet, sy. Quote Link to comment Share on other sites More sharing options...
sibarrick Posted May 5, 2007 Share Posted May 5, 2007 Well if they are store in the geometry as shader attributes then you can use as many as you want. From the object level though yes you can only use one. Quote Link to comment Share on other sites More sharing options...
symek Posted May 5, 2007 Author Share Posted May 5, 2007 Thank you Simon, but this doesn't work for me. I was supprised and that's why I asked I can't force H. to render file with sahders specified on SOP level, only obj level shader works. don't know why... I've created geo, applied all UV, shaders and such , saved on disk and still see default shader when rendering from a file. strange... sy, Quote Link to comment Share on other sites More sharing options...
sibarrick Posted May 5, 2007 Share Posted May 5, 2007 It should work. We do it all the time. Does it render correctly with render from file turned off? Quote Link to comment Share on other sites More sharing options...
symek Posted May 6, 2007 Author Share Posted May 6, 2007 ok, I'll double check everything again. Now I'm sure it's my side rises a problem thanks, sy. Quote Link to comment Share on other sites More sharing options...
edward Posted May 6, 2007 Share Posted May 6, 2007 When you added Shader SOPs, you remembered to remove the shader path in the OBJ-level parameter right? Quote Link to comment Share on other sites More sharing options...
sibarrick Posted May 7, 2007 Share Posted May 7, 2007 Also you may need to turn on declare all shops on the specific tab on the render node, down at the bottom under SHOP references. Quote Link to comment Share on other sites More sharing options...
symek Posted May 7, 2007 Author Share Posted May 7, 2007 Also you may need to turn on declare all shops on the specific tab on the render node, down at the bottom under SHOP references. This could be the point, up to now still with no succes I'll check this trick! thanks, sy. PS What does actually mean "Auto-archive" option in Object render Tab? Quote Link to comment Share on other sites More sharing options...
old school Posted May 7, 2007 Share Posted May 7, 2007 Simon has one part right: On the Mantra ROP in the Specific folder for SHOP References turn on "Declare all SHOPs". Shaders by default are only written to the ifd file only if they are in use. If you are rendering from archives on disk then this optimization writing out ifd's will ensure that the shaders that your archive needs won't be there. This is why you have to force Houdini to declare all SHOPs in the ifd file. The second part is how you bind the primitive geometry shader attributes with the Shader SOP then write out the geometry archive to disk. If you are building a digital asset and the shaders are in a local shopnet directory in the asset then you should turn off "Use absolute SHOP paths" in the Shader SOP. Write out your geometry and use this as your archive. This will set up relative shader paths. Check out the geometry spreadsheet what is happening to the attributes. If you are just working with a normal object, you should be able to get by with the defaults on the shader SOP. Just don't rename your object, collapse to a subnet or anything else that changes the absolute path to those shaders that your geometry archive has baked in to it. There is a third option and that is to bake in the actual shader parameter string on the geometry and bake in the shader parameters. To do that, turn off "Use indirect references" on the Shader SOP then write out your geometry and use that as your geometry archive. Now all you need is the shader definitions (in an otl file) to be present in the HOUDINI_PATH when you render. Again look at the spreadsheet and you will now see opdef:... which peers in to the shader as defined in the .otl file. After all of that, it shouldn't matter if you have an object level shader defined. It will be ignored as geometry shader references have precedence. Quote Link to comment Share on other sites More sharing options...
symek Posted May 7, 2007 Author Share Posted May 7, 2007 O man! That's what we all needed I think! thanks! sy Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.