[osg-users] Force redraw of PagedLOD nodes

Simone Rapposelli simone.rapposelli at gmail.com
Mon Aug 1 08:07:30 PDT 2016


First of all thank you for your reply.

I have a point cloud structured in octree, where each node (PagedLOD) of the scene contains a part of the cloud which show points colored by their intensities using a gray scale (0: black --> 1: white).
What I need is to let the user to show points colored by their elevation (z value) when he push a button in a toolbar.

Nodes are loaded using osgDB::readNodeFile(path, myOptions), where myOptions is an object of a class I have derived from osgDB::Options and in which I have included some parameters that allow to set the color mode (elevation color or gray scale).
So, when I need to switch to the evelation view mode, I update some parameters in node options using setDatabaseOptions method of my PagedLOD node and this works fine.

The problem is that the colors on the scene are updated only when I move from the current position, while I need to automatically refresh colors from the same camera position.

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=68237#68237








More information about the osg-users mailing list