Re: [osg-users] [osgOcean] increase ocean view range

2010-11-15 Thread Shen Qing
are you worked it out? amigoface wrote: yes from the osgapp example Code: _oceanSurface = new osgOcean::FFTOceanSurface( 64, 256, 17, windDirection, windSpeed, depth, reflectionDamping, waveScale, isChoppy, choppyFactor, 10.f, 256 ); i tried before to increase some of these

Re: [osg-users] [osgOcean] increase ocean view range

2010-11-15 Thread Kim Bale
If you modify the third parameter of FFTOceanSurface which is called numTiles you will be able to increase the number of tiles that make up the ocean surface and thus the range. Increasing the number of tiles will have a direct effect on performance. You may wish to try the new vbo technique in

Re: [osg-users] [osgOcean] increase ocean view range

2010-08-31 Thread issam boughanmi
can you explain more in details this please ? -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=31188#31188 ___ osg-users mailing list osg-users@lists.openscenegraph.org

Re: [osg-users] [osgOcean] increase ocean view range

2010-08-31 Thread Trajce (Nick) Nikolov
LOD - Level Of Detail. Obviously when you build a terrain database, you build it in few different level of details. What is close is more detailed what is further is less detailed. All of the terrain generation tools are aware of this and they build the final scene graph using LODs. They often

Re: [osg-users] [osgOcean] increase ocean view range

2010-08-31 Thread issam boughanmi
Hi nick and thanks for your support ;) i can investigate for your suggestion about lod node , shape files integration ... etc but for now i have a simple question : can i simply increase the ocean grid size surface ? if yes how ? my terrain is built like i said with vpb using srtm elevation

Re: [osg-users] [osgOcean] increase ocean view range

2010-08-31 Thread Trajce (Nick) Nikolov
yes. look in the setup code for the oceansurface (I think. Dont have the code with me at the moment, but as far I can recall you can do that). -Nick On Tue, Aug 31, 2010 at 2:15 PM, issam boughanmi amigof...@gmail.comwrote: Hi nick and thanks for your support ;) i can investigate for your

Re: [osg-users] [osgOcean] increase ocean view range

2010-08-31 Thread issam boughanmi
yes from the osgapp example Code: _oceanSurface = new osgOcean::FFTOceanSurface( 64, 256, 17, windDirection, windSpeed, depth, reflectionDamping, waveScale, isChoppy, choppyFactor, 10.f, 256 ); i tried before to increase some of these value but i got a very strange and horrible effect

Re: [osg-users] [osgOcean] increase ocean view range

2010-08-30 Thread issam boughanmi
hi back to the original question here two screens that describe the problem i am facing [Image: http://img90.imageshack.us/img90/183/fsim1.th.jpg ] (http://img90.imageshack.us/i/fsim1.jpg/) [Image: http://img521.imageshack.us/img521/439/fsim2.th.jpg ]

Re: [osg-users] [osgOcean] increase ocean view range

2010-08-30 Thread Trajce (Nick) Nikolov
I think the endless option will not produce real endless ocean you can see it from any range. I think it is rather following your eyepoint and render enough so you can see it all the time. Just my thoughts, might be good to check it actually -Nick On Mon, Aug 30, 2010 at 1:24 PM, issam boughanmi

Re: [osg-users] [osgOcean] increase ocean view range

2010-08-30 Thread issam boughanmi
yes from i have read the endless option adapt only the point of view to simulate endless effect that's said : how to get endless effect with osgocean especially in high altitude thanks and good day -- Read this topic online here:

Re: [osg-users] [osgOcean] increase ocean view range

2010-08-30 Thread Trajce (Nick) Nikolov
I guess you would need to put some LOD on the ocean culture. -Nick On Mon, Aug 30, 2010 at 6:44 PM, issam boughanmi amigof...@gmail.comwrote: yes from i have read the endless option adapt only the point of view to simulate endless effect that's said : how to get endless effect with

Re: [osg-users] [osgOcean] increase ocean view range

2010-08-29 Thread issam boughanmi
no one on this ? ok another question how to integrate osgocean into a pagedlod terrain database built with vpb ? i tried lot of things without success -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=31127#31127

Re: [osg-users] [osgOcean] increase ocean view range

2010-08-29 Thread issam boughanmi
nice screens ! can you show me your graph structure i tried every combination : ocean as a child, as a parent of the terrain parent, in the same level Hello, I havent tried with a database built with vpb, but I did it with database built with TerraVista. The key was to cut out

Re: [osg-users] [osgOcean] increase ocean view range

2010-08-29 Thread Trajce (Nick) Nikolov
with osgocean there is an example coming which shows you how to add your own terrain. in the sample, the file loaded is called island.ive. Mimic the code and put there your database. That is what I did -Nick On Sun, Aug 29, 2010 at 5:39 PM, issam boughanmi amigof...@gmail.comwrote: nice

Re: [osg-users] [osgOcean] increase ocean view range

2010-08-29 Thread Trajce (Nick) Nikolov
do you mean make a hole in the terrain ? yes -Nick On Sun, Aug 29, 2010 at 5:39 PM, issam boughanmi amigof...@gmail.comwrote: nice screens ! can you show me your graph structure i tried every combination : ocean as a child, as a parent of the terrain parent, in the same level