[osg-users] render function using event handler

2012-02-12 Thread Mohammed Rashad
if (ea.getKey() == '+') { _oceanScene-setOceanSurfaceHeight(_oceanScene-getOceanSurfaceHeight() + 1.0); osg::notify(osg::NOTICE) Ocean surface is now at z = _oceanScene-getOceanSurfaceHeight() std::endl; return true; } if

Re: [osg-users] render function using event handler

2012-02-12 Thread Kim Bale
Hi Rashad, All setOceanSurfaceHeight does is set the matrix of the transform that parents the ocean surface so that it translates the surface up or down. Take a look here: http://code.google.com/p/osgocean/source/browse/trunk/include/osgOcean/OceanScene#224 It also dirties the scene asking for

Re: [osg-users] render function using event handler

2012-02-12 Thread Mohammed Rashad
thanks Kim. OK. after translate will it update window automatically what I want is partly done with osgOcean after increasing height I need to find the area that is under water. Is it possible is a big question but I have only one question Is it possile? and how On Sun, Feb 12, 2012 at 7:42 PM,

Re: [osg-users] render function using event handler

2012-02-12 Thread Kim Bale
It depends how accurate you want your calculation to be. An approximation would be to simply take the volume of the cuboid that forms between the seabed and the ocean surface. If you want a more accurate volume calculation then you'd have to take into account the shape of the waves and the

Re: [osg-users] render function using event handler

2012-02-12 Thread Mohammed Rashad
On Sun, Feb 12, 2012 at 8:42 PM, Kim Bale kcb...@googlemail.com wrote: It depends how accurate you want your calculation to be. An approximation would be to simply take the volume of the cuboid that forms between the seabed and the ocean surface. how to get the cuboid that forms between

Re: [osg-users] render function using event handler

2012-02-12 Thread Kim Bale
Width x length x (Height of surface - height of seabed) K. On 12 February 2012 15:17, Mohammed Rashad mohammedrasha...@gmail.comwrote: On Sun, Feb 12, 2012 at 8:42 PM, Kim Bale kcb...@googlemail.com wrote: It depends how accurate you want your calculation to be. An approximation would

Re: [osg-users] render function using event handler

2012-02-12 Thread Mohammed Rashad
Thanks On Sun, Feb 12, 2012 at 9:00 PM, Kim Bale kcb...@googlemail.com wrote: Width x length x (Height of surface - height of seabed) here width = window_width length = window_length height of seabed = how much it has raised(current height + 1.0) height of surface ? how to calculate the

[osg-users] need download osgvisual code

2012-02-12 Thread tang
hello everyone: cann't download osgvisual code from china through svn.please help me ,please send to 641402...@qq.com___ osg-users mailing list osg-users@lists.openscenegraph.org

Re: [osg-users] Opaque black shadows since moving to OSG V3.0.1

2012-02-12 Thread Morné Pistorius
Hi all, I actually posted about a similar issue 3 days ago, and included screenshots and a cpp file, but my post never made it on to the list. It may have been filtered due to attachments on first post. Anyway, I think there is a general regression in osgShadow from 2.8.3 to 3.0.1. The problem