Cd to OCTANE

Sub forum for off topic discussion

Moderator: juanjgon

Post Reply
valk
Licensed Customer
Posts: 10
Joined: Thu Apr 30, 2015 10:33 pm

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:
User avatar
juanjgon
Octane Plugin Developer
Posts: 8867
Joined: Tue Jan 19, 2010 12:01 pm
Location: Spain

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 383 times
image000697.jpg
valk
Licensed Customer
Posts: 10
Joined: Thu Apr 30, 2015 10:33 pm

ah.. thank you for info juanjgon!
Post Reply

Return to “Off Topic”