Re: [osg-users] PagedLOD just keeps increasing number of LOD nodes

2016-07-12 Thread Robert Osfield
Hi Bruno,

As Nick mentioned you can set target maximum for the pager to aim for.
You use the OSG_MAX_PAGEDLOD env var to set this value or set it
directly the the DatabasePager method Nick talked about.

However. this is still just a target, it's still possible to exceed
this if your view actually requires all the PagedLOD to traversed in a
single frame the OSG will have no choice but keep all these in memory
as they are needed.  You can use the Camera::setLODScale(double)
method to get the OSG to select lower or higher LOD levels for a given
viewing distances.

If this it is the case that your view requires too many PagedLOD then
LODScale is really just a quick fix, the actual problem lies in
database, ideally you should be creating paged databases with
appropriate distance ranges to ensure that the whole system remains
balanced on your target hardware + data with default LOD scale of 1.0.

Robert.

On 12 July 2016 at 22:39, Bruno Oliveira
 wrote:
> Hello,
>
> I have a scene with a point cloud, ordered in an octree.
> I have each node in a separate file, so I built a PagedLOD engine based
> renderer.
>
> My octree is of depth 2, with approximately 3 million points.
>
> I found out that this engine is consuming more memory than I expected. Hence
> I added a StatsHandler to my view, and found out that while navigating
> through my scene, that the 'LOD' number is ALWAYS increasing and never
> decreases. Does this means the PagedLOD nodes are not being deleted
> correctly?
>
>
>
>
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] PagedLOD just keeps increasing number of LOD nodes

2016-07-12 Thread Trajce Nikolov NICK
Hi,

you can set the max number of PagedLODs in the DatabasePager::
setTargetMaximumNumberOfPageLOD .. That might help in your case

On Tue, Jul 12, 2016 at 11:39 PM, Bruno Oliveira <
bruno.manata.olive...@gmail.com> wrote:

> Hello,
>
> I have a scene with a point cloud, ordered in an octree.
> I have each node in a separate file, so I built a PagedLOD engine based
> renderer.
>
> My octree is of depth 2, with approximately 3 million points.
>
> I found out that this engine is consuming more memory than I expected.
> Hence I added a StatsHandler to my view, and found out that while
> navigating through my scene, that the 'LOD' number is ALWAYS increasing and
> never decreases. Does this means the PagedLOD nodes are not being deleted
> correctly?
>
>
>
>
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>


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


[osg-users] PagedLOD just keeps increasing number of LOD nodes

2016-07-12 Thread Bruno Oliveira
Hello,

I have a scene with a point cloud, ordered in an octree.
I have each node in a separate file, so I built a PagedLOD engine based
renderer.

My octree is of depth 2, with approximately 3 million points.

I found out that this engine is consuming more memory than I expected.
Hence I added a StatsHandler to my view, and found out that while
navigating through my scene, that the 'LOD' number is ALWAYS increasing and
never decreases. Does this means the PagedLOD nodes are not being deleted
correctly?
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org