Farsheed Ashouri Posted April 24, 2013 Share Posted April 24, 2013 My question is simple, but kind of confusing for me. I use a Renderman shader withs PRman and it's perfect for me. now that I switched to Houdini with Mantra, I really need the exact shader to use in my productions. 1- How can I convert it to an otl file? 2- Is it possible to convert .sl source file to .vfl? 3- what is the difference between rsl and vex? are they similar? 4- Where can I write vex code directly and render it with Mantra? Thank you in advanced! FA_velvet.sl fa_velvet_renderman_shader.tar.gz Quote Link to comment Share on other sites More sharing options...
Guest mantragora Posted April 24, 2013 Share Posted April 24, 2013 (edited) 1- How can I convert it to an otl file? You can convert it to otl but you will still get renderman shader. It will not work with mantra. http://www.gravatoni...ri_hrman_03.htm 2- Is it possible to convert .sl source file to .vfl? Sure, just rewrite it. I'm not a shader guy and I always forget about - "vector to light"/"eye vector" - which is which in Vex . Anyway, try attached file. Never seen Rman velvet shader on my eyes so I'm not sure is it working correctly. For now it works only with micropolygon engine. velvetTest.hip 3- what is the difference between rsl and vex? are they similar? Yes . http://www.sidefx.co...e/transitioning 4- Where can I write vex code directly and render it with Mantra? http://www.sidefx.co...odes/vop/inline http://www.sidefx.co...des/vop/snippet or select/create New Operator Type from File menu and pick "Surface Shader Operator" and "Vex Type". Then you can write your code in it instead of using VOPs. PS. is it complete shader code ? "Ks" is not used at all there and output color is not multiplied by specular so it doesn't affect output at all. Below renders are after adding "Ks * specular" multiplication. Edited April 25, 2013 by mantragora 2 Quote Link to comment Share on other sites More sharing options...
Farsheed Ashouri Posted April 29, 2013 Author Share Posted April 29, 2013 WoOw... Thank you for complete answer. And thanks for the hip. I learned alot. The shader is complete for my goal of-course 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.