From: Allan Schaffer (allan++at++sgi.com)
Date: 05/24/2000 12:57:16
On May 24, 3:41pm, Dickinson, John wrote:
> A bunch of us have noted that inventor files we load into scenes are often,
> if not always, rotated 90 degrees.
[...]
> However documentation on the loaders is sparse (read almost non-existent)
> and leaves me wondering if the loader for inventor files can be "tweaked".
Definitely. Source code for the Inventor loader is shipped in
the performer_dev.src.loader subsystem in Performer 2.2; look to
/usr/share/Performer/src/lib/libpfdb/libpfiv
> Anyone had similar experience with inventor files being rotated while
> loading or tweaked the loader using this or other methods?
This (the rotation) is intentional. Inventor has a Y-up world
coordinate system, whereas Performer's is Z-up. So when loading
inventor files we give it a 90 degree rotation about the X axis so
that something modelled "upright" in inventor will appear "upright"
in Performer. See line ~2156 of pfiv.C:
// 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);
Allan
-- Allan Schaffer allan++at++sgi.com Silicon Graphics http://reality.sgi.com/allan
This archive was generated by hypermail 2b29 : Wed May 24 2000 - 12:57:20 PDT