Depth sharing Design

Discussion area about developing or extending OGRE, adding plugins for it or building applications on it. No newbie questions please, use the Help forum for that.
kornerr
Greenskin
Posts: 110
Joined: Sun Dec 04, 2005 5:17 pm
Location: Russia
x 5
Contact:

Re: Depth sharing Design

Post by kornerr »

dark_sylinc, how's the progress?
User avatar
dark_sylinc
OGRE Team Member
OGRE Team Member
Posts: 5296
Joined: Sat Jul 21, 2007 4:55 pm
Location: Buenos Aires, Argentina
x 1278
Contact:

Re: Depth sharing Design

Post by dark_sylinc »

I'll be looking at it this weekend (I'm taking an exam today and this saturday)

Cheers
kornerr
Greenskin
Posts: 110
Joined: Sun Dec 04, 2005 5:17 pm
Location: Russia
x 5
Contact:

Re: Depth sharing Design

Post by kornerr »

Thanks in advance (Good luck with the exams!)
User avatar
dark_sylinc
OGRE Team Member
OGRE Team Member
Posts: 5296
Joined: Sat Jul 21, 2007 4:55 pm
Location: Buenos Aires, Argentina
x 1278
Contact:

Re: Depth sharing Design

Post by dark_sylinc »

kornerr wrote:Thanks in advance (Good luck with the exams!)
Thanks! I hope they went ok!!!

Quite a bug you've discovered. Turns out FBOs weren't using stencil buffers at any time! Fixed in trunk (GL; GLES & GLES2 Render systems were being affected) D3D rendersystems were fine.

Thanks for the bug report.

Cheers
Dark Sylinc

PS. Took me more time to get CEGUI working than fixing the bug itself...
kornerr
Greenskin
Posts: 110
Joined: Sun Dec 04, 2005 5:17 pm
Location: Russia
x 5
Contact:

Re: Depth sharing Design

Post by kornerr »

Thanks a lot! Works as a charm :)
User avatar
boyamer
Orc
Posts: 459
Joined: Sat Jan 24, 2009 11:16 am
Location: Italy
x 6

Re: Depth sharing Design

Post by boyamer »

This is nice feature,
I want to ask you if this featuer is included, its possible to bind depth texture to shader?
I mean if its possible to create Depth stencil texture D16 or D24X8 format and bind it as SetDepthStencilSurface during rendering of scene and after that use if as depth texture in shaders?
Or vendor hack is necessary for this?
http://aras-p.info/texts/D3D9GPUHacks.html#depth

Thanks,
User avatar
dark_sylinc
OGRE Team Member
OGRE Team Member
Posts: 5296
Joined: Sat Jul 21, 2007 4:55 pm
Location: Buenos Aires, Argentina
x 1278
Contact:

Re: Depth sharing Design

Post by dark_sylinc »

Hi!

No, it's not supported.

I remember someone wanted to implement it (was it sparkprime? I think it was in this thread) but AFAIK nothing was really done.

And yes, to implement what you're looking for, we need those hacks in directx 9.
It's natively supported in dx +10 (although Ogre doesn't use it)
Post Reply