Hi Gustav,

If you try to remove the texture by renaming it and the problem still occurs, then the memory consumption is probably due to the vertices of the tree. If you use external references over ProxyNodes nothing will be shared concerning the vertices and this behaviour would be "normal".

Could be that the OpenFlight loader does not have this problem, as the optimizer merges the scenegraph somehow and thus the problem disappears. A solution might also be to use PagedLODs instead of ProxyNodes and to not load all trees into memory at once. Might also be an option to add the object to the scene and reference it (we call this "internal reference").

-Stephan

Gustav Haapalahti schrieb:
Hi,

I have tried your suggestion and it did not help my case unfortunately. I still get abnormal memory usage.
The external file references in the .osg file that was generated with osgconv looks like 
follows and I assume that the loading of this file is not cached so it gets duplicated. 
There are about 120 of these ProxyNode:s all pointing to the same file. If I change the 
FileNameList to point to an object that is smaller than this "birch_unit.flt" 
file then the terrain can be loaded but still takes abnormal amounts of memory.

ProxyNode {
  nodeMask 0xffffffff
  cullingActive TRUE
  ExtRefMode                 LOAD_IMMEDIATELY
  Radius -1
  FileNameList 1 {
    birch_unit.flt
  }
  num_children 0
}
--
-------------------------------------
Stephan Kussmaul
Geschaeftsfuehrender Gesellschafter / Managing Director
TrianGraphics GmbH
Schoenhauser Allee 45
10435 Berlin
Germany
Tel: +49 (0)30 48495565   FAX: +49 (0)30 48495581
Email: [email protected]
Web: www.triangraphics.de
-------------------------------------

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to