Closed gfrolov closed 7 years ago
With the attached config file, I was able to render to two displays using the D3D spinning-cube demo. When I switched rotation from 0 to 90, the windows changed their aspect ratios and the images rotated by 90 degrees (cubes spinning up rather than left). When I changed to 270, the images flipped and the cubes spun down. This is behaving as expected.
I'll try to reproduce this on a pair of DirectMode displays, rather than using the two on-screen displays, but these both follow the same rendering path as far as image orientation is concerned.
The trick is that when you rotate the display with the "rotation" parameter above, you also need to swap the requested display resolution, because the rendering happens in the un-rotated display resolution and then RenderManager rotates it (swapping aspect ratio) when rendering. If the viewer will see a landscape image (1920x1080) but the display scans out in portrait (1080x1920), you set the display resolution to 1920x1080 and then rotate by 90 (or 270).
When testing DirectMode on dual-screen display setup that receives portrait video, I wasn't able to rotate the displays to show landscape picture. I modified "rotation" setting to "90" and "270" with no visible effect "display": { "rotation": 0, "bitsPerColor": 8 },
CC @russell-taylor