Scott McMillan (scott++at++ht.com)
Tue, 2 Sep 1997 14:54:29 -0400 (EDT)
Yes, the iv loader does add a 90 degree rotation about the X axis. This is
done because the Inventor world uses Y up and the Performer World uses Z
up. Sometimes I find this added transformation a hassle as well. If you
want to remove it you may edit the iv loader file. The pertinent function is
pfdConvertFrom_iv(), and around line 2154 you will find the following:
// Transform from GL/Inventor's Y-up coordinate system to Performer's Z-up
mat.makeRot(90.0f, 1, 0, 0);
pfRoot = new pfSCS(mat);
Ideally it would be nice to remove this node altogether (and pfFlatten will
accomplish that) but you can change the 90.0 to 0.0 to achieve the desired
result.
--
Scott McMillan | HT Medical, Inc. | Developing medical VE's
scott++at++ht.com | http://www.ht.com | surgical simulations
Ph: 301-984-3706 |6001 Montrose Rd., #902| and surgery simulation
Fax: 301-984-2104 | Rockville, MD 20852 | creation tools.
=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
Submissions: info-performer++at++sgi.com
Admin. requests: info-performer-request++at++sgi.com
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:55:51 PDT