Request for direct access to z-buffer

Discuss about anything related to the Irrlicht Engine, or read announcements about any significant features or usage changes.
Post Reply
slavik262
Posts: 753
Joined: Sun Nov 22, 2009 9:25 pm
Location: Wisconsin, USA

Request for direct access to z-buffer

Post by slavik262 »

Currently Irrlicht doesn't allow the user to access the internal z-buffer, forcing code that needs a depth buffer to spend another render pass using a depth shader to acquire one (i.e. XEffects). Is there any way that Irrlicht (in a future version) could expose the internal z-buffer?
3DModelerMan
Posts: 1691
Joined: Sun May 18, 2008 9:42 pm

Post by 3DModelerMan »

Yeah, that would be nice.
That would be illogical captain...

My first full game:
http://www.kongregate.com/games/3DModel ... tor#tipjar
slavik262
Posts: 753
Joined: Sun Nov 22, 2009 9:25 pm
Location: Wisconsin, USA

Post by slavik262 »

Any response from the dev team?
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Yeah, that would be nice. :wink:
alexionne
Posts: 55
Joined: Fri Jun 22, 2007 9:55 am
Location: Novi Sad, Serbia

Post by alexionne »

If someone finds way to access internal z-buffer of OpenGL/DirectX, please let me know ;-)
ent1ty
Competition winner
Posts: 1106
Joined: Sun Nov 08, 2009 11:09 am

Post by ent1ty »

hybrid wrote:Yeah, that would be nice. :wink:
Well - it's up to you :)
irrRenderer 1.0
Height2Normal v. 2.1 - convert height maps to normal maps

Step back! I have a void pointer, and I'm not afraid to use it!
Ion Dune
Posts: 453
Joined: Mon Nov 12, 2007 8:29 pm
Location: California, USA
Contact:

Post by Ion Dune »

Well arguably since this is an open source project, its up to all of us too :lol:
DtD
Posts: 264
Joined: Mon Aug 11, 2008 7:05 am
Location: Kansas
Contact:

Post by DtD »

Is it even possible to access the internal Z-buffer?
Lonesome Ducky
Competition winner
Posts: 1123
Joined: Sun Jun 10, 2007 11:14 pm

Post by Lonesome Ducky »

I seem to remember directx 10 had a method for getting the zbuffer as a texture, but it was often slower than writing to a texture yourself if I remember.
alexionne
Posts: 55
Joined: Fri Jun 22, 2007 9:55 am
Location: Novi Sad, Serbia

Post by alexionne »

DtD wrote:Is it even possible to access the internal Z-buffer?
With DirectX<=9 and OpenGL<3 it is not possible - you need to render your own z-buffer.
DtD
Posts: 264
Joined: Mon Aug 11, 2008 7:05 am
Location: Kansas
Contact:

Post by DtD »

Well if what Lonesome Ducky says is true, then it doesn't seem to matter since rendering our own Z-buffer seems to be better anyway.
Post Reply