[osg-users] Redraw osg::HeightField

Robert Osfield robert.osfield at gmail.com
Thu Nov 12 01:10:47 PST 2009


Hi Teodor,

The OSG by default creates display lists for Drawables, and these
won't know that they need to be updated unless you tell them - which
you do via drawable->dirtyDisplayList();.

Robert.

On Wed, Nov 11, 2009 at 9:50 PM, Teodor Hanchevici
<calin.hanchevici at gmail.com> wrote:
> Hi,
>
> Please bear with me on this one since I'm a newbie with OSG.
>
> I am trying to update and redraw an osg::HeightField. I have created a callback and I can get the values from the grid in the event handler, I can set the values back in the grid but the display does not redraw.
>
> What is the proper way of doing this? I have attached the code I am using. Any suggestions are appreciated.
>
> Thank you!
>
> Cheers,
> Teodor
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=19524#19524
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>


More information about the osg-users mailing list