[osg-users] changing dimensions of a box

Robert Osfield robert.osfield at gmail.com
Tue May 30 07:49:50 PDT 2017


HI Mat,

You can tackle this a number of ways.  The route I'd take would be to
create a static sized box using an osg::Geometry (see the osggeometyr
example) then use a vertex shader to modify the vertex values.  Have a
look at the osghaders for how to set up shaders - this example
includes a code path which animates use vertex shaders.

Robert.

On 30 May 2017 at 14:06, Mat Monk <matthias-minki at web.de> wrote:
> Hey guys,
> i'm an absolute beginner in osg, but i have to use it at a project in university. I'm using MS visual studio 2013 for coding.
> I've got this task:
>
> Creating a box, which changes its dimensions regarding to time.
> e.g. the box has to grow in x-direction for 5 sec after that in y-direction for 8 sec and so on.
>
> Maybe someone could give me a short introduction, how to deal with this problem.
>
> Thank you!
>
> Cheers,
> Mat
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=70996#70996
>
>
>
>
>
> _______________________________________________
> 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