Hello Johannes, On 09/20/2010 02:50 PM, Johannes Brunen wrote: > "Carsten Neumann"<carsten_neum...@gmx.net> schrieb im >> With those changes (modified file is attached) the image is not all >> black any more, however there is something wrong with the tiling (I get >> 9 copies of the torus instead of one big one) >> > So that one is open.
yes, I did not look closely at the code that manipulates viewports and adds decorators. However, I've noticed that you set stage->setCamera(vp0->getCamera()); before creating any decorators. The view that is rendered into the FBO is determined by the stage's camera, so it probably should be one of the decorators. You also don't necessarily need the stage_viewport, just adding the stage to the scene is enough and the view it renders into the FBO is independent of any viewports on the main window. >> and it is unlit (because >> the light source is part of the internal nodes the SSM places on top of >> the user provided scene and therefore is not included when rendering >> only the user provided scene into the FBO). >> > I did expect that one. Actually, in my own setup, I use a home made scene > manager which provides direct access to the internal root node. But for > creating an example demonstrating my problem, I just used the simple scene > manager class. yes, I thought that you'd not have that problem in your real application or could relatively easily work around it. > Once I get the example running correctly, I'm planning to ask > for inclusion in the OpenSG example section, because I think that it is > quite illustrative. In order to get the correct scene illumination I could > scan for the internal root node in the parent hierarchy. the example would be much appreciated. Walking up the parent hierarchy should work fine for that. > Additionally, I > like to take some measure so that the window is not affected by tiled > rendering process. The image creation should happen invisible for the user > in the background. cloning, instead of sharing, the cameras from the main window and avoiding the buffer swap should help avoid that. Cheers, Carsten ------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev _______________________________________________ Opensg-users mailing list Opensg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensg-users