Re: [info-performer] Overlay for HUD

Date view Thread view Subject view Author view

From: jcasilla (jcasilla++at++isoco.com)
Date: 02/05/2004 03:03:42


Paolo Farinelli wrote:
> 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
>
>

Good point Paolo. I have checked that when drawing some text in a
postdraw callback and works great both in normal and stereo mode (should
I do that glDraw call only when drawing in stereo?). Performance seems
to be good, so I think I will try implementing the HUD with postdraw
callback rather than with overlay planes. I have no experience with
overlays, and it seems a lot of people have succeded with the postdraw way.

Thank very much your for your response.

Regards,
Joaquín

-- 
-------------------------------------------------------------------------
Joaquín Casillas Meléndez, R+D Engineer at iSOCO
Intelligent Software Components, S.A. http://www.isoco.com
Addr: Profesor Beltrán Báguena, 4, oficina 107, 46009 Valencia
Voice: +34 96 346 71 43 Fax: +34 96 346 71 42


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Thu Feb 05 2004 - 03:18:39 PST