"Jean-Claude Monnin" <jc_mon...@emailplus.org> wrote:
> Hi all,
> 
> I also need to query the height of the ocean. Based on Dimitrios posted
> code, I modified it to do a bi-linear interpolation. Below is the code I
> would like to share. Should there be general interest in height query of
> the ocean, then it would be good to put this or similar code in the
> repository.
> Note: This method always gets the height from the highest detail mipmap.

You are my hero :) I was fighting  with Dimitros's code to do this over the 
weekend and couldn't make the interpolation work right. I think that the 
mipmap choice was the issue.

Thanks for posting this!

BTW, I have implemented a callback that resizes the osgOcean when the window 
size changes and I am getting crashes there from time to time when resizing 
the window. Is anyone else seeing this?

Regards,

Jan

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to