Hello Carsten, thanks for the patch, but that seems not to help very much... I did the following test: - Render scene with Dither Shadow and 1 shadow light -> example 1 - Destroy GL context and create new GL context - Call reinitializeAllGLObjects() for my window - Render scene with Dither Shadow and 1 shadow light -> example 2 - Move the camera a bit around - Render scene with Dither Shadow and 1 shadow light -> example 3
In example 1, the DitherShadowMap seems to use two textures, 1 for the scene (unit 0) and 1 for the shadow map information (unit 1). After creating a new GL context there seems to be no shadow map bound anymore and the map used for the scene seems to be somehow random... Regarding its size, I'll send you the example data off the list. Hope it helps... Thanks, Michael 2.) -------- Original-Nachricht -------- > Datum: Wed, 01 Feb 2012 14:50:15 -0600 > Von: Carsten Neumann <carsten_neum...@gmx.net> > An: opensg-users@lists.sourceforge.net > Betreff: Re: [Opensg-users] OpenSG1.8 - Problem with ShadowViewport > Hello Michael, > > On 02/01/2012 09:54 AM, Michael Raab wrote: > > yes, that fixes the problem for Dither shadows. Thanks. > > ok, I've fixed the other shadow types as well and committed the change. > > > My colleagues yet reported another issue. > > After switching the pixel format and recreating the GL context, the > > ShadowViewport seems to be damaged as well. > > I guess Textures, FBO and so on need also to be recreated for the new > > context. > > Is there a smart way to do so? > > hmm, the problem seems to be that the used FBOs are not created as > OpenSG GLObjects (which allows to keep track to which context they > belong). > Can you give the attached a try (again Dither mode only)? > > Cheers, > Carsten -- Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ Opensg-users mailing list Opensg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensg-users