Cd to OCTANE

Forums: Cd to OCTANE
Sub forum for off topic discussion

Moderator: juanjgon

Cd to OCTANE

Postby valk » Thu Jun 25, 2015 3:15 pm

valk Thu Jun 25, 2015 3:15 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:
valk
Licensed Customer
Licensed Customer
 
Posts: 10
Joined: Thu Apr 30, 2015 10:33 pm

Re: Cd to OCTANE

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

Re: Cd to OCTANE

Postby valk » Thu Jun 25, 2015 4:00 pm

valk Thu Jun 25, 2015 4:00 pm
ah.. thank you for info juanjgon!
valk
Licensed Customer
Licensed Customer
 
Posts: 10
Joined: Thu Apr 30, 2015 10:33 pm

Return to Off Topic


Who is online

Users browsing this forum: No registered users and 1 guest

Tue Apr 16, 2024 8:33 am [ UTC ]