Multiple RenderWindows on iOS?

Discussion of issues specific to mobile platforms such as iOS, Android, Symbian and Meego.
simedj
Goblin
Posts: 262
Joined: Fri Nov 18, 2011 6:50 pm
x 3

Multiple RenderWindows on iOS?

Post by simedj »

I want to render multiple viewports, but each has some GUI tied to it. I can do this all in-Ogre using MyGUI's Canvas, but on Windows another option would be to actually create multiple HWNDs, each with a 1-viewport RenderWindow, and then put native GUI on top of Ogre rather than inside it.

Is this equally possible on iOS? How Ogre works on iOs seems a bit like magic to me, but we tie Ogre to a UIView (which Ogre auto-creates IIRC) so am I right a UIView corresponds to a HWND in Win32?

If so can I manually create views of arbitrary size and attach RenderWindows on them? Typically I'd want one viewport rendering full-screen, or most of the screen, and maybe one small viewport floating on top. If this was done as a 2nd UIView, I can add native iOS GUI on top, etc?

I don't expect any samples to do this exist in Ogre but has anyone here tried it, got any advice or test code perhaps?
Looking to find experienced Ogre & shader developers/artists. PM me with a contact email address if interested.
User avatar
masterfalcon
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 4270
Joined: Sun Feb 25, 2007 4:56 am
Location: Bloomington, MN
x 126

Re: Multiple RenderWindows on iOS?

Post by masterfalcon »

I know that some people have had some degree of success doing this. Really what you're looking for is multiple views rather than windows. On iOS a window consumes the entire screen. Dig around in the forums a bit. I haven't done it myself but it could work just fine. But there may be issues, if so, I may be able to help.