Hi Chris,

Can you provide a stack trace for the crash you are seeing with osgEarth?

Thanks,

Jason

On Tue, Feb 2, 2010 at 1:23 PM, Chris Innanen <f...@nonsanity.com> wrote:
> Hi, Robert.
>
> I plan to try out your solution next, but I upgraded to osgEarth 1.3 first, 
> and now I'm getting an unexplained crash when initializing the camera.
>
>
> Code:
> mViewer = new osgViewer::Viewer();
>
> osgEarthUtil::EarthManipulator* manip = new osgEarthUtil::EarthManipulator;
> mViewer->setCameraManipulator( manip );
>
> osgEarthUtil::Viewpoint target = manip->getViewpoint();
> manip->setViewpoint( target, 3.0 );
>
>
>
> It crashes in that last line, the setViewpoint. Switching back to the 
> previous version of osgEarth, the crash goes away. I was setting up my own 
> viewpoint, but even this simplified get-it-and-set-it version crashes.
>
> Once I can set the viewpoint close to my target location, I can start messing 
> with the CullSettings, otherwise it starts too far from the planet for 
> anything to be seen at all. If anyone has any ideas on the crash, I'd love to 
> hear them, otherwise I'll have to stay with the older osgEarth.
>
> But I also have a general lack of knowledge about what are valid values for 
> the camera's frustum. I tried just changing the near and far values while 
> leaving the edges as they were, but that results in a rather stretched image. 
> Can someone point me to a tutorial on how these values relate? I haven't yet 
> found one that helps me.
>
> Thank you thank you...
>  ~ Chris Innanen
>  ~ Nonsanity
> [/code]
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=23547#23547
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to