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 

Matrices with Camera and CameraManipulator


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


Joined: 04 Apr 2018
Posts: 14

PostPosted: Fri Oct 19, 2018 12:54 pm    Post subject:
Matrices with Camera and CameraManipulator
Reply with quote

Hi,

I am trying to figure out, how the ViewMatrix is calculated in a specific setup:

I have a View with a Camera Manipulator.
This View also has a Master Camera (which should be affected by the Camera Manipulator). Since I have a fullscreen modus that spans two screens, I have a slave camera for both screens that basically work by offsetting the projection matrix.

In general this technique works fine, but for my shaders I need to set the view and projection matrices correctly. However I don't really see how the View Matrix is calculated (or rather how I need to set it in my Uniform Update Callback).

Does the Master camera "inherit" the Camera Manipulators Matrix as its View Matrix or is there more to it?

Kind Regards,
Tim
Back to top
View user's profile Send private message
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 Resizing FBO camera while rendering romulogcerqueira General 9 Tue Oct 02, 2018 3:34 am View latest post
No new posts CameraManipulator init sbrkopac General 1 Mon Jul 30, 2018 8:48 pm View latest post
No new posts ReaderWriterCFG - offset for single c... Marcin Prus Submission 0 Fri Jul 06, 2018 11:27 am View latest post
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 osgviewer camera initial angle. Vagn General 1 Wed Jun 20, 2018 2:31 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