Re: [osg-users] Animating vertices in a Geode

2009-03-27 Thread Cedric Pinson
: Cedric Pinson [mailto:morni...@plopbyte.net] Sent: Mon 3/23/2009 4:27 PM To: OpenSceneGraph Users Subject: Re: [osg-users] Animating vertices in a Geode Hi Laurence, Before i dig into can you give the stacktrace to have an idea where it crashes ? Cheers, Cedric Laurence Muller wrote: Hi Cedric

Re: [osg-users] Animating vertices in a Geode

2009-03-24 Thread Laurence Muller
Pinson [mailto:morni...@plopbyte.net] Sent: Mon 3/23/2009 4:27 PM To: OpenSceneGraph Users Subject: Re: [osg-users] Animating vertices in a Geode Hi Laurence, Before i dig into can you give the stacktrace to have an idea where it crashes ? Cheers, Cedric Laurence Muller wrote: Hi Cedric

Re: [osg-users] Animating vertices in a Geode

2009-03-23 Thread Cedric Pinson
Hi Laurence, You can easily do it with morphgeometry: - define two geometry with morphgeometry - use an custom update callback that use an ease motion to control the ratio of geometry to use Would be great to make an example with it, it will help others users. Cheers, Cedric Laurence Muller

Re: [osg-users] Animating vertices in a Geode

2009-03-23 Thread Laurence Muller
Hi Cedric, I tried to create a simple project based on the 'osganimationmorph' demo as Robert Osfield suggested. Instead of loading the geometries from a *.osg file, I define two new geometries (both quads but on a different position). These geometries are added as a drawable to the

Re: [osg-users] Animating vertices in a Geode

2009-03-23 Thread Cedric Pinson
Hi Laurence, Before i dig into can you give the stacktrace to have an idea where it crashes ? Cheers, Cedric Laurence Muller wrote: Hi Cedric, I tried to create a simple project based on the 'osganimationmorph' demo as Robert Osfield suggested. Instead of loading the geometries from a

Re: [osg-users] Animating vertices in a Geode

2009-03-23 Thread Muller, L.Y.L.
: l.y.l.mul...@uva.nl -Original Message- From: Cedric Pinson [mailto:morni...@plopbyte.net] Sent: Mon 3/23/2009 4:27 PM To: OpenSceneGraph Users Subject: Re: [osg-users] Animating vertices in a Geode -- Laurence Muller (M.Sc.) Informatics

Re: [osg-users] Animating vertices in a Geode

2009-03-23 Thread Muller, L.Y.L.
the previous reply, I made a mistake while attaching the file... ;\ -Original Message- From: Cedric Pinson [mailto:morni...@plopbyte.net] Sent: Mon 3/23/2009 4:27 PM To: OpenSceneGraph Users Subject: Re: [osg-users] Animating vertices in a Geode Hi Laurence, Before i dig into can you give

Re: [osg-users] Animating vertices in a Geode

2009-03-23 Thread Cedric Pinson
-users] Animating vertices in a Geode Hi Laurence, Before i dig into can you give the stacktrace to have an idea where it crashes ? Cheers, Cedric Laurence Muller wrote: Hi Cedric, I tried to create a simple project based on the 'osganimationmorph' demo as Robert Osfield suggested

Re: [osg-users] Animating vertices in a Geode

2009-03-22 Thread Guy
I think you just need to use update callback for your geometry, in this callback you set the vertex array with the new locations and then call dirty() to ensure the update of the display list. Guy. Hi, In the application I am working on, I am trying to create a smooth (transition) animation

Re: [osg-users] Animating vertices in a Geode

2009-03-22 Thread Robert Osfield
HI Laurence, In svn trunk there is support for morphing between geometries so have a look at this. See osganimationmorph. Robert. 2009/3/20 Laurence Muller l.y.l.mul...@uva.nl Hi, In the application I am working on, I am trying to create a smooth (transition) animation on the vertices

[osg-users] Animating vertices in a Geode

2009-03-20 Thread Laurence Muller
Hi, In the application I am working on, I am trying to create a smooth (transition) animation on the vertices inside an object. Example: I have included an illustration to make my problem a bit more clear. The current scene contains one geode with a geometry attached. The geometry is filled