Hi all,

I have a question regarding PagedLOD. I use as input a hierarchy of files.
The vertices in the geometries are in a local reference system, and, for
some reason, in need to transform them to a projected coordinate system :
Lambert 93. I have a transformation which works fine. However, Lambert 93
coordinates are around 1000000 for X and around 6000000 for Y. I thus
center them with the barycenter of all the vertices in the geometry and
apply a MatrixTransform (translate) with this center with the Geode as
child (and the PagedLOD as parent). I also set the PagedLOD user center to
this value. To be sure to not loss anything in the scene graph I just
replace the "old" geometry with the "new" one using setVertexArray

This process works fine (I work in double precision). However, when having
a look at the details, it seems that they is a remaining problem. It seems
that LODs are not correctly displayed :
https://www.dropbox.com/s/ulg311af9qizlz3/pagedlods_ranges.jpeg. This image
is a screenshot of my terrain viewed from top (perpendicular). It seems to
me that some LODs are not correct since some of them are more detailled
than some others whereas they are at the same or a lower distance.
Sometimes, when I am very close ftom the terrain and rotate, the closest
tile disappear, and, if I move a few, it appears again. I guess this is a
ranges or culling problem. For now, I do not change them. They are in
PIXEL_SIZE_ON_SCREEN. I tried to update them by multiplying or dividing the
values by a ratio of old and new boundingsphere radius, but the problem
remains. In the original data, the problem does not appear.

Do you have any idea on how to solve this issue?

Regards,

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

Reply via email to