Planetside Software Forums

General => Terragen Discussion => Topic started by: masakami on February 01, 2010, 01:03:01 PM

Title: How to output z-buffer/depth buffer
Post by: masakami on February 01, 2010, 01:03:01 PM
Hello,

I'm now looking for how to output z-buffer.

In Quick Search, I found that by using depth shader I can create z-buffer images.
http://forums.planetside.co.uk/index.php?topic=3437.msg35340#msg35340

But I could not find depth shader.

Do anyone know about it?
Title: Re: How to output z-buffer/depth buffer
Post by: cyphyr on February 01, 2010, 01:09:01 PM
For Depth Shader read Distance Shader in the colour shader group. Attach it to your render camera and set the min and max amounts and your ready to go.
Hope this helps
Richard
Title: Re: How to output z-buffer/depth buffer
Post by: Tangled-Universe on February 01, 2010, 05:17:08 PM
Here's pretty much everything you need:

http://www.nwdanet.com/terragen-tutorials/9-dof-effect.html (http://www.nwdanet.com/terragen-tutorials/9-dof-effect.html)
http://www.nwdanet.com/terragen-tutorials/8-distance-shader-magic.html (http://www.nwdanet.com/terragen-tutorials/8-distance-shader-magic.html)

Cheers,
Martin
Title: Re: How to output z-buffer/depth buffer
Post by: masakami on February 02, 2010, 06:41:12 AM
Thank you all!!

I'll try it. :D