Hello Georg,

Georg Wünsch wrote:
> I am trying to get some 2D-Content rendered on top of an opensg scene.
> Currently I am using simplescenemanager rendering my 3d scene right into a
> passive windows view port used by a Window.
> 
> My Idea is to switch ssm's standard viewport with a FBO viewport which seems
> to work in the sense that I get no errors but a black screen in the window.

you can have more than one viewport on a window, so you can make the 
FBOViewport the first and the one that renders your final scene the 
second one and they will be processed in that order (so that the FBO 
texture is updated first).

> Now I would like to take the texture produced in the FBO, as I understand,
> and use it as background of a simple 2D gl scene. I have a TextureChunk as
> described in the tutorials, that should hold the rendered scene of SSM.
> 
> I cannot get the Gl id (GLuint) as a handle to the texture to draw it.
> How do I paint this texture as background of an opengl window? What is
> preferable, implement it using opensg functionality (how?)

you can use the texture with a TextureBackground or a PolygonBackground 
(with a suitable SimpleTexturedMaterial or ChunkMaterial) attached to a 
second viewport of your window.

        Cheers,
                Carsten


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to