MasterZ
05-02-2006, 11:47 PM
I am looking to convert two 3D world space points to a (3 part) normal.
Is there any simple tool? MEL tool?
I am currently struggling with this route...
get the offsets XYZ
you need the rise and run to calculate the degrees
and so Fractions like XY= X / Y
for making the degrees via tan() function for tangents (I thought it was cot which does not exist in MEL).
result should be in radians.
next rad_to_deg
and them something other then divide by 360 maybe ((XYdeg/180)-1) or something to do with getting it to a range or -1 to +1 for X, Y and Z.
Any input at this point would be great, I'm suffering temporary brain freeze.
I realize this is more a math question, I don't want to create nodes to solve this that's likely too slow, but I'm open to suggestions.
Is there any simple tool? MEL tool?
I am currently struggling with this route...
get the offsets XYZ
you need the rise and run to calculate the degrees
and so Fractions like XY= X / Y
for making the degrees via tan() function for tangents (I thought it was cot which does not exist in MEL).
result should be in radians.
next rad_to_deg
and them something other then divide by 360 maybe ((XYdeg/180)-1) or something to do with getting it to a range or -1 to +1 for X, Y and Z.
Any input at this point would be great, I'm suffering temporary brain freeze.
I realize this is more a math question, I don't want to create nodes to solve this that's likely too slow, but I'm open to suggestions.
