Re: Best HUD in Perfomer

New Message Reply Date view Thread view Subject view Author view

Sharon Fischler (srf++at++rose)
Fri, 8 Oct 1993 15:22:50 -0700


+>---- On Oct 8, 4:26pm, Reed Whittington wrote:
> Subject: Best HUD in Perfomer
->
->
->
->I'm looking for the most efficient way to implement HUD symbology on
->top of a performer visual. I have tried drawing to the overlay plane
->in a post draw call back. This tends to task the graphics pipe more
->than would be expected. Even drawing every 10th frame creates a big
->spike. I have considered putting the symbology in its own pfChannel.

Draw your static info in the overlay planes and ONLY redraw it
when the window receives a REDRAW event (moved, resized, etc.).
Changing between drawing to the overlays and drawing to regular
bitplanes takes a big hit.

For things that need to be updated real-time,
you can set
        zfunction(ZF_ALWAYS);
        zwritemask(0x0);
draw stuff
        zfunction(ZF_LEQUAL);
        zwritemask(0xffffffff);

If you have a whole lot of stuff to draw, then it might
        faster to just turn off zbuffer but I would think
        that most HUDs aren't that dense.

you also want to disable fog BEFORE you change the
projection matrix (ortho2).

srf.

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Sharon Rose Fischler - Silicon Graphics, Advanced Graphics Development
srf++at++sgi.com   (415) 390 - 1002   MS 7L-590
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:50:03 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.