On Wed, 2006-10-11 at 11:56 -0400, Jean-Sebastien Guay wrote:
> Hello,
>
> I have just started exploring OpenSceneGraph, having made my own scene graph
> and
> used a few others in the past. I would like to use OSG with SDL for the
> low-level things (window/video mode setting, etc.).
>
> I found the osgSDL library linked on
> http://www.openscenegraph.org/index.php?page=Community.WindowingToolkits
>
>
> My first question is: is this still a good choice to integrate the two
> libraries? Is anyone using this successfully?
Robert has added an osgsimpleviewerSDL example to the latest CVS, and as
someone with lots of SDL+OSG experience I would highly recommend using
this as a basis. The union of the two really couldn't be simpler, so a
whole nodekit is probably not necessary. :)
I'm not sure to what depths the example goes to support resizing and
SceneView orthographic stuff, but it's easy enough to do that if the
osgGA::SimpleViewer doesn't. Maybe someone else can comment on this
aspect.
> My second question relates to osgSDL directly (if anyone can suggest another
> alternative to osgSDL, then ignore the second question! :-). I downloaded it,
> but it seems like it hasn't been maintained for a while. The library compiles
> well, but when running osgSDL-example (which I downloaded from the same
> SourceForge project and which compiles well too), I get:
>
> Unhandled exception at 0x8c90e900 in Tutorial_02.exe: 0xC0000005: Access
> violation reading location 0x8c90e900.
>
> The call stack says the problem occurs at:
>
> osg::ref_ptr<osgUtil::DisplayRequirementsVisitor> drv = new
> osgUtil::DisplayRequirementsVisitor;
>
> which calls
>
> ref_ptr(T* ptr) : _ptr(ptr) { if (_ptr) _ptr->ref(); }
>
> I don't really know what could be causing this, other than mismatched library
> versions maybe? Any suggestions welcome.
>
> Versions: OSG 1.2 binary pack downloaded from http://mew.cx/osg/
> SDL 1.2.11
>
> Thanks in advance,
>
> J-S
> --
> ______________________________________________________
> Jean-Sebastien Guay [EMAIL PROTECTED]
> http://whitestar02.webhop.org/
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://openscenegraph.net/mailman/listinfo/osg-users
> http://www.openscenegraph.org/
>
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/