Jeff Brickley (jbrickley++at++lmwsmr.lesc.lockheed.com)
Thu, 30 Oct 1997 09:49:31 -0600
Jeffry J. Brickley
SRS Technologies
White Sands Missile Range, NM
P.S. this is taken from some real code, and stripped of the actual guts, so
I hope I didn't take anything important out....
/*____________________________________________________________________*\
Do all post draw operations, most significantly the HUD text.
\*____________________________________________________________________*/
void Draw_HUD(void)
{
pfPushState();
pfDisable(PFEN_LIGHTING);
pfBasicState();
/* draw stuff within scene in 3D */
glPushMatrix();
glLoadIdentity();
glDisable( GL_DEPTH_TEST );
/* save Projection matrix */
glMatrixMode( GL_PROJECTION );
glPushMatrix();
/* reset world space to display status */
glLoadIdentity();
glOrtho( -10.5, 10.5, -10.5, 10.5, -1.0, 1.0 );
/* restore projection matrix */
glPopMatrix();
/* restore previous modelview transformations */
glMatrixMode( GL_MODELVIEW );
glPopMatrix();
pfPopState();
/* Turn on the depth buffer */
pfEnable(PFEN_LIGHTING);
glEnable( GL_DEPTH_TEST );
}
----------
From: Ren-Jye Yu
To: info-performer
Subject: How to draw 3D object inside the HUD?
Date: Friday, October 31, 1997 3:29AM
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.
--
____________________________________________________________________________
__
("`-''-/").___..--''"`-._ 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
------ Message Header Follows ------
Received: from emss02g01.ems.lmco.com by MKTPO.mkt.lesc.lockheed.com
(PostalUnion/SMTP(tm) v2.1.6 for Windows NT(tm))
id AA-1997Oct30.042947.1074.23935; Thu, 30 Oct 1997 04:29:47 -0600
Received: from mailgw1.lmco.com ([192.31.106.3])
by lmco.com (PMDF V5.1-10 #20543) with ESMTP id <0EIV00IQW176VR++at++lmco.com>
for
jbrickley++at++lmwsmr.lesc.lockheed.com; Thu, 30 Oct 1997 03:30:43 -0700 (MST)
Received: from betty.globecomm.net ([207.51.48.28])
by mailgw1.lmco.com (PMDF V5.1-10 #20547)
with ESMTP id <0EIV00C0816JBF++at++mailgw1.lmco.com> for
jbrickley++at++lmwsmr.lesc.lockheed.com; Thu, 30 Oct 1997 03:30:40 -0700 (MST)
Received: from sgi.sgi.com (SGI.COM [192.48.153.1])
by betty.globecomm.net (8.8.7/8.8.0) with SMTP id FAA26774 for
<jbrickley++at++programmer.net>; Thu, 30 Oct 1997 05:28:05 -0500 (EST)
Received: from holodeck.csd.sgi.com ([150.166.145.108])
by sgi.sgi.com (950413.SGI.8.6.12/970507) via ESMTP id CAA14579; Thu,
30 Oct 1997 02:26:49 -0800 (guest++at++holodeck.csd.sgi.com)
Received: by holodeck.csd.sgi.com (950413.SGI.8.6.12/911001.SGI)
for info-performer-dist++at++holodeck.csd.sgi.com id WAA28378; Wed,
29 Oct 1997 22:55:43 -0800
Received: from rock.csd.sgi.com by holodeck.csd.sgi.com via ESMTP
(950413.SGI.8.6.12/911001.SGI) for <info-performer++at++holodeck.csd.sgi.com> id
WAA28353; Wed, 29 Oct 1997 22:55:42 -0800
Received: from sgi.sgi.com by rock.csd.sgi.com via ESMTP
(950413.SGI.8.6.12/910805.SGI) for <info-performer++at++relay.csd.sgi.com> id
WAA13170; Wed, 29 Oct 1997 22:55:42 -0800
Received: from python.tamu.edu (python.tamu.edu [128.194.11.99])
by sgi.sgi.com (950413.SGI.8.6.12/970507) via ESMTP id WAA28621 for
<info-performer++at++sgi.com>; Wed,
29 Oct 1997 22:55:41 -0800 (renjye++at++python.tamu.edu)
Received: (from renjye++at++localhost)
by python.tamu.edu (950413.SGI.8.6.12/950213.SGI.AUTOCF)
id AAA01373 for info-performer++at++sgi.com; Thu, 30 Oct 1997 00:56:35 -0600
Date: Thu, 30 Oct 1997 00:56:35 -0600
From: Ren-Jye Yu <renjye++at++python.tamu.edu>
Subject: How to draw 3D object inside the HUD?
To: info-performer++at++sgi.com
Message-id: <9710300056.ZM1372++at++python.tamu.edu>
MIME-version: 1.0
X-Mailer: Z-Mail (3.2.3 08feb96 MediaMail)
Content-type: text/plain; charset=us-ascii
=======================================================================
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