Shader Effector & Changing Material

Forums: Shader Effector & Changing Material
A public forum for discussing and asking questions about OctaneVR.

Shader Effector & Changing Material

Postby Arash » Sun Jul 01, 2018 10:49 pm

Arash Sun Jul 01, 2018 10:49 pm
Hi

I am using the Shader Effector in order to control the size and color of my Cloner object through a black and white image as you can see in the attachment, I managed to use a gradient to achieve different color based on different height but just wondering if I also can change material instead, like the black value get material A (Glass) and white value get material B (Rough Metal) for instance.

I hope my explanation was clear enough. I appreciate if anyone can help.


Thanks
Attachments
Capture.PNG
Arash
Licensed Customer
Licensed Customer
 
Posts: 4
Joined: Fri Jan 13, 2017 1:45 pm

Re: Shader Effector & Changing Material

Postby bepeg4d » Mon Jul 02, 2018 9:29 am

bepeg4d Mon Jul 02, 2018 9:29 am
Hi,
please, have a look at the documentation:
Instance Color
Instance Range
ciao Beppe
User avatar
bepeg4d
Octane Guru
Octane Guru
 
Posts: 9940
Joined: Wed Jun 02, 2010 6:02 am
Location: Italy

Re: Shader Effector & Changing Material

Postby Arash » Mon Jul 02, 2018 1:18 pm

Arash Mon Jul 02, 2018 1:18 pm
Hi,
please, have a look at the documentation:
Instance Color
Instance Range
ciao Beppe

--------------------------------------------------------

Thanks for your reply Beppe

I afraid the answer is not relevant to my question as I am looking for a way to change the entire material rather than changing color by a gradient.
Please correct me if I am wrong.
Based on the image I posted I need the columns that are blue turns to glass for example and when the height is lower they turn rough metal (just an example of how I meant by changing material in the topic)

Cheers
Arash
Licensed Customer
Licensed Customer
 
Posts: 4
Joined: Fri Jan 13, 2017 1:45 pm

Re: Shader Effector & Changing Material

Postby Metcalf951 » Tue Jul 03, 2018 9:38 am

Metcalf951 Tue Jul 03, 2018 9:38 am
Take a cube, activate display color under basics tab, activate interactive render region, make a new material, go to your color channel and select the mograph color shader, drop the material on your cube, now change your display color. Your material samples the display color.

Delete the color shader from the color channel, activate alpha channel, select the mograph color shader again, go to your cubes display color and set it to some grey color, change the grey to black or to white – your object will change opacity/alpha depending on this grey value.
Metcalf951
 
Posts: 1
Joined: Tue Jul 03, 2018 9:30 am

Re: Shader Effector & Changing Material

Postby Arash » Fri Jul 13, 2018 7:24 pm

Arash Fri Jul 13, 2018 7:24 pm
Thanks :D
Arash
Licensed Customer
Licensed Customer
 
Posts: 4
Joined: Fri Jan 13, 2017 1:45 pm

Return to OctaneVR Questions & Discussion


Who is online

Users browsing this forum: No registered users and 4 guests

Thu Mar 28, 2024 10:14 pm [ UTC ]