Hi Sanat, Now I can figure out where the problem is, after some tests. :-)
I print out the graph data when different kinds of files (ive, osg, osgb) are read into the scene and find that the processing of the questionable matrix (with all NAN values) are different. IVE plugin will directly read and keep the NAN values, but OSG and OSGB plugins will return an identity one instead. Invalid matrix value will not affect the bounding computation, so scene data read from the ive file can work. But the latter changes the bound sphere to a very large center and radius values (because this node will be placed at the origin when others are set at greatly different positions). And the camera manipulator will not be able to find a good enough place to view the entire scene and this leads to an empty view to you. I'm not sure if this is a bug to be fixed or a feature by design. As invalid matrices and vectors are always unstable and will cause undefined behaviors. I'd suggest you remove these data before saving them to files. At least the osg and osgb files without such invalid data work for me now. Cheers, Wang Rui 2011/9/1 Sanat Talmaki <[email protected]>: > Hi Wang, > > The large translation values are intended as they are UTM coordinate values > which can get pretty large. > > >> I'm not sure whether these are reasonable in your application or there >> is something wrong while saving to osg files. But these will cause the >> bound of the entire graph too large or invalid and then the default >> manipulator will not be able to find a suitable place for navigating. >> Is it possible for you to upload the correct ive file, too? > > But wouldn't the incorrect matrices also cause the same effect in the ive > file i.e. osgviewer not able to apply the manipulator? I am using the exact > same scene graph to output to both ive and osg > > The ive file that loads correctly in osgviewer is attached. > > What confuses me is why native osg does not seem to work while the ive format > does? > > Thanks, > Sanat > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=42357#42357 > > > > > Attachments: > http://forum.openscenegraph.org//files/test_110.ive > > > _______________________________________________ > 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

