Jan Barglowski (jan++at++euryale.chinalake.navy.mil)
Mon, 7 Apr 1997 09:46:49 -0700 (PDT)
A few things to consider:
- That is assuming that the model you are using is "centered" at 0,0,0.
If the model's is lying a few units along an axis in it's local
coordinate system, it will appear a few units along that same axis
(unless you rotate it) in the Performer coordinate system. In other
words, the model's local origin is loaded to the Performer origin.
- Your assumption on the view position/orientation is correct.
- I've modified simple.C a *lot*, and one of the things I had to do
was modify the Near/Far clipping planes. Extend your Far clip
to 1000 or so, and you may just see the object!
> Also ,could someone explain what the following segment does, especially
> how the new position is computed?
[...code removed...]
The code rotates the view position on the XY plane in a circle of radius
2*bsphere.radius. The view angle (heading) is adjusted to look
towards the origin at the same time. The net effect is the model
loaded in by simple.c looks like it's rotating, but really the
viewpoint is travelling around the model!
> I dont know if performer has got any coordinate system like openGL(where
> you set using glOrtho)
The Performer coordinate system is shown on page 96 of the Performer
Programming Guide.
jan
--
Jan Anthony Barglowski jan++at++chinalake.navy.mil
Real-time Computer Graphics http://www1.ridgecrest.ca.us/~jan
Naval Air Warfare Center, China Lake (619) 927-1057
=======================================================================
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:01 PDT