Page 1 of 1

NPOT Textures on iOS Devices with Ogre 1.9

Posted: Tue Jan 14, 2014 5:12 pm
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

Re: NPOT Textures on iOS Devices with Ogre 1.9

Posted: Wed Jan 15, 2014 1:17 am
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.

Re: NPOT Textures on iOS Devices with Ogre 1.9

Posted: Fri Jan 17, 2014 10:15 am
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