Page 1 of 1

Android: Samsung Galaxy S2 Sample Browser Issue

Posted: Fri Apr 05, 2013 6:30 am
by DanielSefton
On Samsung Galaxy S2 the sample browser doesn't render correctly (see attachment).

Someone linked to this as a potential fix, was it ever committed to the 1.9 branch?

http://www.ogre3d.org/forums/viewtopic.php?f=21&t=68388

Also, any idea if this was fixed as well:

http://www.ogre3d.org/forums/viewtopic.php?f=21&t=71730

Thanks!

Re: Android: Samsung Galaxy S2 Sample Browser Issue

Posted: Fri Apr 05, 2013 6:34 am
by Wolfmanfx
Yeah just to be clear the problem is RTSS - you can use glsles optimizer which fixes the rendering but can create crashes on other shaders.
The issuse is that this device do not like the generated shaders at all. Hand written shaders are fine.

Re: Android: Samsung Galaxy S2 Sample Browser Issue

Posted: Fri Apr 05, 2013 7:09 am
by DanielSefton
Wolfmanfx wrote:Yeah just to be clear the problem is RTSS - you can use glsles optimizer which fixes the rendering but can create crashes on other shaders.
The issuse is that this device do not like the generated shaders at all. Hand written shaders are fine.
Ah yeah, I read the posts where you explained that, I didn't know if it was related though.
can create crashes on other shaders
By that I assume you mean various non-RTSS shaders (like Compositor/Cubemapping)... In which case that doesn't matter for me, I don't use any custom shaders, only what is provided by RTSS.

How do I go about using the optimizer? Is there a CMake flag for it?

Thanks!

Re: Android: Samsung Galaxy S2 Sample Browser Issue

Posted: Fri Apr 05, 2013 7:51 am
by Wolfmanfx
yes i provided precompiled deps for the optimizer you just need to enable it via a flag

Re: Android: Samsung Galaxy S2 Sample Browser Issue

Posted: Fri Apr 05, 2013 11:00 am
by Emerich
Wolfmanfx wrote:yes i provided precompiled deps for the optimizer you just need to enable it via a flag
See this post for a howto

Re: Android: Samsung Galaxy S2 Sample Browser Issue

Posted: Fri Apr 05, 2013 7:30 pm
by DanielSefton
Thanks. Simply adding OGRE_CONFIG_ENABLE_GLES2_GLSL_OPTIMISER=1 worked for me. Runs fine on S2 now. :)