Jump to content

Viewports with Different Resolutions


AceKng1

Recommended Posts

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.

 

1379962595_ViewportError.thumb.png.11102598c7a41bc4b78b96418293f76b.png

 

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.

1795876783_LeftandFrontViewports.thumb.jpg.046fb7f9a22d4273f2560725b8a03ed4.jpg1840516224_RightandBottomViewports.thumb.jpg.717c0740a1dc8552120fd9ce1921d449.jpg


Edited by AceKng1
Added image of all viewports combined
Link to comment
Share on other sites

  • 2 weeks later...

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.)

Link to comment
Share on other sites

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

Screen_151014_232022.thumb.jpg.1863579412435befaf7af87973b9d589.jpg

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

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...