Re: texture as a background

New Message Reply Date view Thread view Subject view Author view

From: Marcin Romaszewicz (marcin++at++asmodean.engr.sgi.com)
Date: 04/24/2001 09:48:12


A billboard would work, but you would need to be very careful to draw it
at the far plane. A better way would be to create your own draw callback
in which you clear the depth buffer, disable it, draw a textured quad and
then re-enable the depth buffer. You can avoid clearing the depth buffer
if you disable the depth test and draw your quad at the far plane. I'm not
sure which way is faster.

-- Marcin

On Tue, 24 Apr 2001, Stephane Jaeger wrote:

> Hi ,
> is there any quick mean/sample that clears the framebuffer to a bitmap
> instead of a solid color. ( the bitmap being stored in a texture). Do
> you think that the fastest way to do that would be to use a billboard
> correctty set ?
> Thanks,
> Stephane
>
> -----------------------------------------------------------------------
> List Archives, FAQ, FTP: http://www.sgi.com/software/performer/
> Open Development Project: http://oss.sgi.com/projects/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
>


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Tue Apr 24 2001 - 09:48:17 PDT

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