c++ shader writing - transition from RenderMan to Arnold

c++ shader writing - transition from RenderMan to Arnold

Anonymous
Not applicable
940 Views
4 Replies
Message 1 of 5

c++ shader writing - transition from RenderMan to Arnold

Anonymous
Not applicable

I am transitioning from writing Pattern plugins for RenderMan to writing shaders for Arnold. I have made some progress but I badly need to find example c++ code to help me development my skills. Is there a download site where I can get sample shader code, examples of how to write procedural plugins etc?

0 Likes
941 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable
0 Likes
Message 3 of 5

Stephen.Blair
Community Manager
Community Manager

Those are ancient. Instead, check out the SItoA source on https://github.com/Autodesk/sitoa



// Stephen Blair
// Arnold Renderer Support
0 Likes
Message 4 of 5

Anonymous
Not applicable

Thanks Stephen. A very good resource.

0 Likes
Message 5 of 5

Anonymous
Not applicable

Thank you Stephen. When a shader is built and loaded by Hypershade it has Out Color and Out Transparency as its outputs. I think I am correct in saying that only one of the AtParamValue members can be assigned a value. For example,

sg->out.RGB() = AtRGB_value;

or

sg->out.FLT() = float_value;

My question is how does a shader assign RGB values to BOTH Out Color and Out Transparency? Finally, have any detailed docs been published that explains the nitty gritty of shader writing?

Many thanks for you help.

Malcolm

Savannah College of Art and Design

Savannah

Georgia

0 Likes