Hello Johannes, On 06/27/2016 04:42 AM, Johannes wrote: > I have changed the function setupAdaptLuminanceMaterial in line 1026 in > the following way: > > I replaced the following line of code (line 1041) > > chunkMat->addChunk(pData->getLuminanceTexObjChunk(), 0); > > with this one > > chunkMat->addChunk(pData->getAdaptLuminanceTexObjChunk(!pData->getCurrentAdaptLuminanceIdx()), > 0); > > and the problem is gone for me. Could you check that in your setup please.
hmm, it now is non-deterministic, i.e. sometimes it works sometimes it does not. I suspect that is because the texture contents are indeed undefined. Ideally we would have a way to issue a glClearTex{Sub,}Image call to initialize the texture content. > Actually, that is the line that is intended by theory. I did have used > the initial line of code for the following reason. I have first > programmed the complete example in a pure OpenGL setup without OpenSG. > There, I couldn't initialize the last adapted luminance texture without > actually rendering it first. Therefore, I fooled the setup insofar that > I initialized the last adapted luminance texture for the first 'ping', > with the luminance texture written by the luminance render target. I > expected the same must hold in OpenSG land and mapped the code accordingly. > > Ok, when this also works for you, I would like to ask you if the code > can be added into the OpenSG2 code base? I went ahead and added it anyway, that should hopefully make it easier to iterate on it since it only requires sending patches instead of entire files. Thank you for contributing this! Cheers, Carsten ------------------------------------------------------------------------------ Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San Francisco, CA to explore cutting-edge tech and listen to tech luminaries present their vision of the future. This family event has something for everyone, including kids. Get more information and register today. http://sdm.link/attshape _______________________________________________ Opensg-users mailing list Opensg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensg-users