Hi Nelson,
Could you try running:
osgconv myfile.flt test.osg
This will isolate the test to just the model/OpenFlight loader itself.
The Assertion failure does look to be source of the crash, but as to
why this has happened could be down to a bug or perhaps a corrupted
file. Would it be possible to provide this file for others to test
against?
Robert.
On 6/21/07, Cysneros, Nelson SPAWAR <[EMAIL PROTECTED]> wrote:
I'm trying to port my project to use OSG v2.0 but its is crashing on me
when I try to read a node file:
modelNode = osgDB::readNodeFile(modelFile);
It never returns from this osgDB function call.
/** Read an osg::Node from file.
* Return valid osg::Node on success,
* return NULL on failure.
* The osgDB::Registry is used to load the appropriate ReaderWriter
plugin
* for the filename extension, and this plugin then handles the request
* to read the specified file.*/
inline osg::Node* readNodeFile(const std::string& filename)
{
return readNodeFile(filename,Registry::instance()->getOptions());
}
I turned on the Debug messages and get the following:
------------------------------------------------------------------------
-----------------------------------
FindFileInPath(D:\data\visual_models\multigen\Txt\airplane.inta.attr):
returning
D:\data\visual_models\multigen\Txt\airplane.inta.attr
itr='D:\data\visual_models\multigen'
FindFileInPath() : trying D:\data\visual_models\multigen\Txt\rotor.rgba
...
FindFileInPath() : USING D:\data\visual_models\multigen\Txt\rotor.rgba
FindFileInPath(D:\data\visual_models\multigen\Txt\rotor.rgba): returning
D:\data
\visual_models\multigen\Txt\rotor.rgba
raw->sizeX = 128
raw->sizeY = 128
raw->sizeZ = 4
raw->bpc = 1
image read ok 128 128
FindFileInPath(D:\data\visual_models\multigen\Txt\rotor.rgba.attr):
returning D:
\data\visual_models\multigen\Txt\rotor.rgba.attr
ID: apache
ID: fslage
ID: rotor
ID: g29
ID: g9
ID: g30
ID: g10
ID: g11
ID: g16
ID: g19
ID: g12
ID: g31
ID: g14
ID: g13
ID: g17
ID: g20
ID: g32
ID: g33
ID: g34
ID: g38
ID: g39
ID: g40
ID: g43
ID: g41
Assertion failed: index<size(), file .\Pools.cpp, line 23
OpenGL extension 'GL_EXT_framebuffer_object' is not supported.
OpenGL extension 'GL_ARB_vertex_program' is supported.
OpenGL extension 'GL_ARB_fragment_program' is not supported.
OpenGL extension 'GL_ARB_shader_objects' is not supported.
OpenGL extension 'GL_ARB_vertex_shader' is not supported.
OpenGL extension 'GL_ARB_fragment_shader' is not supported.
OpenGL extension 'GL_ARB_shading_language_100' is not supported.
glVersion=1.4, isGlslSupported=NO, glslLanguageVersion=0
OpenGL extension 'GL_ARB_pixel_buffer_object' is not supported.
Setting up osg::Camera::FRAME_BUFFER
Warning: detected OpenGL error 'invalid enumerant' after
RenderBin::draw(,)
Setting up osg::Camera::FRAME_BUFFER
glGetString(GL_RENDERER)==Quadro4 900 XGL/AGP/SSE2
------------------------------------------------------------------------
---------------------------------
Any suggestions would be appreciated.
thanks
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/