Hi  Ruigang,

Are you sure you haven't got a DLL mismatch? It can often cause strange
behaviour such as this.

I haven't experienced this problem at all with osgOcean.

Regards,

Kim.

On 31 August 2012 15:15, Ruigang Yang <[email protected]> wrote:

> Hi,
>
> I have received some existing code that uses osgOcean.
> it has the following code segment:
>
> Code:
> osg::ref_ptr<osgOcean::FFTOceanSurface> oceanSurface = new
> osgOcean::FFTOceanSurface(64, 256, 64, osg::Vec2f(1.1f,1.1f), 12.0f,
> 1000.0f, 0.8f, 1e-8, true, 2.5, 10.f, 256 );
> oceanSurface->setWaveTopColor(osg::Vec3f( 0.6, 0.7, 0.7));
>
> osg::ref_ptr<osgOcean::OceanScene> oceanScene = new
> osgOcean::OceanScene(oceanSurface.get());
> osg::ref_ptr<osg::Node> scenetest = osgDB::readNodeFile("cessna.osg");
> oceanScene->addChild(scenetest);
>
>
> It will crush in the call "addChild()" with the error: "unhandled
> exception at 0x.... in ...exe: 0xc000005: access violationg reading
> location 0xfffffffffffff. Bascially, I can't add any child node to
> oceneScene.
>
> Is there something missed in my code?
>
> I am able to compile and run the osgsample program. But it was unable to
> find some of the ive files.
>
> I am new to OSG. any help is greatly appreciated.
>
>
> Thank you!
>
> Cheers,
> Ruigang
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=49707#49707
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to