Jump to content

Converting a good Velvet renderman shader for using with Mantra


Farsheed Ashouri

Recommended Posts

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

Link to comment
Share on other sites

Guest mantragora

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

post-7494-0-08984600-1366841405_thumb.jp

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.

post-7494-0-53091000-1366893482_thumb.pn

Edited by mantragora
  • Like 2
Link to comment
Share on other sites

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...