Eric Heft (eheft++at++dnaco.net)
Tue, 30 Jul 1996 14:35:31 -0400 (EDT)
This should be an easy question. I'm loading an f16 image
into a hacked version of perfly. I'm using pfDCSRot and pfDCSTrans
to control the position of the aircraft. What I'm having trouble
with is the scale.
I'd like to scale the aircraft's size using pfDCSScale so
my x,y,z values are in feet, but I don't know how to find out
the original size of the aircrafts model is done in.
I think it should be something like ...
1. load aircraft under a DCS node. -- done
2. get bounding box -- I can lookup.
3. get overall dx/dy/dz of the bounding box.
4. calculate DCS fudge factor based on dx/dy/dz and the
real f16 dimensions of 49.5' by 32.7'
5. call pfDCSScale and then I can Trans based on
"real" world coordinates.
If there is an easer way I'd love to become informed. Until
then I'm going to be RTFMing. >:)
Thanks
-- Eric
=======================================================================
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:53:14 PDT