Jump to content

PxrOSL, ris_oslshader, how to use them?


violalyu

Recommended Posts

Hi everyone!

I was trying to see how OSL works in houdini, and there's pxrOSL and ris_oslShader in the RIS NET, and this is what I did for testing purpose, it doesn't seems to work. I did bind export in the ris_oslShader and exported a const color red, referenced it in PxrOSL and wired the result into pxrDisney, but the base color didn't change. Has anyone tried these nodes yet? Please advice, thanks a lot!!!

 

Screenshot.png

Link to comment
Share on other sites

  • 9 months later...
  • 1 year later...

You might have seen it already, but this example file from SideFX shows how it works pretty reasonably.

http://www.sidefx.com/docs/houdini/nodes/vop/ris_OSLshader.html

As far as I learned from my experiment, when you put a parameter for exporting, like using "Always" or "When Input is Connected", you can't change the default value on the exposed parameter for this.
As soon as you change the default value, somehow the OSL network becomes invalid.

For the Pxr OSL node, I tested with some compiled OSL shaders, but never made it happen... Even though this shader works with Renderman in Maya.

Edited by teddy8193
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...