AceKng1 Posted October 5, 2015 Posted October 5, 2015 (edited) I have noticed that if you have viewports with different resolutions and aspect ratios that the smaller viewport is not rendered at the width and height you set. In my case, I have 3 1920x1080 monitors each with their own viewport (Left, Center, Right). I then have a 1440x900 monitor below my center monitor (Bottom). My total resolution in game is 7200x1080. (1920 * 3 + 1440 for width). However, when I set my Bottom viewport to 1440 width and 900 height, it doesn't cover my whole 1440x900 monitor. Rather, it is a smaller view only covering about 2/3 of the monitor. If you look at the attached screenshot, you can see what I am talking about. Also, the background of the attached screenshot looks like a 1440x900 version of my Left viewport. The black bar at the bottom is then the 180 left over pixels for the total of 1080 height. This was rendered using the following config file: _ = function(p) return p; end; name = _('CustomViewports'); Description = 'One monitor configuration' Viewports = { Left = { x = 0; y = 0; width = 1920; height = 1080; viewDx = -1; viewDy = 0; aspect = 1920 / 1080; }, Center = { x = 1920; y = 0; width = 1920; height = 1080; viewDx = 0; viewDy = 0; aspect = 1920 / 1080; }, Right = { x = 1920+1920; y = 0; width = 1920; height = 1080; viewDx = 1; viewDy = 0; aspect = 1920 / 1080 }, Bottom = { x = 1920+1920+1920; y = 0; width = 1440; height = 900; viewDx = 0; viewDy = -1; aspect = 1440/900 } -- } --UIMainView = Viewports.Center GUI= { x = 1920; y = 0; width = 1920; height = 1080; } UIMainView = GUI Playing around with the width and height and aspect ratio I finally got it to cover my whole monitor correctly. However, I had to use larger width and height values: Bottom = { x = 1920+1920+1920; y = 0; width = 1750; height = 1080; viewDx = 0; viewDy = -1; aspect = 1920/1080 } What is really strange, if you add all 4 width values together from the 4 viewports, it is now greater than the total width resolution I am rendering in options. It appears some kind of scaling is being applied to width and height. EDIT: Added additional images to show all viewports combined. Edited October 5, 2015 by AceKng1 Added image of all viewports combined
Razi Posted October 14, 2015 Posted October 14, 2015 I've tried the same approach, but have been unsuccessful. Are you currently able to have all viewports working correctly? (@moderators, I don't mean to be a bother. Sorry if this is a duplicate as well. I was posting in the first and oldest report about this issue, but it was labeled a duplicate. Other threads are about correcting MFCD exports, etc., not about scaled resolutions and overlapping viewports.)
McMicha Posted October 14, 2015 Posted October 14, 2015 I have the same error, see the picture and my config. _ = function(p) return p; end; name = _('center bottom'); Description = 'All Moduls.' Viewports = { Center = { x = 0; y = 0; width = 1920; height = 1200; viewDx = 0; viewDy = 0; aspect = 1.6; }, Bottom = { x = 0; y = 1200; width = 1920; height = 1080; viewDx = 0; viewDy = -1; aspect = 1.7777777777777777777777777777778; } } UIMainView = Viewports.Center Simpit Software by SDA "SIMPIT DEVELOPER ASSOCIATION" DCS ExportScript D.A.C. DCS to Arcaze Communicator Ikarus a new Virtual Cockpit Software Deutscher Forums Thread English Forums Thread Hard/Software: AMD Ryzen 7 1800X, 32 GiB RAM, extra SSD for Windows 10 and DCS World, AMD Vega Frontier Edition with 16 GiB VRAM
Recommended Posts