Simon Mills (simon++at++wgs.estec.esa.nl)
Wed, 27 Oct 1999 09:49:37 +0200
I would suggest you still use the Multigen Instrumentation option to
create your instruments. From what you say these would be just 2D
panels, not HUD's. In Performer you can set up a 2D orthogonal
projection, attach your models to the scene graph and off you go. The
extra calculations of culling etc. would normally be done in another
process and *should* be much quicker than drawing your geometry and so
will not slow you down. If the extra CPU cycles really matter then you
could set up culling callbacks that trivially return always in view. If
you want a HUD then I think (I haven't tried this) you could still use
MG geometry. Load them but don't attach to the scene graph. In the post
draw callback set up an othogonal projection using OpenGL and then use
immediate mode to draw the geosets (pfGeoSet::draw) in your loaded MG
geometry.
IMHO the flexibility and ease of using the MG Instrumentation option and
Performer outweighs any minimal performance gain from hand-coded OpenGL
(I have used both methods in the past). I may be a little biased since
I'm mostly making research simulators where flexibility is more
important than absolute performance. On the other hand I wish the MG
Instrumentation option could also output OpenGL code for embedding in
applications like some other packages can (e.g. VAPS).
> Thanks for you help.
>
> -----------------------------------------------------------------------
> List Archives, FAQ, FTP: http://www.sgi.com/software/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
-- Regards, Simon ________________________________________________________________________Simon C. Mills Modelling & Simulation Section (TOS-EMM) Tel: +31 (0)71 565 3725 European Space Agency (ESA/ESTEC) Fax: +31 (0)71 565 5419 Postbus 299, 2200AG Noordwijk e-mail: simon++at++wgs.estec.esa.nl The Netherlands http://www.estec.esa.nl/wmwww/EMM ________________________________________________________________________
This archive was generated by hypermail 2.0b2 on Wed Oct 27 1999 - 00:51:00 PDT