[osg-users] Using StatsHandler rendering method
Robert Osfield
robert.osfield at gmail.com
Tue Nov 29 08:15:04 PST 2016
Hi Riccardo,
On 29 November 2016 at 15:59, Riccardo Corsi <riccardo.corsi at kairos3d.it> wrote:
> I've found out that the camera of the StatsHandler is added directly to the
> GraphicsContext and not to the viewer/scene.
>
> Besides the fact that this ensures it to work in all scenarios, are there
> other advantages in using this method rather than attaching the camera to
> the viewer as slave on in the scene graph?
Conceptually the stats aren't directly related any particular view so
placing them as a slave would give the wrong logical association.
Technically you could implement it as a slave though, but it would tie
the stats to the particular view you made it a slave of, so if you
removed that view you'd loose the stats.
> Another question: I expected the StatsHandler's geometry contents to be set
> with DYNAMIC DataVariance, as they are modified frame by frame, but I could
> not find any explicit code for that.
> How do you tackle the geometry modification?
I can't answer that without reviewing the code, I'm afraid I'm too
busy to go checking.
Robert.
More information about the osg-users
mailing list