Hello Constantin, Constantin Müller wrote: > 2010/6/16 Gerrit Voß <vo...@vossg.org>: >> one question, is GL_STENCIL_INDEX just the debugger output as usually it >> should be something like GL_STENCIL_INDEX8 ? >> >> But from http://www.opengl.org/wiki/GL_EXT_framebuffer_object#Stencil >> >> Stencil >> NEVER EVER MAKE A STENCIL buffer. All GPUs and all drivers do not >> support an independent stencil buffer. If you need a stencil buffer, >> then you need to make a Depth=24, Stencil=8 buffer, also called D24S8. >> Please search for the example about GL_EXT_packed_depth_stencil on this >> page. >> >> Could you give this a try instead. > > Thanks for this hint, it was not just debugging output, I set it > wrongly to GL_STENCIL_INDEX. > But even corrected it does not work.
Have you taken into account the quote about separate stencil buffers? I can't tell from your reply. > Another question: > Do I have to set the _sfImage Field of the Renderbuffers? only if you want to download the contents to main memory. > I did not do that for the Depthbuffer and it worked, so I didn't set > the Image of the Stencilbuffer either. > And if I have to set the Images, which OSG-Imageformat corresponds to > GL_STENCIL_INDEX8_EXT and GL_DEPTH_COMPONENT24? the OpenSG Image::PixelFormat and Image::Type enums are only aliases for the GL values of the (almost) same name, so you can use those instead. Off the top of my head I'm not sure what the correct values for a depth 24 stencil 8 buffer is though. > Could this be the missing attachment? Sorry for sticking to this, but I'm pretty sure your problem is the separate stencil buffer (it sounds like you are still using it), please use a combined depth/stencil buffer with format GL_DEPTH24_STENCIL8_EXT. Cheers, Carsten ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ Opensg-users mailing list Opensg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensg-users