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 value but i got a very strange and 
 horrible effect since i don't know each parameter value correspondence
 
 for example i tried this before
 
 
 Code:
 _oceanSurface = new osgOcean::FFTOceanSurface( 128, 512, 33, 
 windDirection, windSpeed, depth, reflectionDamping, waveScale, isChoppy, 
 choppyFactor, 10.f, 256 );  
 
 
 
 
 i can't put screens now beacause i don't have my dev machine


--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=33751#33751





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


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 the trunk to reduce 
update times. 

Regards, 

Kim

Sent from my iPhone

On 15 Nov 2010, at 16:16, Shen Qing fl...@yahoo.cn wrote:

 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 value but i got a very strange and 
 horrible effect since i don't know each parameter value correspondence
 
 for example i tried this before
 
 
 Code:
 _oceanSurface = new osgOcean::FFTOceanSurface( 128, 512, 33, 
 windDirection, windSpeed, depth, reflectionDamping, waveScale, isChoppy, 
 choppyFactor, 10.f, 256 );  
 
 
 
 
 i can't put screens now beacause i don't have my dev machine
 
 
 --
 Read this topic online here:
 http://forum.openscenegraph.org/viewtopic.php?p=33751#33751
 
 
 
 
 
 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


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
http://lists.openscenegraph.org/listinfo.cgi/osg-users-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
build it as quad tree structure.

So what you would need is, different representation of the ocean that will
change based on the range. And that is done with LOD node. So your ocean can
be polygonal for far range, and a hole for closer range (the hole will
become your osgocean)

The terrain tools like TerraVista, can do this easy. When you build your
database, you would have vector culture (ESRI shape. etc) for your ocean.
And you specify how this culture will be represented in your final terrain
database. So you make it polygonal for lower LODs and a hole for the highest
LOD. Then you set the range of your osgocean to be the same as your highest
LOD range

That is how I build the bosphores database with TerraVista.

I am not very familiar with vpb (well, I used it couple of times to generate
the whole earth with the blue marble dataset). You would need to see if vpb
can work with vector culture. Or go with some commercial tolls, TerraVista,
TerraSim ... etc. There are some contractors as well you can outsource the
terrain generation to them.

Maybe you explain what is your final database (also, what kind of sources
you have) and we see if we can give better guidance. I expect some of the
rest from the community might have faced and resolved this issue differently
then me.


-Nick


On Tue, Aug 31, 2010 at 12:54 PM, issam boughanmi amigof...@gmail.comwrote:

 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
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


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 file and landsat 
geotiff images + some high res geotiff files of some regions

i am using this in a flight sim app

the terrain database work perfectelly and now i want to integrate osgocean for 
the sea side region of my map

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=31194#31194





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


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 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 file and
 landsat geotiff images + some high res geotiff files of some regions

 i am using this in a flight sim app

 the terrain database work perfectelly and now i want to integrate osgocean
 for the sea side region of my map

 --
 Read this topic online here:
 http://forum.openscenegraph.org/viewtopic.php?p=31194#31194





 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


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 since i don't know each parameter value correspondence

for example i tried this before


Code:
_oceanSurface = new osgOcean::FFTOceanSurface( 128, 512, 33, 
windDirection, windSpeed, depth, reflectionDamping, waveScale, isChoppy, 
choppyFactor, 10.f, 256 );  



--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=31198#31198





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


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 ] 
(http://img521.imageshack.us/i/fsim2.jpg/)

especially in the second screen the effect is more visible

i have just a small square area of sea even with the enableEndless option and 
when the main player is in hight altitude the sea disappears




any help or orientation is welcome

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=31146#31146





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


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 amigof...@gmail.comwrote:

 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 ] (
 http://img521.imageshack.us/i/fsim2.jpg/)

 especially in the second screen the effect is more visible

 i have just a small square area of sea even with the enableEndless option
 and when the main player is in hight altitude the sea disappears




 any help or orientation is welcome

 --
 Read this topic online here:
 http://forum.openscenegraph.org/viewtopic.php?p=31146#31146





 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


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:
http://forum.openscenegraph.org/viewtopic.php?p=31159#31159





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


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 osgocean especially in high
 altitude


 thanks and good day

 --
 Read this topic online here:
 http://forum.openscenegraph.org/viewtopic.php?p=31159#31159





 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


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





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


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 the ocean (make a hole) to be 
 later replaced by osgOcean. 
 


do you mean make a hole in the terrain ?

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=31129#31129





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


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 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 the ocean (make a hole) to be
 later replaced by osgOcean.
 


 do you mean make a hole in the terrain ?

 --
 Read this topic online here:
 http://forum.openscenegraph.org/viewtopic.php?p=31129#31129





 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


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 


 
  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 the ocean (make a hole) to be
 later replaced by osgOcean.
 


 do you mean make a hole in the terrain ?

 --
 Read this topic online here:
 http://forum.openscenegraph.org/viewtopic.php?p=31129#31129





 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org