Have a look here http://www.acm.org/tog/GraphicsGems/gems/MatrixPost.c it's
not quite what you want but it might help.
-----Original Message-----
From: Aldo . [mailto:al...@ho...]
Sent: Monday, July 17, 2000 3:00 PM
To: gda...@li...
Subject: [Algorithms] Creating the world matrix
Hi!
I'm looking for a fast way to create the world matrix from the values of
pitch, yaw, roll and position(and scaling factor, perhaps), without using a
matrix operation for each value.
I would like to avoid do the folowing
WorldMatrix = MatrixIdentity();
MatrixScale(WorldMatrix, scale);
MatrixTranslate(WorldMatrix, position);
MatrixRotateX(WorldMatrix, pitch);
MatrixRotateY(WorldMatrix, yaw);
MatrixRotateZ(WorldMatrix, roll);
SetWorldMatrix(WorldMatrix);
Yes, I know the code is not efficient, and perhaps wrong, but its only a
example.
I'm using D3D Immediate Mode.
Any ideas?
Thanks in advance.
Aldo
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
_______________________________________________
GDAlgorithms-list mailing list
GDA...@li...
http://lists.sourceforge.net/mailman/listinfo/gdalgorithms-list
|