[osg-users] first attempts with PagedLODs
Voerman, L.
l.voerman at rug.nl
Wed Jan 25 00:51:39 PST 2017
Hi Daniel,
The pagedLOD displays the lower lod level until the requested level is
loaded, I think wat you see is caused by the lowest LOD level being empty.
We use almost all our pagedLODs with a permanent base level:
in .osg format this looks like this:
PagedLOD {
RangeMode DISTANCE_FROM_EYE_POINT
RangeList 2 {
120 10000
0 120
}
NumChildrenThatCannotBeExpired 1
FileNameList 2 {
""
stationwagon_gray_HQ.ive
}
num_children 1
ProxyNode {
FileNameList 1 {
stationwagon_gray_LQ.ive
}
num_children 0
}
}
or using a lower resolution texture (my mip pseudoloader skips the top
level mipmaps from textures)
PagedLOD {
DataVariance STATIC
nodeMask 0xffffffff
cullingActive TRUE
Center -37000 -48000 0
Radius 11313.7
RangeMode PIXEL_SIZE_ON_SCREEN
RangeList 2 {
0 1448
1448 1e+037
}
NumChildrenThatCannotBeExpired 1
DisableExternalChildrenPaging 0
FileNameList 2 {
""
560205_16km_L11.osg
}
num_children 1
ProxyNode {
nodeMask 0xffffffff
cullingActive TRUE
ExtRefMode DEFER_LOADING_TO_DATABASE_PAGER
Radius -1
FileNameList 1 {
560205_16km_L11.osg.1.mip
}
num_children 0
}
}
Regards, Laurens.
On Tue, Jan 24, 2017 at 8:29 PM, Daniel Lazaroff <lazaroff_daniel at yahoo.ca>
wrote:
> greetings all,
>
> I've started trying out the DatabasePager with a test model of a small
> city landscape (openflight file) that has been converted into pagedLODs
> (I'm experimenting with load balancing of VRAM usage).
> I used the "osgpagedlod.cpp" example to convert and write out the
> individual files (.ive). I'm using OSG 3.2
> The individual buildings have discrete LODs and do not have overlapping
> ranges. As I move around the scene using the osgGA::TerrainManipulator,
> they pop in and out of the rendered scene, for a few frames no LOD is
> displayed. (due to the load time from disk of the files most probably)
>
> Is there something that I can do to alleviate this (tricks or tips)? I
> could try to overlap the ranges, but I read somewhere that this is not
> suggested.
>
> Thanks for any info.
> Cheers
>
> Daniel
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=70046#70046
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20170125/8f8c9859/attachment-0002.htm>
More information about the osg-users
mailing list