Tim Whowantstoknow
2018-10-19 12:54:30 UTC
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
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=75102#75102
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
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=75102#75102