Page 1 of 1

i have a quick trig question.

Posted: Sun Dec 31, 2006 2:21 pm
by Darco
does anybody know the equation to convert radians into xyz coordinates? or, if its even possible? im trying to get the cinematic lighting from halo 2 into max, and i have the values for color and radians, but i have no idea how to position them.

Posted: Sun Dec 31, 2006 2:28 pm
by fishface617
I know a bit of trig, does this have anything to do with coordinates on the unit circle?

Posted: Sun Dec 31, 2006 2:52 pm
by Darco
i think, i used to know this stuff but its been a few years since i was in trig.

Posted: Sun Dec 31, 2006 3:26 pm
by The_Hushed_Casket
Well, radians are angle measures, so they should not convert to spatial coordinates. However you could be dealing with polar coordinates which use an angle measure and a distance, but that seems unlikely, especially in a 3D environment. If you did have polar coordinates in 2 dimensions, the formula would be (where r is the distance and θ is the angle)
X = r * cos(θ)
Y = r * sin(θ)
However, again, I doubt you are dealing with polar coordinates. While they could be easily expanded into three dimensions, it would be trivial; especially in a game.

Posted: Sun Dec 31, 2006 5:02 pm
by Darco
thanks, i just made up a z-value and it think it turned out pretty good.


Image