Hello Rainer,

Rainer Schuetze wrote:
> Hi 
> I was trying to use openGL commands with OpenSG.
> I used the OpenSG tutorial “HelloWorld” and added the OpenGL commads in
> the display funktion (see below). I don’t get the teapot shown in the
> window, only the OpenSG scene. What is wrong with my function calls?

nothing, but the Background of the SimpleSceneManager will clear the 
framebuffer and thus erase the teapot.
Moving the gl calls  after mgr->redraw won't help either, because by 
then buffers have been swapped.

> I’ve read about the “OpenGL Objects & Extension Handling”. Is this the
> only way to get OpenGL run within OpenSG.

No, there are a lot of ways, but without knowing what you want to do it 
is hard to suggest a route that gives you what you want with minimal 
fuss. Could you please provide some details on what you are trying to do?
For this simple case you can replace the SolidBackground the SSM creates 
by a PassiveBackground (you have to clear the framebuffer yourself in 
this case). mgr->getWindow()->getPort()[0]->getBackground() gives you 
the current Background, after SSM::initialize has been run (which 
normally happens automatically on the first redraw).

        Hope it helps,
                Carsten

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to