RigsOfRods / rigs-of-rods

Main development repository for Rigs of Rods soft-body physics simulator
https://www.rigsofrods.org
GNU General Public License v3.0
991 stars 175 forks source link

[OpenGL] No rendering device option #3029

Open CuriousMike56 opened 1 year ago

CuriousMike56 commented 1 year ago

OpenGL lacks a rendering device/display output setting: RoR_2023-03-21_12-49-58 Direct3D9 for comparison: RoR_2023-03-21_12-57-02 This is a problem for multi-monitor setups as in my case the game window spawns on the wrong display.

tritonas00 commented 1 year ago

Not sure, but i can't find anything "Rendering Device" related for OpenGL, its there only for DirectX.

https://github.com/OGRECave/ogre/search?q=%22Rendering+Device%22

Yryrgeey commented 1 year ago

Hello how do I get in

Miner34dev commented 6 months ago

Searching a bit on internet it seems it's not impossible only in ogre, but in OpenGL itself.

CuriousMike56 commented 3 months ago

While experimenting with something else, I noticed this:

17:50:01: GLRenderSystem::_createRenderWindow "Rigs of Rods version 2024.03-dev-a35a9d8", 2560x1440 windowed  miscParams: FSAA=0 border=fixed gamma=No monitorIndex=0 vsync=Yes windowProc=140715610345376 

https://github.com/RigsOfRods/rigs-of-rods/blob/master/source/main/AppContext.cpp#L296

monitorIndex defaults to 0 on both D3D9 and OpenGL. Forcing it to 1 in code enables OpenGL to launch on my primary monitor:

    //miscParams["monitorIndex"] = Ogre::StringConverter::toString(idx);
    miscParams["monitorIndex"] = "1";

image

So it looks like a monitor index override could be added to OpenGL renderer settings.