Page 1 of 1

Cd to OCTANE

PostPosted: Thu Jun 25, 2015 3:15 pm
by valk
for example : i have 5 primitives, on SOP level i did random colors on them.
what will be good way to render them with random Cd attribute from SOPs ?
:roll:

Re: Cd to OCTANE

PostPosted: Thu Jun 25, 2015 3:52 pm
by juanjgon
Currently you can't use the Cd or other attributes with Octane. Octane can't read variables from the host application at render time (all the code must be executed in the GPUs, and at render time I don't have access to external variables). This is something that I hope that Octane 3 could fix with the OSL shading.

You need a workaround. You could add to the scene a Octane shader for each random color that you need, and randomize the "shop_materialpath" attribute in the primitives at SOP level. Attached you have a sample scene and a screen grab about this workflow.

-Juanjo

Re: Cd to OCTANE

PostPosted: Thu Jun 25, 2015 4:00 pm
by valk
ah.. thank you for info juanjgon!