Hello Carsten, "Carsten Neumann" <carsten_neum...@gmx.net> schrieb im Newsbeitrag news:4c9777f1.3070...@gmx.net... > > Running the program I get warnings: > WARNING: Viewport::render: no background! > > these can be fixed by adding: > stage_viewport->setBackground(vp0->getBackground()); > stage_viewport->setCamera (vp0->getCamera()); > I see, I did miss that...
> > Fixing that, I get an OpenGL error about the FBO being incomplete, the > reason being that the color attachment is created without specifying a > valid internal format (RenderBuffer does not try to take the value from > the image if it is present and its own internal format field is GL_NONE > - I'm preparing a patch for that). > > For now, adding: > colBuf->setInternalFormat(GL_RGBA); > > does the trick. > Ah, I didn't know that... > > Finally I've moved the line: > win->addPort(stage_viewport); > > After the loop over all viewports, because it seemed like you only want > to iterate over previously existing viewports. > Yes. > > 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. > > 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. 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. 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. Best, Johannes ------------------------------------------------------------------------------ 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