Hi, On Fri, 2012-11-23 at 15:23 +0100, Johannes Brunen wrote: > Hello, > > > > After setting up my application for using the ShadowStage core I have a > problem that can't resolve. I have a scene with the shadow stage object > in its root core. Now, I have two kinds of windows in my app, which > render this scene (not necessarily simultanously). The first one > contains a OSG::Win32Window window and renders the shadowed scene fairly > well. However, the second window is one for which I manage the GL - > context myself. It uses a PassiveBackground and a PassiveViewport. I > have the following problem on rendering in this window: > > > > The background is completely black. If I rotate the scene (which > actually shows the shadows) I can see that no clearing is performed > anymore. Without using the ShadowStage core everythink is just fine. > > > > The performance is bad due to the map size I have choosen. But what is a > reasonable size? What value is typically used and what are the measures > to take into account for finding an appropriate value? > > > > Could anyone give me some advice here?
hmm, what is the size you are currently using ?. It is quite hard to give advise as this is highly hardware and driver dependent. I would guess most will do a trial and error search for the acceptable size on their respective hardware. > Has anyone a idea with respect to the clearing operation? The problem is the PassiveBackground, which acutally does not clear anything, it relies on the application having cleared the (window) buffers. As the shadow stage render everything in it's own FBO but reuses the outside background is misses this clear. It is a general problem for stages and passive backgrounds. I'll see if I can find a solution where the stages blit the framebuffer contents into their FBO's. kind regards gerrit ------------------------------------------------------------------------------ Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov _______________________________________________ Opensg-users mailing list Opensg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensg-users