[osg-users] Error with osgDB::readRefNodeFiles

Robert Osfield robert.osfield at gmail.com
Tue Oct 4 06:18:52 PDT 2016


HI Inna,

The osgDB::readRefNodeFile(..) function is a relatively recent
addition, older versions of the OSG don't have have it.  Were you
following a new code example against an older version of the OSG?

Robert.

On 4 October 2016 at 12:15, Inna Reddy <osgforum at tevs.eu> wrote:
> Hi all ,
>
> In my code , I have been using the osgDB::readRefNodefiles. When I do compile the code it throwing me an error saying :
>
>
>
> Error   2       error C2039: 'readRefNodeFiles' : is not a member of 'osgDB'
>
> Error   3       error C3861: 'readRefNodeFiles': identifier not found
>
> IntelliSense: namespace "osgDB" has no member "readRefNodeFiles"
>
>
> I have included the libs also.
>
> #include <osgDB/ReadFile>
> #include <osgDB/WriteFile>
> #include <osgDB/Registry>
>
>
> Code:
> and the code part is
> osg::ref_ptr<osg::Node> loadedModel = osgDB::readRefNodeFiles(arguments);
>                 if (loadedModel.valid())
>                 {
>                         mainGroup->addChild(loadedModel);
>
>                         center = loadedModel->getBound().center();
>                         diameter = loadedModel->getBound().radius() * 2.0f;
>                 }
>
>
>
>
> Thank you!
>
> Cheers,
> Inna
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=68840#68840
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



More information about the osg-users mailing list