Hi Carsten,

> Your card does support the GL_EXT_packed_depth_stencil extension, right?
>

Yes, I tested this.


> I have missed a problem with the Image creation in your last mail, sorry
> - I've never tried reading back or using a packed depth stencil buffer,
> so this is a learning experience for me.

This is a learning experience for me, too ;)
I get quite interesting views on parts of OpenSG, I didn't even know
were existing.

> Try this:
>
> depthimage = OSG::Image::create();
> depthimage->set(GL_DEPTH_STENCIL_EXT, sizex, sizey,
>                 1, 1, 1, 0.0, NULL, GL_UNSIGNED_INT_24_8_EXT);
>
> The format has to be DEPTH_STENCIL and the data type is
> UNSIGNED_INT_24_8 according to this in the glReadPixels call, according
> to this page in the book "OpenGL Extensions Guide":
> <http://books.google.com/books?id=VDqw6MK5NJMC&pg=PA345&lpg=PA345&dq=opengl+read+packed+depth+stencil&source=bl&ots=VbZVa8A85P&sig=gkf46Q9UYXp8dSrIlWsMnkIJ7ao&hl=en&ei=yiR1TN6XAoH58AbpxNypBg&sa=X&oi=book_result&ct=result&resnum=8&ved=0CEAQ6AEwBw#v=onepage&q=opengl%20read%20packed%20depth%20stencil&f=false>
>

Unfortunately this did not help.

I read the specification on this site
(http://www.opengl.org/sdk/docs/man/xhtml/glReadBuffer.xml).
There the Parameter 'mode' has to specify a COLOR-buffer, but the
depth/stencil-buffer isn't a colorbuffer or am I missing something?
Maybe the problem is there?


Thanks for your patience
Constantin

------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
Opensg-users mailing list
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to