OpenSceneGraph Forum Forum Index OpenSceneGraph Forum
Official forum which mirrors the existent OSG mailing lists. Messages posted here are forwarded to the mailing list and vice versa.
 
   FAQFAQ    SearchSearch    MemberlistMemberlist    RulesRules    UsergroupsUsergroups    RegisterRegister 
 Mail2Forum SettingsMail2Forum Settings  ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
   AlbumAlbum  OpenSceneGraph IRC ChatOpenSceneGraph IRC Chat   SmartFeedSmartFeed 

increase ocean view range

Goto page Previous  1, 2
 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> osgOcean [osgOcean]
View previous topic :: View next topic  
Author Message
flydm
Newbie


Joined: 15 Nov 2010
Posts: 2

PostPosted: Mon Nov 15, 2010 4:16 pm    Post subject:
Reply with quote

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
Back to top
View user's profile Send private message
Kim Bale
Guest





PostPosted: Mon Nov 15, 2010 7:05 pm    Post subject:
increase ocean view range
Reply with quote

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" <> wrote:

Quote:
are you worked it out?
amigoface wrote:
Quote:
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








------------------
Post generated by Mail2Forum
Back to top
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> osgOcean [osgOcean] All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Similar Topics
Topic Author Forum Replies Posted
No new posts osgOcean and Stereo view. Paradox osgOcean [osgOcean] 0 Thu Jun 08, 2017 9:29 am View latest post
No new posts Limitation of Displaying buildings,ro... Rambabu General 1 Fri Apr 21, 2017 4:47 am View latest post
No new posts Is it possible to temporarily redirec... wernerM General 3 Thu Mar 09, 2017 2:13 pm View latest post
No new posts Change Perspective to Orthogonal View romulogcerqueira General 1 Mon Mar 06, 2017 12:51 am View latest post
No new posts [3rdParty/maybe OSG general] osgoculu... Trajce Nikolov NICK General 2 Wed Mar 01, 2017 11:24 pm View latest post


Board Security Anti Bot Question MOD - phpBB MOD against Spam Bots
Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP