How to support Screen Rotation?

Discussion area about developing or extending OGRE, adding plugins for it or building applications on it. No newbie questions please, use the Help forum for that.
User avatar
KungFooMasta
OGRE Contributor
OGRE Contributor
Posts: 2087
Joined: Thu Mar 03, 2005 7:11 am
Location: WA, USA
x 16

How to support Screen Rotation?

Post by KungFooMasta »

Hi community,

I've been using Ogre to create a Game, and up until recently I was working on a Windows 8 Store application on the desktop. I've now tried to get it running on Windows Phone, and it does work, although Windows Phone Direct3D applications are Portrait orientation by default. In order to render in landscape mode, I will need to apply transformations to everything. Another complexity is that we only want to apply the rotation when rendering to the swap chain; if rendering to a Render Target such as a RenderToTexture or anything, we wouldn't want these rotations included.

QUESTIONS:
- Has anybody tackled this problem before, using Ogre?
- If I needed to implement this solution, would I want to modify code at the RenderSystem plugin level, or in Ogre? (would have been sweet if a Material Pass had a property to rotate the vertices or something)
- Curious if there are any future plans to make screen/device orientation something that Ogre would support natively? (important for mobile devices)
Creator of QuickGUI!