Euro Truck Simulator 2

Euro Truck Simulator 2

View Stats:
Marius Apr 22, 2015 @ 7:09pm
Dual Monitor config help
Dear reader,

I wanted to post this in a other thread, but hiacking theads is forbidden, and a big no-no, so I create a new thread.

The frustum_subrect parameters in the mode 4 can be used to do this. It was used to set up the center monitors for https://www.youtube.com/watch?v=xrUTjr7KTgs

I will try it. I was fiddling with the normalized x and width. My steer appeared like how it is on 1 screen, but I couldn't get the second screen working. It was just black. I will try the fustrum.



SiiNunit
{
multimon_config : _nameless.0000.0000.00DD.A7A0 {
normalized_ui_x: 0.000000
normalized_ui_width: 1.000000
monitors: 2
monitors[0]: _nameless.0000.0000.00DD.E3E0
monitors[1]: _nameless.0000.0000.00DD.E480
}

monitor_config : _nameless.0000.0000.00DD.E3E0 {
name: center
normalized_x: 0.000000
normalized_y: 0.000000
normalized_width: 0.500000
normalized_height: 1.000000
horizontal_fov_relative_offset: 0.000000
vertical_fov_relative_offset: 0.000000
heading_offset: 0.000000
pitch_offset: 0.000000
roll_offset: 0.000000
camera_space_offset: (0.000000, 0.000000, 0.000000)
horizontal_fov_override: 90.000000
vertical_fov_override: 0.000000
frustum_subrect_x: 0.000000
frustum_subrect_y: 0.000000
frustum_subrect_width: 1.000000
frustum_subrect_height: 1.000000
render_interior: true
render_exterior: true
}

monitor_config : _nameless.0000.0000.00DD.E480 {
name: left
normalized_x: 0.500000
normalized_y: 0.000000
normalized_width: 0.500000
normalized_height: 1.000000
horizontal_fov_relative_offset: 0.000000
vertical_fov_relative_offset: 0.000000
heading_offset: 0.000000
pitch_offset: 0.000000
roll_offset: 0.000000
camera_space_offset: (0.400000, 0.00000, -0.200000)
horizontal_fov_override: 90.000000
vertical_fov_override: 0.000000
frustum_subrect_x: 0.000000
frustum_subrect_y: 0.000000
frustum_subrect_width: 1.00000
frustum_subrect_height: 1.000000
render_interior: true
render_exterior: true
}

}

I got it working. Looks promising. I am trying to match my right screen to my center, but I tried a lot of stuff, and It aint working. Maybe someone knows more and can give me insight.

I've uploaded a pic on my steam.

Thank you for reading.

Kind regards,

Ivy
Last edited by Marius; Apr 22, 2015 @ 7:19pm
< >
Showing 1-15 of 28 comments
Komfr  [developer] Apr 22, 2015 @ 7:55pm 
There are two ways to set up two monitors. One is if you have them positioned in one plane like it is the case for the two center monitors in our video so it is similar to position of the center and right monitor here[www.eurotrucksimulator2.com]. The other is if you have the right monitor oriented that your head is before its center like the center and right monitor here here[www.eurotrucksimulator2.com].

I will describe how to use game console commands to tweak the view in real time.

Planar case

First create one view covering both monitors. If you started with more than one monitor it will look blury. That is fine and it will be fixed latter.

multimon init empty multimon add main 0 0 1 1

Then you need to override the horizontal fov as if you had three monitors. Basically it is the angle you would have to turn your head right to look at the right corner of the right monitor when you have the head positioned in the center of the left monitor and you are looking at the center of the left monitor multiplied by two.

Or mathematically, if you have some desired horizontal FOV X you want for the monitors, the resulting angle is atan(tan(X / 2) * 3) * 2.

In case of the default multi-mon FOV of 50 it would be 108.

multimon set main horizontal_fov_override 108

Now you need to override the vertical FOV because the automatic calculation can not handle frustum subrect.

The vertical FOV should maintain the aspect ratio of your monitor. So if you had horizontal FOV X for the single monitor case from above and 16:9 monitor ratio, the resulting vertical FOV angle would be atan(tan(X / 2) * 9 / 16) * 2

In case of the default multi-mon FOV of 50 it would be about 29.

multimon set main vertical_fov_override 29

Now you need to tell the game that you want to see only the part of the view which corresponds to the rightmost two monitors (i.e. 2/3 of the view).

multimon set main frustum_subrect_width 0.666 multimon set main frustum_subrect_x 0.3333

Make the change persistent in the multimon_config.sii

multimon save

