Skip to main content
gamedev.net
🔒 Locked

Zbuffer problem

Started by Asheh Apr 9, 2009 at 11:02 AM 1 replies 950+ views
Original Post
Asheh
Asheh
Clicky Ok, The process is as follows: -> Grab original depth and render target surfaces, store them. -> Set to new render target and depth buffer -> Render to the render target -> Grab the texture and render to screen. For some reason unless I use my original buffers, i get zbuffer problems? random pixels failing the depth test? Why is this??? Thanks! Ash.
MJP
MJP
Are you clearing the "new" depth buffer before using it? Are you sure depth-writes are enabled?
Asheh
Asheh
Yes and yes.

http://rafb.net/p/6rgq2B49.html

Line 215 is where i do this and the pass which is causing the problem! I have ran out of ideas!!!

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.