home home

downloads files

forum forum

docs docs

wiki wiki

faq faq

Cube & Cube 2 FORUM


How to render Z-Depth

by Zizaco on 08/10/2009 21:12, 5 messages, last message: 08/29/2009 09:45, 1142 views, last view: 04/27/2024 13:23

Our team wrote a SSAO shader that uses only the Z-depth of a scene and returns a black and white texture to be multiplied in screen. Ok, but we are having difficulties to render a good z-depth(with a descent gradient) and with models(not only the map geometry).

Does anyone knows an easy way to perform z-depth render with the dynamic models?

   Board Index   

#1: ..

by eihrul on 08/10/2009 23:28

Take a look at the depthfx code. Although once you get into using floating point texture formats and such, it can become somewhat of a minefield of stupid/nasty driver bugs.

reply to this message

#2: Message censored by administrator

by ATIRULE2.0 on 08/11/2009 00:20

#3: Re: ..

by Zizaco on 08/11/2009 13:21, refers to #1

eihrul,

To become a "minefield of video driver bugs" is not a problem, cause we pretend to make the game primary compatible with only one card model.

so to fix the depth gradient i should set the texture to floating point format?

how can i render the depthmap with the dynamic models(players, objects) into it?

thanks

reply to this message

#4: Re: ..

by eihrul on 08/11/2009 21:58, refers to #3

This is one of those situations where for me to explain it all would be as complicated as me going and implementing it myself.

reply to this message

#5: ..

by geartrooper2 on 08/29/2009 09:45

so please explain. ;D

reply to this message

   Board Index   


Unvalidated accounts can only reply to the 'Permanent Threads' section!


content by Aardappel & eihrul © 2001-2024
website by SleepwalkR © 2001-2024
53862556 visitors requested 71637648 pages
page created in 0.024 seconds using 10 queries
hosted by Boost Digital