From: Hugh Fisher (hugh.fisher++at++anu.edu.au)
Date: 09/26/2002 16:30:15
> From: Jonathan Guay <jguay++at++cae.com>
> Date: Wed, 25 Sep 2002 17:44:58 -0400
> Subject: [info-performer] Overlays
>
> Hi,
>
> Is it possible to display overlay with performer?
> I have a camera view looking at a 3d scene. This camera is also moving in
> the 3d scene. I want to be able to display text or simple 2d graphics (fix
> size) on top of this camera view. Can someone tell me which performer
> functions I can use to achieve this?
One way is to create a node with custom pre- and post- draw
callbacks that switch Performer into 2D orthographics and
back to 3D respectively.
I think the best way is to create a separate channel on the
same window that is reserved for 2D graphics. Removes any
problems with Z buffering or other interference between 2D
and 3D graphics.
Blatant plug:
<http://cs.anu.edu.au/~hugh.fisher/3dstuff/pfvelab.tar>
is a library of useful Performer classes, including HUD
and TextHUD for doing overlays.
Hope this helps.
Hugh Fisher
DCS, ANU
This archive was generated by hypermail 2b29 : Thu Sep 26 2002 - 16:30:44 PDT