That worked perfectly! Thanks a lot :o)
Werner. _______________________________________________ Werner Lindgård, Programmerer Telephone +47 67 81 70 00 Direct line +47 67 81 70 68 [EMAIL PROTECTED] ViaNova Systems AS Leif Tronstads Plass 4, P.O.Box 434 N-1302 Sandvika, Norway ________________________________________________ http://www.vianova.no http://www.novapoint.com ________________________________________________ "J.P. Delport" <[EMAIL PROTECTED] o.za> To osg users 25.07.2006 14:29 <[email protected]>, [EMAIL PROTECTED] cc Subject Re: [osg-users] Updating vertex data at runtime? Hi Werner, look in the help for the following functions (e.g. in osg::Geometry): geom->setUseDisplayList(false); or geom->dirtyDisplayList(); cheers jp [EMAIL PROTECTED] wrote: > > Hi. > > I have a question regarding updating vertex values at runtime for a > geometry object. > > In my scene I have an object that I want to behave "dynamic". That is, for > each frame I do changes to the vertex data of the object, and I do this > after I have done the matrix updates to the view (camera manipulation), but > prior to the update, cull and render frames. I have also tried to do the > vertex data changes inbetween each of the stages as well. For the first > frame the code obviously works, since the object I am rendering is > positioned at the correct position and orientation with the original data. > For all subsequent frames there is no change though... > > Debugging the code, I see that the data itself changes correctly, but for > some reason, the data inside the geometry itself does not seem to change. > To me it seems like OSG retains the "old" data (Displaylist??) and never > cares that I do actual updates to the geometry's vertexdata. Is there some > way to trigger OSG to actually take into account my vertex changes? > > Regards, Werner Lindgård. > > _______________________________________________ > Werner Lindgård, Programmerer > Telephone +47 67 81 70 00 > Direct line +47 67 81 70 68 > [EMAIL PROTECTED] > > ViaNova Systems AS > Leif Tronstads Plass 4, P.O.Box 434 > N-1302 Sandvika, Norway > ________________________________________________ > > http://www.vianova.no > http://www.novapoint.com > > ________________________________________________ > > _______________________________________________ > osg-users mailing list > [email protected] > http://openscenegraph.net/mailman/listinfo/osg-users > http://www.openscenegraph.org/ > -- This message is subject to the CSIR's copyright, terms and conditions and e-mail legal notice. Views expressed herein do not necessarily represent the views of the CSIR. CSIR E-mail Legal Notice http://mail.csir.co.za/CSIR_eMail_Legal_Notice.html CSIR Copyright, Terms and Conditions http://mail.csir.co.za/CSIR_Copyright.html For electronic copies of the CSIR Copyright, Terms and Conditions and the CSIR Legal Notice send a blank message with REQUEST LEGAL in the subject line to [EMAIL PROTECTED] This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
