Hello Carsten, > >> I didn't find the code for the buffer-clearing, but I think the > >> functionality for the packed buffer might be missing. > >> Would you tell me where the code is, or take a look at the part? > > > > Clearing is handled by the backgrounds, see OSGSolidBackground.cpp: > > SolidBackground::clear() for the OpenGL calls. > > > > Going to run your code next, perhaps that gives a clue where things go > > wrong. > > hm, unfortunately that did not help me a lot. However, after looking at > more OpenGL logs from running the program I think there might be a > problem with the states set on the chunks of the ChunkOverrideGroup, > e.g. near the end of Voxelization::discretize() there is > stencilCh->setStencilFunc(GL_NEVER) which will prevent rendering to the > colour buffers because the stencil test never passes. > Can you double check the state changes you make match the algorithm you > are implementing and compare with the OpenGL logs if they set the > correct state? I don't know what the passes you are rendering need to do > exactly, so this is difficult for me to check. >
Thank you anyway for trying it. I got some questions concerning the clearing of the stencil buffer. I found the StencilChunk function setClearBuffer and found a mailinglist thread for the purpose of the function, but I guess I didn't get how to use it properly. I should call stencilChunk->setClearBuffer(1) to clear the stencilbuffer before the rendering and setClearBuffer(2) for clearing the buffer after rendering, as far as I understand it. Am I supposed to call the function with 0 for no clearing? Or has it to be a negative value as for background->setClearStencilBit? Do these two functions collide in their functionality, because I thougt the setClearStencilBit would control the clearing of the buffers. thanks, Constantin PS: Is there any other documentation or description of the functions of OpenSG where I could find how to use the setClearBuffer function or other functions and what the parameters have to be? ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ Opensg-users mailing list Opensg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensg-users