Hi,

On 07/12/10 18:47, Thorsten Roth wrote:
Hi,

I have multiple render targets attached to separate color buffers in my
application. One of them is used to store linearized, normalized depth
values as well as absolute depth values and some additional information.
My problem now is that this color buffer should in fact be cleared with
the value 1 for the normalized depth component instead of the background
color component which is set for the viewer camera.

So, is there any (easy?) way to do this?
If you consider a fragment shader running prior to you rendering easy, then yes :)

Can i use separate clear colors
for separate color buffers?
I don't think so.

Would be really important, as I do not
really want to be forced to do a further "normalization" of my buffer
afterwards... ;-)

How are you writing to the buffers? glFragData?

jp



Thanks!

-Thorsten
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


--
This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html.

This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support.

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to