NPOT Textures on iOS Devices with Ogre 1.9

Discussion of issues specific to mobile platforms such as iOS, Android, Symbian and Meego.
Post Reply
Carlyone
Kobold
Posts: 38
Joined: Thu Jul 05, 2012 3:51 pm
x 4

NPOT Textures on iOS Devices with Ogre 1.9

Post by Carlyone »

Hello,
When doing some model test in our application I noticed that since switching to Ogre 1.9 the non power of two textures were failing to render properly.
There are no errors in the console and the texture is found but it is just displayed as black.

The device capabilities state that the device can handle non power of two textures (iPad4 and iPad Air). On checking how this was determined I found this line in OgreGLES2RenderSystem.cpp

Code: Select all

// ES 2 always supports NPOT textures
rsc->setCapability(RSC_NON_POWER_OF_2_TEXTURES);
If I comment out this line and build then the texture appear again.
For now I've just built Ogre with that line commented out but I dislike having that file edited, is there another setting I've missed?

Hope to hear back

Carl
User avatar
masterfalcon
OGRE Team Member
OGRE Team Member
Posts: 4270
Joined: Sun Feb 25, 2007 4:56 am
Location: Bloomington, MN
x 126
Contact:

Re: NPOT Textures on iOS Devices with Ogre 1.9

Post by masterfalcon »

I believe I have a fix for this issue that I have not committed yet. Let me double check and perhaps I'll commit it tonight.
Carlyone
Kobold
Posts: 38
Joined: Thu Jul 05, 2012 3:51 pm
x 4

Re: NPOT Textures on iOS Devices with Ogre 1.9

Post by Carlyone »

Hi,
Will the commit be to Ogre 1.9 or will I need to merge in the changes with the 1.9 stable I have downloaded.

If I need to merge, I assume the change won't affect anything else?

Kind Regards

Carl
Post Reply