Hi,

When creating globes with VPB one can use the option -v (vertical multiplier) to set permanent vertical exaggeration for the generated model. However, in our software solution the user must be able to set vertical exaggeration from the GUI (i.e. dynamically alter vertical exaggeration).

What I'd like to know is: What would be a good strategy for implementing dynamic vertical exaggeration of VPB models?

I am pretty new to OSG, so I would greatly appreciate any suggestions that could help to start me of in the right direction.

My preliminary gut feeling is that the following strategy could possibly work:

- Implement a node visitor to find all geode's in model.
- For each geode, traverse each child drawable with an ArrayVisitor.
- In the ArrayVisitor recalculate each vertex based on earth radius from CoordinateSystemNode/EllipsoidModel, distance from vertex to earth center, and vertical multiplier.

Is this feasible? Are there any better strategies to follow? Performance issues/considerations when operation on ~50GB PagedLOD databases.

Any hint and suggestions are very much appreciated. If anyone has example code that solves similar problems, I would kiss his/her feet in gratitude:) (not literally though;)

Best regards,
John

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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

Reply via email to