Hello Sebastian,
Sebastian Knödel wrote:
> Hi there,
>
> I would like to access the Display Lists generated by OpenSG.
> For the moment I use OpenSG only to handle the geometry using the
> scenegraph infrastructure, but I do the rendering using my own tool.
> To do so I need the geometry as a display list and as far as I know
> OpenSG stores the geometry by default in such a list.
> But I wasn't able to get the Display List Id. There is a member of
> GeometryBase getGLId() but its protected and I couldn't find a way to
> acces it even by reimplementing my own Geometry class, which I derived
> from GeometryBase.
hm, that should actually work. Did you map the id stored in the geometry
to a real OpenGL id through the Window ?
The id's stored in geometry and some other places in OpenSG (Textures
for example) are not real OpenGL ids, they need to be mapped through a
Window (basically an OpenGL context) to real ids.
> My question is:
> Is there a possibility to access the display lists, created by OpenSG?
> If yes, how does it work?
The trick with deriving from Geometry should give you access to the id.
We are reluctant to make this any more accessible as OpenSG assumes it
can recreate these whenever it feels like it and therefore this can only
work when you know what is going on in your application (which is true
for your specific case).
Hope it helps,
Carsten
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users