Hi Dimitrios, Glad to hear you got it working. I have a couple of further hints for you.
You may find that the accuracy is improved if you use _oldFrame without the increment. The variable name is a little misleading as it is actually stores the id for the current frame, if you look at the update function in FFTOceanSurface it is assigned after the vertices have been updated and is used purely to prevent updates of the vertices if the frame hasn't changed. This does depend on whether you're calling getHeight before or after that function is called. You could also try using a bilinear interpolation between the four closest vertices, There should be to copy the the interpolation function in the MipmapData class which I use to smooth out the vertices for the different mipmap levels. Regards, Kim. 2009/9/29 Dimitrios Filiagos <dfili...@yahoo.com>: > Hi, > > it seems to work fine but I am still testing. For big models of height 2.0 > and more works fine, for smaller height models there are frames that goes > above water, just a little though and also on some other frames just below > the surface, especially on high wind speeds. This behavior might be correct > but I 'll try to make it more realistic. For bigger models the behavior is > OK. I am thinking of using the surface normal to calculate the models pitch > and roll, but it will take sometime . > > > Thanks! > > Cheers, > Dimitrios > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=17697#17697 > > > > > > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org