this is my model.osg file head.
Geode {
nodeMask 0xffffffff
cullingActive TRUE
num_drawables 1
Geometry {
useDisplayList TRUE
useVertexBufferObjects FALSE
PrimitiveSets 1
{
DrawArrays TRIANGLES 0 844805
}
VertexArray UniqueID Vec3Array_0 Vec3Array 140803
{
.......
}
VertexIndices UIntArray 844806 {
....
}
Robert Osfield <[EMAIL PROTECTED]> 写道:
Hi YangXiao,
This is basic debugging... is model_geode a NULL??
Also why the word geode in the ptr, readNodeFile returns Node* not
Geode*. Most scene graphs will not have a Geode at the top of the
scene graph. Since you don't supply the offending code we can't
really guess at what mistakes you've actually made.
Robert.
2008/11/9 YangXiao :
> Hi everyone
> I write a test.osg file and use osgviewer test.osg .It's OK.
> But When i osgDB::readNodeFile read a *.osg file and ->
> viewer->setSceneData(model_geode);
> return viewer->run();
> It's a runtime error Below.
>
> Best Regards.
> YangXiao
>
>
>
>
> ________________________________
> 雅虎邮箱,您的终生邮箱!
> _______________________________________________
> 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
---------------------------------
雅虎邮箱,您的终生邮箱!_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org