View Full Version : Transformation Matrix Help
darktding 05-15-2005, 03:52 PM Can someone please tell me whats wrong with this mel command
{
matrix $test[4][4] =
<<
0.73373, 0, -0.679441, 0;
-0.528025, 0.62932, -0.570215, 0;
0.427586, 0.777146, 0.461751, 0;
5.298673, 10.155224, 5.738297, 1
>>;
xform -m $test spotLight1;
}
thanks in advance
|
|
darktding
05-15-2005, 04:02 PM
Ah forget it I got the result
{
matrix $test[4][4] =
<<
0.73373, 0, -0.679441, 0;
-0.528025, 0.62932, -0.570215, 0;
0.427586, 0.777146, 0.461751, 0;
5.298673, 10.155224, 5.738297, 1
>>;
xform -ws -m
($test[0][0]) ($test[0][1]) ($test[0][2]) ($test[0][3])
($test[1][0]) ($test[1][1]) ($test[1][2]) ($test[1][3])
($test[2][0]) ($test[2][1]) ($test[2][2]) ($test[2][3])
($test[3][0]) ($test[3][1]) ($test[3][2]) ($test[3][3])
spotLight1 ;
}
darktding
05-16-2005, 05:47 PM
I have stumbled upon another problem,
How do I know what is the rotation and translation part in the matrix?
James Jacobs
05-17-2005, 11:56 PM
The first twelve numbers create the co-ordinate space.
The last four numbers represent the location where the base of the co-ordinate space is placed.
-jj
CGTalk Moderation
05-17-2005, 11:56 PM
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.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.