Restart the game so it can optimize size of its rendering buffers for the new layout to remove the blurynes.

Non-planar case

Create two views

multimon init empty multimon add center 0 0 0.5 1 multimon add right 0.5 0 0.5 1

Override the horizontal FOV of the monitor as desired. Here I am using a single monitor FOV so there is no special calculation necessary and the vertical FOV can be calculated automatically as well.

multimon set center horizontal_fov_override 50 multimon set right horizontal_fov_override 50

Now we need to rotate the right monitor so the camera looks in the right direction. You can either specify the rotation as absolute value in degrees in which case you need to update it whenever you tweak the horizontal FOV.

multimon set right heading_offset -50

Or alternatively you can take advantage of the fact that both views have the same horizontal FOV and use relative offset which multiplies the FOV of the first defined view to calculate the value.

multimon set right horizontal_fov_relative_offset -1

Make the change persistent.

multimon save

As before restart the game so it can optimize size of its rendering buffers for the new layout to remove the blurynes.


Marius Apr 22, 2015 @ 8:00pm 
Oh man, you are awesome. It all become more clearer. I had some theory myself, but this is much better. hehe. <3

May I give you a hug, some beer, and a kiss? It works <3 :D It is so simple if you know how to do it. Thank you a lot!!

It works like a charm, the only con is that the right cam is little bit disorted. I've included pics in my steam. the pics are little bit worser than I have on my monitors, but it shows you what is wrong.
Last edited by Marius; Apr 23, 2015 @ 3:17am
Marius Apr 24, 2015 @ 4:32am 
I wanted to post the config I used atm. Its very well done. I've also Pitch on 1 in the config of ETS2.


SiiNunit
{
multimon_config : _nameless.0000.0000.00C5.CA00 {
normalized_ui_x: 0.000000
normalized_ui_width: 1.000000
monitors: 2
monitors[0]: _nameless.0000.0000.00C6.0B90
monitors[1]: _nameless.0000.0000.00C6.0C30
}

monitor_config : _nameless.0000.0000.00C6.0B90 {
name: center
normalized_x: 0.000000
normalized_y: 0.000000
normalized_width: 0.500000
normalized_height: 1.000000
horizontal_fov_relative_offset: 0.000000
vertical_fov_relative_offset: 0.000000
heading_offset: 0.000000
pitch_offset: 0.000000
roll_offset: 0.000000
camera_space_offset: (0.000000, -0.090000, 0.000000)
horizontal_fov_override: 60.000000
vertical_fov_override: 0.000000
frustum_subrect_x: 0.000000
frustum_subrect_y: 0.000000
frustum_subrect_width: 1.000000
frustum_subrect_height: 1.000000
render_interior: true
render_exterior: true
}

monitor_config : _nameless.0000.0000.00C6.0C30 {
name: right
normalized_x: 0.500000
normalized_y: 0.000000
normalized_width: 0.500000
normalized_height: 1.000000
horizontal_fov_relative_offset: 0.000000
vertical_fov_relative_offset: 0.000000
heading_offset: -64.000000
pitch_offset: 0.000000
roll_offset: 0.000000
camera_space_offset: (0.000000, -0.090000, 0.000000)
horizontal_fov_override: 60.000000
vertical_fov_override: 0.000000
frustum_subrect_x: 0.000000
frustum_subrect_y: 0.000000
frustum_subrect_width: 1.000000
frustum_subrect_height: 1.000000
render_interior: true
render_exterior: true
}

}

I am happy with it. It works. I need to see the dashboard a bit, because I am deaf. It's a nice Multumon-config for dual screen with front and right monitor. Cheers!

If you have suggestions, please let me know. :D Improving is always good.
DC-GS Nov 8, 2015 @ 4:49am 
I've tried the "Non-planer" solution, but couldn't get it to work yet.

1. What keys are you using in console to type the commands? If i try to enter _ (underscore) it just prints ? (questionmark).

2. During the first few steps, the game split the view of my first screen. Second scree wasn't used. Is that the way it should be or is the guide missing something?
Ruriko Hoseki Nov 22, 2016 @ 10:52am 
so what would the settings be for my game anybody because i have 2 2560X1440 monitors linked together to make 5120X1440 with the monitors set at a slight angle the monitors themselves are the asus rog swift p278q widescreens
Last edited by Ruriko Hoseki; Nov 22, 2016 @ 10:57am
DC-GS Nov 24, 2016 @ 10:09am 
Let me start by blatantly sharing my guide I made for dual screen purpose:
http://steamcommunity.com/sharedfiles/filedetails/?id=628485050

