Hi,
Sorry for this probably naive question, but I just started working with OSG.
I've set up a VC++ project and I'm trying to load an obj file. I get an
Unhandeled exception std::bad_alloc at memory location error. I tried to open
the obj file using osgviewer and it works fine.
The exception happens in the ReadFile file, at this statement:
Code:
return readNodeFile(filename,Registry::instance()->getOptions());
This is my basic code in c++:
Code:
#include <osg\Node>
#include <osgDB\ReadFile>
using namespace osg;
int main(){
ref_ptr<Node> node = osgDB::readNodeFile("C:/Users/Sam/Debby.obj");
return 0;
}
I'm thinking this might have to do with the plugins not activated or linked
somehow? I'm attaching the obj file if anyone wants to test it.
I also tried to run any other .osg files that come with the distribution, but
with the same error.
Thanks a lot for any pointers, and apologies in advance if this is too basic,
but I tried to look for solutions with no luck.
...
Thank you!
Cheers,
Sam
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=59086#59086
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org