osgearth_tracks sample implemented as layer

classic Classic list List threaded Threaded
4 messages Options
Thomas Stegemann Thomas Stegemann
Reply | Threaded
Open this post in threaded view
|

osgearth_tracks sample implemented as layer

Hi,

the osgearth_tracks sample is showing "dynamic" symbols moving around the earth/map. But the shown aproach has the problem of not integrating well with the layer concept of osgEarth itself. Is it possible to create such a dynamically changing data source with FeatureSource (and call dirty() or something simular) and the FeatureSource rendered output is updated? How does this affect the performance? Is this comparable to the tracks example (think about 1000+ symbols on the map with at least 10Hz update rate with positional changes)?

Best regards,
Thomas
gwaldron gwaldron
Reply | Threaded
Open this post in threaded view
|

Re: osgearth_tracks sample implemented as layer

Thomas,

With the new Layer architecture in osgEarth, you can make a Layer that contains any scene graph. You would subclass the VisibleLayer class and then override the getNode() method to return the scene graph under that layer.

Someday it will be a good idea to refactor the osgearth_tracks example (or perhaps a separate example) and implement it as a Layer to demonstrate the concept.

Glenn Waldron / Pelican Mapping
Thomas Stegemann Thomas Stegemann
Reply | Threaded
Open this post in threaded view
|

Re: osgearth_tracks sample implemented as layer

Is the new layer architecture in the master branch?
gwaldron gwaldron
Reply | Threaded
Open this post in threaded view
|

Re: osgearth_tracks sample implemented as layer

Yes, and it's not obviously documented, hence the need for a sample app.
Glenn Waldron / Pelican Mapping