Re: [osg-users] How to prepare LOD dataset from a large model file?

2012-08-08 Thread Torben Dannhauer
Hi,

I havn't tested it, but with the simplifier you can create the differend LODs, 
then you can mount them together as a paged LOD model.

Cheers,
Torben

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=49204#49204





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] PagedLOD - How to not page a specific node ?

2012-08-08 Thread Aurelien Albert
Hi,

In my application, I display some very heavy models (about 100Mo of textures + 
20 Mo of vertex)

This model is created proceduraly, and I can control the level of detail for 
the geometry and the textures, so I build 5 PagedLod : from very simple model 
to full data resolution.

My problem is about the most detailed level : this one is very heavy and I 
would like to never keep it in cache to avoid over memory usage.

Is there any parameter to tweak on this PagedLod (priority, time stamp, minimum 
expiry time..) to get the following behaviour :

- when this PagedLod is needed for display, it is loadded and displayed
- when this PagedLod is no more needed for display, it is deleted from CPU 
memory and GPU memory, even if the OSG_MAX_PAGEDLOD is not reached

Thank you!

Cheers,
Aurelien

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=49207#49207





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] PagedLOD - How to not page a specific node ?

2012-08-08 Thread Chris Hanson

 - when this PagedLod is needed for display, it is loadded and displayed
 - when this PagedLod is no more needed for display, it is deleted from CPU
 memory and GPU memory, even if the OSG_MAX_PAGEDLOD is not reached


  For this particular node, you might attach a cull callback to the
PagedLOD, and snoop on the PagedLOD settings on each frame. If it appears
that a lower LOD is going to be displayed, and the higher LOD is still
loaded, you could unload the higher LOD manually.

  I don't know for sure though if this is proper to do. At the very least,
the reference counting system might still have a reference to it stored
elsewhere in the DatabasePager, but I doubt this will happen. Even if it
does, it just means the highest LOD won't get unloaded from memory, but it
should cause no adverse effects. If the memory consumption does go down
immediately as you hope, then the technique works.


-- 
Chris 'Xenon' Hanson, omo sanza lettere. xe...@alphapixel.com
http://www.alphapixel.com/
Training • Consulting • Contracting
3D • Scene Graphs (Open Scene Graph/OSG) • OpenGL 2 • OpenGL 3 • OpenGL 4 •
GLSL • OpenGL ES 1 • OpenGL ES 2 • OpenCL
Digital Imaging • GIS • GPS • Telemetry • Cryptography • Digital Audio •
LIDAR • Kinect • Embedded • Mobile • iPhone/iPad/iOS • Android
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org