Difference between revisions of "MFD Export"

From EECH Central
Jump to: navigation, search
(Added documentation for MFD Export)
 
(Adding screen share information)
Line 21: Line 21:
  
 
[[category:installation and setup]]
 
[[category:installation and setup]]
 +
 +
== Examples ==
 +
 +
How to render MFD on Android tablet using screen share VNC software
 +
 +
Example system: Windows 7 x64 PC with #1 FullHD monitor connected via DVI, which used for the main game rendering, and #2 1024x640 display using HDMI. They configured to be '''extended''' monitors, not cloned.
 +
 +
[[File:MFD Displays.jpg|frameless]]
 +
 +
At this stage MFD data can be rendered on second display already, but in this example secondary display will be used as dummy for screen share only. Important to understand, that display will be turned off (in idle mode), but connected.
 +
 +
If you have no second unused monitor connected, you may try one of the solutions:
 +
 +
* if empty VGA port available, you can try to use it for manual screen
 +
* some software solution (like custom drivers) can be used but it depends on operation system
 +
* DIY plug for HDMI may force video adapter to add extra display, but you shouldn't do it without experience in electronics
 +
 +
 +
'''First step''' is configure EECH.INI
 +
 +
    export_mfd=1                              # enable MFD export
 +
    export_mfd_adapter=0                      # 0 is connected display #2
 +
    export_mfd_screen_width=1024              # screen width
 +
    export_mfd_screen_height=640              # screen height
 +
    export_mfd_left_pos=0,0,512,512          # left MFD position: top left corner (0px, 0px) bottom right corner (512px, 512px), height same as with to preserve proportions
 +
    export_mfd_right_pos=512,0,1024,512      # right MFD position: top left corner (512px, 0px) bottom right corner (1024px, 512px)
 +
    export_mfd_single_pos=0,0,512,512        # no longer used
 +
 +
If possible, export can be tested using connected display after game launch.
 +
 +
'''Second step''': configure share screen software.
 +
 +
'''RealVNC''' should be installed in Windows, it's only one I know can option to select display.
 +
After installation, you can set up password and accept connections on default port (it can be changed if necessary). Then go to Expert tab and set '''DisplayDevice''' value as '''\\.\DISPLAY2''' (number may differ)
 +
 +
[[File:Ultravnc.jpg|frameless]]
 +
 +
Enable Wi-Fi on Android device and install '''VNC Viewer''' application. Open it, create new connection using IP of your PC and selected port (default is 5900). You can enable View only mode as no need to capture controls.
 +
Connect to your PC - you will be asked to type password, and after that picture of secondary display will appear (black screen or current wallpaper).
 +
 +
'''Launch''' Enemy Engaged: Comanche vs. Hokum, shared screen should be black at this point.
 +
Start mission and get inside any helicopter. Enable both MFDs and you will see their copy on the Android device screen.
 +
 +
[[File:Android MFD.jpg|frameless]]
 +
 +
 +
One '''huge''' limitation of this method is high latency - it's 100-300ms and noticeable when you are using FLIR for DTV optics. You can try to decrease latency by making screen resolution smaller.

Revision as of 19:23, 5 March 2020

MFD export allows you to display the MFDs on a separate monitor.

Requirements

  1. EECH has to run in full screen mode.
  2. Both monitors/adapters have to be configured in dualview mode. Not in clone mode! If you click on Start->Control Panel->Display Properties->Settings->Identify both screens should show different numbers. (These numbers have nothing to do with the number in export_mfd_adapter=n. Here you have to try the numbers (0,1,2,3,...) until it works.)
  3. The defined MFD export screen resolution has to be supported by the export monitor

The best way to configure the screens

  • set monitors in dualview mode
  • delete game.cfg
  • run eech with mfdexport disabled
  • configure the main screen in the game options menu
  • quit EECH
  • enable mfdexport and set mfd_export_adapter=0
  • run EECH

If the game crashes (hangs or shows error message) then try mfd_export_adapter=1 (2,3,..)

MFD export should also work with different (mixed) graphic cards, e.g. the main screen is on one card and the MFDs on the other card. But both MFDs can only be displayed on the same card. It is not possible to put one mfd on one card and the second mfd on the other card.

Examples

How to render MFD on Android tablet using screen share VNC software

Example system: Windows 7 x64 PC with #1 FullHD monitor connected via DVI, which used for the main game rendering, and #2 1024x640 display using HDMI. They configured to be extended monitors, not cloned.

MFD Displays.jpg

At this stage MFD data can be rendered on second display already, but in this example secondary display will be used as dummy for screen share only. Important to understand, that display will be turned off (in idle mode), but connected.

If you have no second unused monitor connected, you may try one of the solutions:

  • if empty VGA port available, you can try to use it for manual screen
  • some software solution (like custom drivers) can be used but it depends on operation system
  • DIY plug for HDMI may force video adapter to add extra display, but you shouldn't do it without experience in electronics


First step is configure EECH.INI

   export_mfd=1                              # enable MFD export
   export_mfd_adapter=0                      # 0 is connected display #2
   export_mfd_screen_width=1024              # screen width
   export_mfd_screen_height=640              # screen height
   export_mfd_left_pos=0,0,512,512           # left MFD position: top left corner (0px, 0px) bottom right corner (512px, 512px), height same as with to preserve proportions
   export_mfd_right_pos=512,0,1024,512       # right MFD position: top left corner (512px, 0px) bottom right corner (1024px, 512px)
   export_mfd_single_pos=0,0,512,512         # no longer used

If possible, export can be tested using connected display after game launch.

Second step: configure share screen software.

RealVNC should be installed in Windows, it's only one I know can option to select display. After installation, you can set up password and accept connections on default port (it can be changed if necessary). Then go to Expert tab and set DisplayDevice value as \\.\DISPLAY2 (number may differ)

Ultravnc.jpg

Enable Wi-Fi on Android device and install VNC Viewer application. Open it, create new connection using IP of your PC and selected port (default is 5900). You can enable View only mode as no need to capture controls. Connect to your PC - you will be asked to type password, and after that picture of secondary display will appear (black screen or current wallpaper).

Launch Enemy Engaged: Comanche vs. Hokum, shared screen should be black at this point. Start mission and get inside any helicopter. Enable both MFDs and you will see their copy on the Android device screen.

Android MFD.jpg


One huge limitation of this method is high latency - it's 100-300ms and noticeable when you are using FLIR for DTV optics. You can try to decrease latency by making screen resolution smaller.