HI Anders,
You are welcome to write a NodeVisitor that QA's loaded data. Invalid
data can come in a wide range of forms though, but I guess one could
start form just detecting invalid data you know you already have.
Robert.
On 6/14/07, Anders Backman <[EMAIL PROTECTED]> wrote:
Hi.
I was experiencing problems with loading a Collada file exported
through FeelingSoftwares exporter from 3DSmax.
It was a rather large scene and I got problems inside the method
void Geometry::accept(PrimitiveFunctor& functor) const
line 2259:functor.vertex((*vec3Array)[_vertexData.indices->index(vindex)]);
where I was accessing an non-existent index of the vertex array.
After quite a while I traced the problem down to three triangles!
Perhaps there should there be a test for reading in valid indexes in
the readers?
Now I realize that this is probably something that one seldom uses,
one would like all exporters to do their job and generate valid
models...
But when you are trying to debug a large app, one would like some way
of reporting importing errors and such....
Another issue here is that each plugin has to do this test...
Perhaps a validator visitor that traverses geometry and verifies that
we are not trying to index outside vertex/normal arrays etc would be
helpful?
Whats the opinion/thoughts regarding this potential problem?
(Now I also have to report a bug to feeling software... I thought the
problem was residing in osg, but I got proven wrong....again? ;-)
Good luck with the 2.0 release!
--
________________________________________________________________
Anders Backman Email: [EMAIL PROTECTED]
HPC2N/VRlab Phone: +46 (0)90-786 9936
Umea university Cellular: +46 (0)70-392 64 67
S-901 87 UMEA SWEDEN Fax: +46 90-786 6126
http://www.cs.umu.se/~andersb
_______________________________________________
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/