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 

ReaderWriterCFG - offset for single camera


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> Submission
View previous topic :: View next topic  
Author Message
Marcin Prus
Guest





PostPosted: Fri Jul 06, 2018 11:27 am    Post subject:
ReaderWriterCFG - offset for single camera
Reply with quote

Hi Robert,
hope you enjoyed your holiday.

Attached is the fix for ReaderWriterCFG to load offset for camera into
view matrix if only single camera is defined in the config file.

The cameras from .cfg files were loaded as slaves initially. There was a
change in 2014 to reuse the View::getCamera() instead of creating a
slave for single camera but that change removed loading offset onto
camera's view matrix. The 2014 change affected only single camera mode,
the multiple cameras config still loads offsets onto view matrices. The
2014 resulted in single cam offset being ignored and unavailable from
outside the config reader. My change copies the multiple camera
behaviour for single camera and brings back pre 2014 functionality while
still reusing master camera.

With this change one can still use same camera configuration
(projection, offsets) in both single and mulitple cam setups.

Best regards,
Marcin Prus



------------------
Post generated by Mail2Forum
Back to top
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> Submission 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 osgOcean - Render to Texture Camera rob_ewbank osgOcean [osgOcean] 3 Wed Jul 04, 2018 11:27 am View latest post
No new posts Stuck with applying an offset to proj... wernerM General 5 Mon Jun 25, 2018 10:11 am View latest post
No new posts osgviewer camera initial angle. Vagn General 1 Wed Jun 20, 2018 2:31 pm View latest post
No new posts Positioning a Camera relative to anot... Takarashy General 0 Thu May 24, 2018 8:27 am View latest post
No new posts Using 'NodeTrackerManipulator' while ... loopy General 3 Wed May 09, 2018 10:40 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