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;
}
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
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,
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 seabed
On Sun, Feb 12, 2012 at 8:42 PM, Kim Bale 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 seabed and oceansurfa
Width x length x (Height of surface - height of seabed)
K.
On 12 February 2012 15:17, Mohammed Rashad wrote:
>
>
> On Sun, Feb 12, 2012 at 8:42 PM, Kim Bale wrote:
>
>> It depends how accurate you want your calculation to be.
>>
>> An approximation would be to simply take the volume of the cu
Thanks
On Sun, Feb 12, 2012 at 9:00 PM, Kim Bale 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 height of surface?
>
>
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
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.or
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 t
9 matches
Mail list logo