Hello Constantin, On 10/18/2010 07:44 AM, Carsten Neumann wrote: >> Datum: Mon, 18 Oct 2010 11:34:35 +0200 >> Von: "Constantin Müller"<constantinmuelle...@googlemail.com> >> 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. Cheers, Carsten ------------------------------------------------------------------------------ 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