iOS 8.1.1 + Ogre 1.9

Discussion of issues specific to mobile platforms such as iOS, Android, Symbian and Meego.
buratino
Gnoblar
Posts: 5
Joined: Fri Nov 14, 2014 9:48 pm

iOS 8.1.1 + Ogre 1.9

Post by buratino »

Hi. Couple of days ago i started to learn/play with Ogre. Appears it doesn't work out of the box. Here is several issues i had:

1) macBundlePath() + "/../Documents/" isn't valid with iOS 8 (couldn't save/load ogre.cfg);
2) running OS X program within simulator 8 isn't valid (this technique was used to identify XCode's path);
3) render system OpenGL ES 1.x won't compile because of missing *.mm files (i see fixes in default branch but not merged in stable 1.9);
4) device orientation support for windowed mode is broken (wrong and duplicated height/width swaping);
5) windowed mode for render system OpenGL ES 1.x is broken (didn't accept ViewController if it's not root);
6) hlsl2glsl is not complete: no x86_64 arch in iOSDependencies, had to recompile it manually and also adjust Ogre to fit latest hlsl2glsl API;
7) no GL ES 3 support. Ogre won't compile with that option enabled because of some missing declarations (actually don't need that but it could be interesting to see deferred lighting example with Ogre on iOS).

I managed to fix them locally (except gles3) and now have working demo (Ogre in UIView).
Here is my changes:
dd4dd55_simulator_8_1.patch
But few questions left (especially after i found out about iOS's SceneKit framework).
a) Are mentioned issues known?
b) Is iOS support planned or deprecated, or it's totally depends on volunteers?
c) What's the latest stable Ogre branch/commit?
d) What branch is bleeding edge, v2-0? Lots of forum-threads mention v1-10, but i can't find such thing.
You do not have the required permissions to view the files attached to this post.
frostbyte
Orc Shaman
Posts: 737
Joined: Fri May 31, 2013 2:28 am
x 65

Re: iOS 8.1.1 + Ogre 1.9

Post by frostbyte »

b) Is iOS support planned or deprecated, or it's totally depends on volunteers?
what do you mean by planned -OGRE already supports IOS - and yes OGRE is open source volunteer project -
you can also fork OGRE add and fix commit etc...http://www.ogre3d.org/developers/submit-patch
c) What's the latest stable Ogre branch/commit?
latest "stable" is 1.9 - how ever afaik 1.10 don't suffer from special problems and will soon be declared "stable"
off course "stable" is just a word...and after "stable" comes 1.11 1.12 etc, all "stable"...
d) What branch is bleeding edge, v2-0? Lots of forum-threads mention v1-10, but i can't find such thing.
2-0 is the "bleeding edge" but right now due to internal policies the most important parts of it are not released yet....it is also very buggy/unstable/incomplete so right now its more like "bleeding" but without the "edge"

1.10 is now the default branch, while 1.9 has its own branch...
you can find all on the bitbucket...https://bitbucket.org/sinbad/ogre/
the woods are lovely dark and deep
but i have promises to keep
and miles to code before i sleep
and miles to code before i sleep..

coolest videos link( two minutes paper )...
https://www.youtube.com/user/keeroyz/videos
buratino
Gnoblar
Posts: 5
Joined: Fri Nov 14, 2014 9:48 pm

Re: iOS 8.1.1 + Ogre 1.9

Post by buratino »

Code: Select all

what do you mean by planned -OGRE already supports IOS
Guess i got used to OS X where it seems like everything works out of the box. Thus Ogre 1.9 + Xcode 6 + iOS 8 feels like a bit deprecated.
By "planned support" i'd like to know if anyone else is going to get Ogre back in line.
I think I'll submit few pull requests in the near future, just need to figure out better approach than hardcoding strings :)

And thank you for clarification about versions. I thought 2-0 is after 1-9 :)
User avatar
c6burns
Beholder
Posts: 1512
Joined: Fri Feb 22, 2013 4:44 am
Location: Deep behind enemy lines
x 139

Re: iOS 8.1.1 + Ogre 1.9

Post by c6burns »

masterfalcon used to do the apple support, but I assume real life nabbed him as I haven't seen him around. Submit pull requests :)
User avatar
Zonder
Ogre Magi
Posts: 1173
Joined: Mon Aug 04, 2008 7:51 pm
Location: Manchester - England
x 76

Re: iOS 8.1.1 + Ogre 1.9

Post by Zonder »

buratino wrote: I thought 2-0 is after 1-9 :)
A lot of people make that mistake with version numbers, the numbers are all independant ;)
There are 10 types of people in the world: Those who understand binary, and those who don't...
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: iOS 8.1.1 + Ogre 1.9

Post by masterfalcon »

Hi,

Thanks buratino! The patches look good and I've pushed the changes.

iOS support is not deprecated. I've been really busy with work and life and just haven't had the time to keep it up to date recently.

Masterfalcon
buratino
Gnoblar
Posts: 5
Joined: Fri Nov 14, 2014 9:48 pm

Re: iOS 8.1.1 + Ogre 1.9

Post by buratino »

Awesome, gles3 now works too (without glsl-optimizer)!
DeferredShading looks nice :)