material switch

Forums: material switch
Newtek Lightwave 3D (exporter developed by holocube, Integrated Plugin developed by juanjgon)

Moderator: juanjgon

material switch

Postby spigolo » Sun May 14, 2017 7:17 am

spigolo Sun May 14, 2017 7:17 am
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
spigolo
Licensed Customer
Licensed Customer
 
Posts: 292
Joined: Fri Jun 04, 2010 5:16 am
Location: Florence Italy

Re: material switch

Postby juanjgon » Sun May 14, 2017 9:10 am

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

Re: material switch

Postby spigolo » Mon May 15, 2017 5:55 am

spigolo Mon May 15, 2017 5:55 am
Thanks Juanio!
It's similar to the technic I used in LW!

Great
3dsign studio
Advanced visual communication
http://www.3dsign.it
spigolo
Licensed Customer
Licensed Customer
 
Posts: 292
Joined: Fri Jun 04, 2010 5:16 am
Location: Florence Italy

Return to Lightwave 3D


Who is online

Users browsing this forum: No registered users and 6 guests

Tue Mar 19, 2024 2:03 pm [ UTC ]