Gustav I ran into the same issue.
My approach was to use the keepExternalReferences option to stop the external references being included explicitly. I then produced a small post processing application that read the converted file keeping track of all the proxy nodes and then replacing duplicate instances with references to a single instance of the proxy node. This significantly reduced the memory usage and speeded up loading. Colin -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Gustav Haapalahti Sent: 02 June 2009 11:49 To: [email protected] Subject: [osg-users] Out of memory loading a small file in osgviewer Hi, I have a problem with a terrain model that is originally in the OpenFlight format. I do not have any problem when loading the OpenFlight file directly, but I get a problem after converting the file to the .osg format with osgconv. When I load the .osg file with osgviewer the memory consumption increases more and more until 2GB is used and the program crashes. When I load the original OpenFlight file, the osgviewer only uses about 30MB of memory. I believe that the problem has something to do with external file references that are inside ProxyNode:s in the converted .osg file. I have a tree model that is placed at lots of positions. Thank you! Cheers, Gustav ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=13341#13341 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.or g This email has been scanned for all known viruses by the MessageLabs Email Security System. Please help out the environment by only printing this e-mail if absolutely necessary - Thank You. This email has been scanned for all known viruses by the MessageLabs Email Security System. Systems Engineering & Assessment Ltd - Beckington Castle, 17 Castle Corner, Beckington, Frome, Somerset, BA11 6TA, UK is registered in England and Wales with the company number 2430846. The contents of this email (including any attachments) are confidential and may be legally privileged. If you are not the intended recipient of this email any disclosure, copying, distribution or use of its contents is strictly prohibited. You should notify the sender immediately and then delete it (including any attachments) from your system. Please help out the environment by only printing this e-mail if absolutely necessary - Thank You. _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

