Glad it works.

It can be few things. plugins not found (add the OpenSceneGraph/bin to your
PATH), wrong path of the model ....

Nick




On Tue, Jul 8, 2014 at 10:33 AM, Bluish Joe <mirco.andr...@tesigroup.it>
wrote:

> Hi Trajce, you where right: I was mixing debug and release libs, now I
> fixed it and solved the problem!
>
> Now I tried your code, it works well. Now I need to visualize a model in
> the viewer. You do setSceneData, passing the result of createHUD. What is
> createHUD?
> I tried a differente way:
>
>
> Code:
> osg::ref_ptr<osg::Node> loadedModel = osgDB::readNodeFile(
>
> "C:\\Path\\to\\OpenSceneGraph\\OpenSceneGraph-3.0.1-VS10.0.30319-x86-release-12741\\data\\cessna.osg");
> v->setSceneData(loadedModel);
>
>
>
> But does nothing, as loadedModel is 0x00000000 in debug. What am I doing
> wrong?
> Many thanks for your help!
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=60203#60203
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>



-- 
trajce nikolov nick
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to