Hi there,

I am new to Android and fairly new to OSG. I recently managed to compile 
Android for OpenGL ES 2.0 on Ubuntu Linux 11.04 following 
http://forum.openscenegraph.org/viewtopic.php?t=8774. 
Everything worked fine and now I get "the OSG blue screen" on my device 
already. 

I am attempting to load a model, and therefore I use 

Code:
osg::ref_ptr<osg::Node> loadedModel = osgDB::readNodeFile(newModel.filename);


as in the examples provided.
but nothing comes up in the screen. Debugging I've found out that 
osgDB::readNodeFile is returning null all the time. I've tried with different 
paths. As I am new to Android I am not sure if applications have permissions to 
access files in shared memory. In the Android Developers' webpage I saw an 
entry that addresses this issue:
http://developer.android.com/guide/topics/data/data-storage.html
And so I tried using:
/Android/data/osg.AndroidExample.osgViewer/files/models/cow.osg
but still... the cow is being shy and doesn't want to appear on the screen :P

I don't get any error messages or anything... I am just getting null in return 
from the osgDB::readNodeFile call.

Any ideas of why this is happenning??


Thanks a lot in advance.

Cheers,
Rubén

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=41495#41495





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to