Hi all

is there any example around the world, how we could integrate osgOcean into
Terrains ?

/adrian

2009/10/29 Jean-Sébastien Guay <[email protected]>

> Hi Lv,
>
>
>  I have build some terrain model by VPB(VirtualPlanetBuilder) which
>> including some area of ocean.Is it possible to combine the effect of
>> osgOcean to the terrain model which is build by VPB?
>>
>
> VPB terrain, as long as it's not built in geocentric mode (i.e. as long as
> it's flat terrain), can be added as a child of the OceanScene just like any
> other terrain. VPB's LOD will work independently of osgOcean's LOD, but that
> shouldn't be a problem.
>
> If your terrain is round-earth, then as Kim said osgOcean will not work
> with it in its current form. I don't know precisely what's needed to adapt
> it. I guess we'd need to get some kind of curvature information from the
> terrain model, and make the ocean follow this curvature?
>
> If your terrain is flat, see the oceanExample in the osgOcean sources, it
> adds a terrain loaded from an .osg or .ive file (islands.ive I think) and
> adds it to the scene. You can do the same thing with your terrain.
>
> Hope this helps,
>
>
> J-S
> --
> ______________________________________________________
> Jean-Sebastien Guay    [email protected]
>                               http://www.cm-labs.com/
>                        http://whitestar02.webhop.org/
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>



-- 
********************************************
Adrian Egli
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to