Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Search this Thread Display Modes
  08 August 2007


Been thinking on and off to try and solve this one now, i cant seem to come up with a solution. Iam trying to make a condition (using conditionnode/s) that only is true when both the first term an second term is 1. Both the first term and the second term is variable, so at times, both terms are 0, which means the conditionnode spits out true (since "Equal" means equal regardless). But i want it only to spit out true when 1 == 1, not when 0 == 0. Been trying to figure out how to use other nodes in conjunction with conditionnodes to solve the problem but so far havnt come up with a solution. Anyone?

  08 August 2007
Hi. This is simply a cascade of two nodes. The first one taking the input and evaluating if they are the same, the same taking as input the the output of the first one and the other input should be 1, a costant number. Then you can evaluate even in the second node if they are the same value.

  08 August 2007
If your values only range from 0-1, you can use an "average" node and a "condition" node working together to get the result you want.

Take both values and average them.
This will only produce a "1" when both inputs are "1".

Run the output from the "average" node to the "condition" node.
Set it to "equal" and set the other term to "1".

With this setup the output of the "condition" node will only produce a "1" if both of your values are "1".

Keep in mind this is only reliable if the original values are between 0-1.
  08 August 2007
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
Thread Closed share thread

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Society of Digital Artists

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 11:10 PM.

Powered by vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.