From: Paolo Farinelli (paolo++at++sgi.com)
Date: 02/04/2004 14:28:39
Hi,
if you decide to render your HUD in a postdraw callback,
you can avoid having to draw the HUD twice (once for each eye)
by drawing into both left and right back buffers simoultaneously.
Use glDrawBuffer(GL_BACK); for this.
Regards,
Paolo
jcasilla wrote:
> Hi all,
>
> I need to draw 2D graphic stuff (HUD) in top of a 3D stereo visual.
> I'm using a Quadro 980XGL, and it appears to support hardware overlay
> planes.
>
> I don't know if using overlay planes is better in terms of performance
> than doing opengl calls in a postdraw callback. I will have to draw
> the HUD once for each eye, and 2D information will be updated in every
> frame. Does anybody know which is the best way to achieve this?
>
> Thanks in advance for any help.
>
-- Paolo Farinelli paolo++at++sgi.com Member of Technical Staff, OpenGL Performer 1-650-933-1808 Silicon Graphics 1600 Amphitheatre Pkwy, Mountain View, CA 94043
This archive was generated by hypermail 2b29 : Wed Feb 04 2004 - 14:28:52 PST