Joaquin Casillas Melendez (jcasilla++at++glup.eleinf.uv.es)
Thu, 30 Oct 1997 18:35:21 -0800 (PST)
> Hello,
>
> I am working on a flight simulator and using OpenGL to draw head-up
> display during the draw callback. I need to show 3D symbology on the HUD. These
> 3D symbology is a imagine 3D object in the space if you see through the HUD. Do
> you have any suggestion how to draw this 3D object on the HUD?
>
> I am thinking of creating the real "imagine" 3D object in my simulation
> environment and let this object show up only inside the HUD area. How can I
> show this object only inside the HUD area?
>
> I am very appreciate for your help.
You can achieve that by using the stencil buffer. You can assign a predraw
callback for the HUD that activates the stencil buffer and sets a
determined value to the stencil func (with gl or OpenGL calls). Then you
must assign a predraw callback to your "imagine" object node with the same
stencil value than the HUD, so the 3D object will be only drawn over the
HUD. In the postdraw callbacks you only have to disable the stencil test.
Hope this helps.
> >
> --
>
> ______________________________________________________________________________
>
> ("`-''-/").___..--''"`-._ Ren-Jye Yu
> `6_ 6 ) `-. ( ).`-.__.`) Email :renjye++at++python.tamu.edu
> (_Y_.)' ._ ) `._ `. ``-..-' Phone(O) :(409) 845-0729
> _..`--'_..-_/ /--'_.' ,' (H) :(409) 691-8570
> (il),-'' (li),' ((!.-' Address :Aerospace Engineering Department
> H.R. Bright Building
> Texas A&M University
> College Station 77840-3141
> _______________________________________________________________________________
>
> =======================================================================
> List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
>
__________________________________________________________________
/ / / / / / / / / / / / / ARTEC / / / / / / / / / / / / / / / / /
Joaquin Casillas Melendez e-mail: jcasilla++at++glup.eleinf.uv.es
LISITT (ARTEC) Phone: +34 6 360 4484
Dept. Electr. & Informatics Addr: Hugo de Moncada 4.
University of Valencia 46010 Val.(SPAIN)
=======================================================================
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:56:09 PDT