Re: Iv loader

New Message Reply Date view Thread view Subject view Author view

Scott McMillan (scott++at++ht.com)
Tue, 2 Sep 1997 14:54:29 -0400 (EDT)


> Hi fellow Performers,
>
>
> Does the iv loader perform any axis swapping or anything of the like, that
> could account for a strange orientation of .iv objects?
> I get different orientations when converting iv files to other formats.
> I know that the iv loader's code is shipped with Performer but I could not
> find any trace of such stuff there...
>
> Many thanks for any hint,

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

New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:55:51 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.