Triton: wake generator

classic Classic list List threaded Threaded
2 messages Options
marcoma9023 marcoma9023
Reply | Threaded
Open this post in threaded view
|

Triton: wake generator

Hi,

from this url https://github.com/sirehna-openlab/osgearth/tree/master/src/osgEarthTriton I found the integration of Triton Wake Generator effect inside OsgEarth.

The problem is that, after implementing the AddShipWakeGenerator and UpdateShipWakeGenerator method, the ShipDatas container is correctly populated, but I have no effect on the ocean at that location.

Now the doubt arises, is it not possible that I am wrong the parameters that I pass to the UpdateShipWakeGenerator method?

In particular the position, is asked in World coordinates ... I tried:

osgEarth::GeoPoint latLong(wgs84,  _selectedTarget->getLatitude(), _selectedTarget->getLongitude(), 0, osgEarth::ALTMODE_ABSOLUTE);
osg::Vec3d world;
latLong.toWorld(world);

Can anyone confirm that the wake generator is working correctly on OsgEarth?
marcoma9023 marcoma9023
Reply | Threaded
Open this post in threaded view
|

Re: Triton: wake generator

I forgot to add that, in addition to those changes there are those related to the following ticket:

https://github.com/gwaldron/osgearth/issues/1265