material switch

Newtek Lightwave 3D (exporter developed by holocube, Integrated Plugin developed by juanjgon)

Moderator: juanjgon

Post Reply
spigolo
Licensed Customer
Posts: 292
Joined: Fri Jun 04, 2010 5:16 am
Location: Florence Italy
Contact:

Hello
im producing a yacht animation in Octane.
I have 2 make 2 setup: daylight and night

The problem is that many furniture's materials in the night setup became backlighted or luminous and i was wondering if there is a sort of material
switch so that I can assign 2 different Octane material to the same object and activate them when i need rather than having a copy of the objects with different materials.
In lw material node I did this in the past, associating a null position to a switch material but I don't know if it is possible to be done in Octane.

Many thanks
3dsign studio
Advanced visual communication
http://www.3dsign.it
User avatar
juanjgon
Octane Plugin Developer
Posts: 8867
Joined: Tue Jan 19, 2010 12:01 pm
Location: Spain

Hi,

One solution can be used the material mixer to configure the two materials and use the Float Texture node to control the material to be used. To switch all the materials in the scene using only one control object, you can use the "E" envelope feature of the Float Texture node, adding an expression to the graph editor as you can see in the attached image.

In the example, the expression is [controlObject.Position.X, 1], so you can control the material to be used moving the "controlObject" null to 0.0 in X to use one material and to 1.0 to use the other material.

Hope this helps,
-Juanjo
Attachments
image-001506.jpg
spigolo
Licensed Customer
Posts: 292
Joined: Fri Jun 04, 2010 5:16 am
Location: Florence Italy
Contact:

Thanks Juanio!
It's similar to the technic I used in LW!

Great
3dsign studio
Advanced visual communication
http://www.3dsign.it
Post Reply

Return to “Lightwave 3D”