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 

Viewer vs. Composite Viewer


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General
View previous topic :: View next topic  
Author Message
Ed
Guest





PostPosted: Tue Oct 28, 2008 8:41 pm    Post subject:
Viewer vs. Composite Viewer
Reply with quote

After reading "osgViewer::Viewer vs osgViewer::CompositeViewer", I think
I might need to use CompositeViewer at some point in the future of my
project, but not at the outset. Should I begin with the
CompositeViewer, or make the necessary mods later? How difficult is it
to change from Viewer to CompositeViewer later?

Ed



------------------
Post generated by Mail2Forum
Back to top
Tueller, Shayne R Civ...
Guest





PostPosted: Tue Oct 28, 2008 10:29 pm    Post subject:
Viewer vs. Composite Viewer
Reply with quote

It's simple to convert over. Look at the osgcompositeviewer example to see
what needs to be done. I've been using just osgViewer::Viewer and I changed
over to using the composite viewer with no problems or difficulty. One's
just a subset of the other so I would probably just start out with a
CompositeViewer and then add one view...

-Shayne

-----Original Message-----
From:
[mailto:] On Behalf Of Ed
Sent: Tuesday, October 28, 2008 2:42 PM
To:
Subject: Viewer vs. Composite Viewer

After reading "osgViewer::Viewer vs osgViewer::CompositeViewer", I think
I might need to use CompositeViewer at some point in the future of my
project, but not at the outset. Should I begin with the
CompositeViewer, or make the necessary mods later? How difficult is it
to change from Viewer to CompositeViewer later?

Ed





------------------
Post generated by Mail2Forum
Back to top
Robert Osfield
Guest





PostPosted: Wed Oct 29, 2008 9:16 am    Post subject:
Viewer vs. Composite Viewer
Reply with quote

Hi Ed,

CompositeViewer and Viewer share much of their implementation, the
only key difference is that Viewer "is a" View, while CompositeViewer
has a list of Views. All the event handling, camera manipulator and
scene graph setting is done a the View level so has identical API to
access. This all makes porting between the two pretty straight
forward - and it's what I intended for osgViewer, that you can easily
swap stuff around later on.

Personally I'd just get used to using the Viewer class as it's a
little bit simpler, but have a look at the osgcompositeviewer and spot
the commonality with how you use the View, this will allow to spot how
you might migrate between the two if and when you need to later down
the line.

Robert.

On Tue, Oct 28, 2008 at 8:41 PM, Ed <> wrote:
Quote:
After reading "osgViewer::Viewer vs osgViewer::CompositeViewer", I think I
might need to use CompositeViewer at some point in the future of my project,
but not at the outset. Should I begin with the CompositeViewer, or make the
necessary mods later? How difficult is it to change from Viewer to
CompositeViewer later?

Ed





------------------
Post generated by Mail2Forum
Back to top
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General 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 Passing input to viewer/camera (using... antiro42 General 2 Sat Sep 16, 2017 11:07 am View latest post
No new posts Passing input to viewer/camera (using... antiro42 General 0 Sat Sep 16, 2017 11:06 am View latest post
No new posts access to viewer instances in plugins Ralf Habacker General 2 Wed Aug 16, 2017 7:32 am View latest post
No new posts access to viewer instances in plugins robertosfield Submission 1 Mon Aug 14, 2017 7:07 am View latest post
No new posts Viewer slaves and RTTs Steal General 19 Fri Feb 17, 2017 7:46 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