1
$\begingroup$

How can I have numbers 0-360 be mapped to a range from -45 to 0 to +45 using math nodes / geometry nodes? I was thinking of using the map range node with a mod node but got confused.

img

I also looked at How to put an attribute value in "from Min" from "Attribute map range" node?

Example: 0-360 goes from -45 < \theta < 45

$\endgroup$
3
  • 3
    $\begingroup$ From Min: 0, From Max: 360, To Min: -45, To Max: 45. I don't know why you put the 0 step inbetween the -45 and 45... $\endgroup$ Commented Mar 4, 2022 at 7:03
  • $\begingroup$ I watched several map range videos and just got really confused..that 0 is supposed to be \theta. $\endgroup$
    – Rick T
    Commented Mar 4, 2022 at 7:17
  • 4
    $\begingroup$ Well, I see. Okay, but that's not necessary ;) You plug a value to be converted into the Value input. In the From section you give the range of input values you want to be mapped. In the To section you put the range it should be mapped to. If you switch Min and Max in one section you can also map an ascending range to a descending range etc. If you activate Clamp it means, values lower than From Min will all be mapped to To Min and everything higher than From Max will get To Max. Without Clamp those values will be interpolated relative to the mapping. $\endgroup$ Commented Mar 4, 2022 at 7:22

1 Answer 1

3
$\begingroup$

Just to be able to mark this question as solved, here is a short answer from the comments:

From Min and From Max here define the range of values passed.

To Min and To Max define the range to which these values should be mapped.

The option Clamp limits the output to the values defined with To Min and To Max.

enter image description here

Tip: Possibly, since we are obviously dealing with angles here, you would need to use the Math node To Radians for further processing.

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .