misterwolfy
09-30-2010, 06:48 AM
Never mind, I think it's:
Add 20 to the value and divide by 40.
-------
Anyone know the formula to re-map coordinate values like -20x -20z to 0u 0v. I think this may be called "normalizing".
I have a 40 x 40 grid that goes from -20 x z to positive 20 x z, so there are a total of 1681 discreet locations. How do I re-map each location so that they can be described as between 0 and 1, so -20x-20 is 0x0 and 20x20 is 1x1... 0x0 would be 0.5x0.5, etc.
I need these values so I can plug them into another function.
Add 20 to the value and divide by 40.
-------
Anyone know the formula to re-map coordinate values like -20x -20z to 0u 0v. I think this may be called "normalizing".
I have a 40 x 40 grid that goes from -20 x z to positive 20 x z, so there are a total of 1681 discreet locations. How do I re-map each location so that they can be described as between 0 and 1, so -20x-20 is 0x0 and 20x20 is 1x1... 0x0 would be 0.5x0.5, etc.
I need these values so I can plug them into another function.
