1
0
Fork 0

WS3.0 : Fix fgelev by forcing load of detailed LoD

Previously the BVH tree used by fgelev did not load the
lowest LOD tiles in WS3.0 resulting in incorrec elevation
values being returned.

This changes forces the BVH tree to flatten and load all
the nodes of the tree.
This commit is contained in:
Stuart Buchanan 2023-01-29 21:19:56 +00:00
parent 78797e28aa
commit aae2d5d095

View file

@ -191,7 +191,7 @@ main(int argc, char** argv)
// Get the whole world bvh tree
SGSharedPtr<sg::BVHNode> node;
node = sg::BVHPageNodeOSG::load(bvhFile, options);
node = sg::BVHPageNodeOSG::load(bvhFile, options, true);
// if no model has been successfully loaded report failure.
if (!node.valid()) {