[osg-users] wrong values returned from getOceanSurfaceHeight in OsgOcean

2011-09-15 Thread ShenHelong
Hi everyone, 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.

Re: [osg-users] wrong values returned from getOceanSurfaceHeight in OsgOcean

2011-09-15 Thread Jean-Sébastien Guay
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

Re: [osg-users] wrong values returned from getOceanSurfaceHeight in OsgOcean

2011-09-16 Thread Ivan Shen
hi,Jean-Sebastien Guay , Thank you for your quick reply, and sorry for my delayed response. Maybe I got the values from the previous frame, but I dont know how to correct it. Because I just know to use getOceanSurfaceHeightAt to get the surface height. I modified the oceanExample