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 

Syncronizing waves across multiple monitors


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> osgOcean [osgOcean]
View previous topic :: View next topic  
Author Message
knarf
User


Joined: 15 Oct 2009
Posts: 74

PostPosted: Wed Aug 24, 2011 3:52 pm    Post subject:
Syncronizing waves across multiple monitors
Reply with quote

Heya,

I know that I can initialize the water with the same random seed. However, there does not seem to be a way to synchronize the timing of the waves. Does anyone know if this is possible? If not, I have coded a solution. It's a bit of a hack, but I would be happy to clean it up and submit it as a possible future update.

I would prefer to use the canonical source code, rather than my own version of it, and so if the feature doesn't exist, canonizing my changes would be the next best option. =) Hahaha.

Frank
Back to top
View user's profile Send private message
Skylark (Jean-S├ębastien Guay)
Professional


Joined: 05 Jan 2009
Posts: 2249

PostPosted: Thu Aug 25, 2011 12:31 am    Post subject:
Syncronizing waves across multiple monitors
Reply with quote

Hi Frank,

Quote:
I know that I can initialize the water with the same random seed. However, there does not seem to be a way to synchronize the timing of the waves. Does anyone know if this is possible? If not, I have coded a solution. It's a bit of a hack, but I would be happy to clean it up and submit it as a possible future update.

I have not had a look at your code, but what exactly is the problem
you're trying to solve? I have not had any problems with synchronizing
the waves across multiple monitors on a single machine (they are
synchronized by default, since the update traversal will be run only
once no matter how many cameras are rendering your scene).

Where I have had to modify things in the past is to synchronize the
waves across multiple machines. For this, there is the
FFTOceanTechnique::OceanAnimationCallback, in which you can override the
operator() method to query some application-specified simulation time
(which is broadcast to all machines, so at the same time it will be the
same value on all machines) and then call update() with that time value.
That way, the wave animation will be at the same frame on all machines.

If what you're doing solves a different problem, then I'll have a look
when I come back from vacation...

Hope this helps,

J-S
--
______________________________________________________
Jean-Sebastien Guay
http://www.cm-labs.com/
http://whitestar02.dyndns-web.com/


------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
knarf
User


Joined: 15 Oct 2009
Posts: 74

PostPosted: Thu Aug 25, 2011 4:56 am    Post subject:
Reply with quote

Hello,

Yes, you are right. I neglected to mention that these monitors are hooked up to separate machines. =)

Your suggestion is much cleaner than my solution, and has the added benefit of not having to be checked into the central repository. I will give that a try. Thanks!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> osgOcean [osgOcean] All times are GMT
Page 1 of 1

 
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 multiple window pick incorrect robertosfield General 1 Fri Aug 11, 2017 6:45 am View latest post
No new posts Multiple definitions of MixInVector d... Bruno Oliveira General 0 Tue Jun 06, 2017 1:58 pm View latest post
No new posts Multiple render passes and multithrea... SMesserschmidt General 2 Wed May 03, 2017 3:53 pm View latest post
No new posts Recommended way to render a scene fro... Hannes Naude General 6 Tue Apr 11, 2017 11:12 am View latest post
No new posts Multiple cameras sharing multisample fbo ravidavi General 1 Sat Mar 11, 2017 8:17 am 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