ogre-1.10.9 - Lights not working on iPhone

Discussion of issues specific to mobile platforms such as iOS, Android, Symbian and Meego.
Post Reply
AgahPT
Gnoblar
Posts: 3
Joined: Mon Nov 13, 2017 7:09 pm

ogre-1.10.9 - Lights not working on iPhone

Post by AgahPT »

Hi,

I'm new to Ogre3d and have been running the examples, everything seems to work but the lighting.
I'm following this tutorial:
https://ogrecave.github.io/ogre/api/1.1 ... adows.html

I've attached the logs and a screenshot!

Any help is appreciated.

Image
LOG:
https://pastebin.com/iYLRJwr3

CONFIG:
Render System=OpenGL ES 2.x Rendering Subsystem
[OpenGL ES 2.x Rendering Subsystem]
Content Scaling Factor=3
Display Frequency=0 Hz
FSAA=0
Full Screen=Yes
RTT Preferred Mode=FBO
Video Mode=375 x 667
paroj
OGRE Team Member
OGRE Team Member
Posts: 1993
Joined: Sun Mar 30, 2014 2:51 pm
x 1073
Contact:

Re: ogre-1.10.9 - Lights not working on iPhone

Post by paroj »

did you register with the RTSS as described here?
https://ogrecave.github.io/ogre/api/1.10/setup.html
AgahPT
Gnoblar
Posts: 3
Joined: Mon Nov 13, 2017 7:09 pm

Re: ogre-1.10.9 - Lights not working on iPhone

Post by AgahPT »

Hi,

Thanks for the quick reply!

I'm off work right now, but i'm initializing the APP using OgreBites so it should be automatically done?
I'll try setting up the app manually as per the tutorial and validate it.
AgahPT
Gnoblar
Posts: 3
Joined: Mon Nov 13, 2017 7:09 pm

Re: ogre-1.10.9 - Lights not working on iPhone

Post by AgahPT »

Hi,

I've tried adding the code to add the scene manger to the "RTShader::ShaderGenerator".

Code: Select all

   
    RTShader::ShaderGenerator* shadergen = RTShader::ShaderGenerator::getSingletonPtr();
    shadergen->addSceneManager(scnMgr);
Additionally I've been digging and the ShaderGenerator and callbacks for the RenderObjectListener are being called.

After checking the VS and PS the looks like the VS now has the calculations for lighting:
https://www.diffchecker.com/6nQeJ3vV

The PS is still doing nothing of sorts (at least I can't see it):
https://www.diffchecker.com/2sO5D5Y0
Post Reply