Hello ShenHelong,

Thanks for you attention!
when I used the function " float height = getOceanSurfaceHeightAt(x, y,
normal )" to get the sea surface height, and then draw a point at
(x,y,height). But the point was not just at the surface of the scene,
maybe heigher or lower.
So how can I get the accurate surface height?

I have not used that function extensively, but perhaps you're getting the height before the frame is drawn, so then when it goes to draw the next frame it updates the heights (to the next frame of animation) and so your result is from the previous frame?

Then again it may be a bug, I can't discount this possibility. Can you give us a very small example (or modify the oceanExample that comes with the osgOcean sources) to reproduce the issue easily?

I should be able to check it out soon, but not right away, sorry.

J-S
--
______________________________________________________
Jean-Sebastien Guay    jean-sebastien.g...@cm-labs.com
                               http://www.cm-labs.com/
                    http://whitestar02.dyndns-web.com/
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to