Hammerhead Posted August 28, 2022 Posted August 28, 2022 Hi all, Lately I have been trying to understand the lua files inside the MonitorSetup folder. Does anyone know what the variable viewDx does? I discovered something by accident which I did not know was possible. I always thought that with 2 monitors next to eachother if you span your DCS game across both monitors, that the forward view (towards the HUD in cockpit) would be cut in half on the edge between the 2 monitors. This is not true in my following lua file which I found out by accident: My windows main monitor right in front of me (with all desktop icons and start menu) is identified as monitor #1 in windows display settings and it is ticked off as "Make this my main display". My left monitor of the same size is monitor #2 in windows display settings where it is ticked off as "extend these displays". In DCS the main forward cockpit view appears on the main monitor in front of me, while the forward left view appears on the left monitor. It has got to do with the viewDx = -1; setting but I have no clue what this does. See also my 2 screenshots and lua code. Thanks, Hammerhead -- The RIGHT monitor must be the primary monitor in Windows -- Cockpit forward view and DCS menu UI will display on the right monitor and -- Cockpit view left is on the left monitor _ = function(p) return p; end; name = _('2Screens'); Description = 'Configuration with 2 identical monitors, each with its own camera' Viewports = { Left = { x = 0; y = 0; width = screen.width / 2; height = screen.height; viewDx = -1; viewDy = 0; aspect = screen.aspect / 2; }, Center = { x = screen.width / 2; y = 0; width = screen.width / 2; height = screen.height; viewDx = 0; viewDy = 0; aspect = screen.aspect / 2; }, } UIMainView = Viewports.Center GU_MAIN_VIEWPORT = Viewports.Center My rig: My YouTube Channel: https://goo.gl/mWdlQk PC Specs: Intel i9-9900 3.1GHz | GeForce RTX 4080 16GB |64 GB RAM | TrackIR5 | Pimax Crystal Light | Win10x64
Recommended Posts