by juanjgon » Thu Jun 25, 2015 3:52 pm
juanjgon
Thu Jun 25, 2015 3:52 pm
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
- Attachments
-
- random_shading.zip
- (20.79 KiB) Downloaded 305 times
-