Hi together,
here is a patch to r875 which introduces a side-by-side 3D stereo mode, for use on TV displays.
Changes:
additional stereo value StereoSideBySide, "side-by-side" in config file
rendering : render image twice in separate glViewPorts
menu: Coordinate transformation for correct highlighting / selection
map rendering: set map viewport relative to current viewport
The game runs fine with these settings, but there are two minor problems I did not solve:
Car selection renders only to one eye (I don't understand why)
menus: The mouse cursor is only visible on one eye
The patch also contains code for top-down stereo, but this mode is BROKEN: the game hangs at the start of the race. I suggest to throw this part away, but maybe you see an easy way to fix it.
I am neither an OpenGL expert nor a game developer, so please review the changes critically if you decide to merge it into the release code.
Best regards, and thanks to all developers for this fun game!
Christopher
Hi christopher, sorry for the late reply. I am very buzy with work right now, so I wasn't really able of coming back to you earlier. Since I'm not a coder I can't help with implementing your patch, but thank you very much for sharing it. Maybe Andrei has an idea about the little glitches you described. But we are aware that the menu code is rather complicated and should probably be replaced if possible.