http://GameProgrammer.Com

Programming

GP Mailing List
     Thread Index
     Date Index

ATXGPSIG List
     Thread Index
     Date Index

Google
>

Home

Wise2Food



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gameprogrammer] Re: openglHow



On Sunday 29 April 2007, Stephen Smith wrote:
> Do you need to draw transparent objects last, to ensure that "hidden"
> objects are  taken into account by GL?  (If you see what I mean).

All translucent surfaces has to be drawn last without the depth buffer 
writes being enabled. The depth test of course should be enabled.

Even the order they are drawn can form some rounding errors.
In most situations the difference caused by these different drawing 
orders is quite small.

This cumulation error can be eliminated or at least minimized by drawing 
to an offscreen buffer with at least 64 bit per pixel. Modern hardware 
support up to 128 bit per pixel color buffers. Normally using these 
more accurate color buffers will slow the drawing so much that it 
really is not worth the extra accuracy.


---------------------
To unsubscribe go to http://gameprogrammer.com/mailinglist.html