Expresso Maths problem

Become a member of the CGSociety

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

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
Old 11 November 2005   #1
Expresso Maths problem

please can someone put me out of my misery and help me solve this problem, I have a range mapper with an input of min: 0 max: 2 and the output needs to be zero when the input equals zero and 100 when the input equals one and back to zero when the the input eqauls two. Is this posible with a range mapper or do I need to use more than one and some kind of bolean to switch it over, thanks,

Peter
__________________
www.marshalstudios.com
 
Old 11 November 2005   #2
Hi,
use two range mappers and an add node.
The first Range mapper is set to an input range of 0 - 0.5 the second to 0.5 - 1
The output range of the first is set to 0 - 1 and for the second it's 0 - (-1)
Set both rangemappers to clamp upper and lower, add the result of the two nodes and feed your value o 0 - 1 in both range mappers.

Voila

Cheers
Björn
__________________
- www.bonkers.de -
The views expressed on this post are my personal opinions and do not represent the views of my employer.
 
Old 11 November 2005   #3
Howdy,

Here's one way you can do it.

The Condition node is set to "greater than 1" (input > 1).
The first Range Mapper is set to input 0 to 1 and output 0 to 100.
The second Range Mapper is set to input 1 to 2 and output 100 to 0.

Adios,
Cactus Dan

Edit: oops sorry, it looks like Srek already answered your question before I could finish on the reply. (I'm a bit slow I reckon)
__________________
It doesn't matter what people say about you, just as long as they're talking about you.

cactus3d.com, cactus3d-Plugins, CD Character Plugins forum

Last edited by Cactus Dan : 11 November 2005 at 10:26 PM.
 
Old 11 November 2005   #4
Thanks for the solutions, it is working great now
__________________
www.marshalstudios.com
 
Old 11 November 2005   #5
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
CGSociety
Society of Digital Artists
www.cgsociety.org

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

All times are GMT. The time now is 12:09 AM.


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