Planetside Software Forums

General => Terragen Discussion => Topic started by: cyphyr on August 10, 2009, 08:27:29 PM

Title: Switch node?
Post by: cyphyr on August 10, 2009, 08:27:29 PM
Any idea how to build a switch node?
What I'd like to be able to do is have a node I could switch on or off (highlight and press "d") that when in one state would channel all the preceding nodes one way and not the other and when its in the other state it would do the reverse. It would be useful for switching between simplified preview shader stares and much more complex embedded child chains  and sets of shaders.
Just an idea and I'm wondering if it could be simply constructed with some functions and hidden in an internal network...
:)
Richard

Ooh and can I have a "pass through" node? please ... :)
Title: Re: Switch node?
Post by: Hetzen on August 10, 2009, 08:44:48 PM
Use a "conditional scaler" with your if/else results as your child chains, and the input is a "constant" with a value of one that you can unplug to give zero....
Title: Re: Switch node?
Post by: cyphyr on August 10, 2009, 08:53:16 PM
Rendering now but that just might fit my needs nicely ;) Thankyou
Richard
Title: Re: Switch node?
Post by: Hetzen on August 10, 2009, 09:09:20 PM
No problem. Not tried it myself in this context before, but should work.

I too would like some sort of solo,on/off node as well though. The solo being that anything plugged into any number of these seperate nodes, when one is switched to 'solo', the others switch off. Then switch back on, when all the 'solo' buttons are un checked.
Title: Re: Switch node?
Post by: Matt on August 12, 2009, 05:01:58 PM
A Merge Shader, if you set "Mix to A" = 1, will allow you to switch between shader trees. Because it's a surface shader, not just a function, it will work with all shader effects including displacement. A function node won't allow you to do that.

Matt