First step is to combine both physical screens into a single, virtual screen.
I've used Soft TH. Remember, you will be limited with it to DX9.
Or you can use Nvidia Surround if you prefer.
With Soft TH you will have just to adjust the screen size to your own.

The next part is the "multimon_config.sii" file.
Actually, that's the easy part since you can just take any posted config. They use relative values.
Kimo Jan 9, 2017 @ 9:13pm 
Thanks alot for the insight! This should be a guide... :)
Marius Jan 10, 2017 @ 12:00pm 
Well, you have my permission to use all of this. :steamhappy:
Ruriko Hoseki Jan 18, 2017 @ 9:33am 
ok had a play arond with this and i can get it to work perfect on ats but for ets2 i can't because i drive on the right side of the cabin and it is set up for left hand drive code could some one help me with this is my multimon config

SiiNunit { multimon_config : _nameless.0000.0000.0472.B1D0 { normalized_ui_x: 0.000000 normalized_ui_width: 0.4900000 monitors: 1 monitors[0]: _nameless.0000.0000.06F3.CE30 } monitor_config : _nameless.0000.0000.06F3.CE30 { name: main normalized_x: 0.000000 normalized_y: 0.000000 normalized_width: 1.000000 normalized_height: 1.000000 horizontal_fov_relative_offset: 0.000000 vertical_fov_relative_offset: 0.000000 heading_offset: 0.000000 pitch_offset: 0.000000 roll_offset: 0.000000 camera_space_offset: (0.000000, 0.000000, 0.000000) horizontal_fov_override: 145.000000 vertical_fov_override: 60.000000 frustum_subrect_x: 0.333000 frustum_subrect_y: 0.000000 frustum_subrect_width: 0.666000 frustum_subrect_height: 1.000000 render_interior: true render_exterior: true } }
Last edited by Ruriko Hoseki; Jan 18, 2017 @ 9:33am
DC-GS Jan 18, 2017 @ 10:55am 
Do you wanna keep the UI the way it is in ATS?
If you want to have the UI on the same screen as your driver cabin, start with this block:

SiiNunit { multimon_config : _nameless.0000.0000.0472.B1D0 { normalized_ui_x: 0.510000 normalized_ui_width: 0.4900000 monitors: 1 monitors[0]: _nameless.0000.0000.06F3.CE30 }

It will move the UI on the right screen instead of the left one.
Wanna keep it on left screen, then don't change your block.

All is left to do is change the spot where he cut your screen:

monitor_config : _nameless.0000.0000.06F3.CE30 { name: main normalized_x: 0.000000 normalized_y: 0.000000 normalized_width: 1.000000 normalized_height: 1.000000 horizontal_fov_relative_offset: 0.000000 vertical_fov_relative_offset: 0.000000 heading_offset: 0.000000 pitch_offset: 0.000000 roll_offset: 0.000000 camera_space_offset: (0.000000, 0.000000, 0.000000) horizontal_fov_override: 145.000000 vertical_fov_override: 60.000000 frustum_subrect_x: 0.000000 frustum_subrect_y: 0.000000 frustum_subrect_width: 0.666000 frustum_subrect_height: 1.000000 render_interior: true render_exterior: true } }

It will create a view stretched over 3 virtual screens, but only display two of them.
By changing frustum_subrect_x yo tell the game to show the left and middle screen.
Ruriko Hoseki Jan 18, 2017 @ 12:31pm 
thank you that helped
Ruriko Hoseki Feb 11, 2017 @ 10:04am 
oh just a heads up to everybody who wants to use this and take HQ screenshots unfortunately the HQ screenshot function is disabled when this is enable
Coop May 4, 2017 @ 5:17pm 
Originally posted by DC-GS:
Let me start by blatantly sharing my guide I made for dual screen purpose:
http://steamcommunity.com/sharedfiles/filedetails/?id=628485050

First step is to combine both physical screens into a single, virtual screen.
I've used Soft TH. Remember, you will be limited with it to DX9.
Or you can use Nvidia Surround if you prefer.
With Soft TH you will have just to adjust the screen size to your own.

The next part is the "multimon_config.sii" file.
Actually, that's the easy part since you can just take any posted config. They use relative values.

use their guide. soo much better than trying to look around the bezels lol
room217au May 4, 2017 @ 9:12pm 
also SoftTH is a good program to use in conjunction with ATS or ETS2
Plumpeach May 5, 2017 @ 12:34am 
What I need to try this!
< >
Showing 1-15 of 28 comments
Per page: 1530 50

Date Posted: Apr 22, 2015 @ 7:09pm
Posts: 28