Android: Samsung Galaxy S2 Sample Browser Issue

Discussion of issues specific to mobile platforms such as iOS, Android, Symbian and Meego.
User avatar
DanielSefton
Ogre Magi
Posts: 1235
Joined: Fri Oct 26, 2007 12:36 am
Location: Mountain View, CA
x 10

Android: Samsung Galaxy S2 Sample Browser Issue

Post 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!
You do not have the required permissions to view the files attached to this post.
User avatar
Wolfmanfx
OGRE Team Member
OGRE Team Member
Posts: 1525
Joined: Fri Feb 03, 2006 10:37 pm
Location: Austria - Leoben
x 99

Re: Android: Samsung Galaxy S2 Sample Browser Issue

Post 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.
User avatar
DanielSefton
Ogre Magi
Posts: 1235
Joined: Fri Oct 26, 2007 12:36 am
Location: Mountain View, CA
x 10

Re: Android: Samsung Galaxy S2 Sample Browser Issue

Post 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!
User avatar
Wolfmanfx
OGRE Team Member
OGRE Team Member
Posts: 1525
Joined: Fri Feb 03, 2006 10:37 pm
Location: Austria - Leoben
x 99

Re: Android: Samsung Galaxy S2 Sample Browser Issue

Post by Wolfmanfx »

yes i provided precompiled deps for the optimizer you just need to enable it via a flag
Emerich
Halfling
Posts: 64
Joined: Wed Oct 24, 2012 10:59 am
x 12

Re: Android: Samsung Galaxy S2 Sample Browser Issue

Post 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
User avatar
DanielSefton
Ogre Magi
Posts: 1235
Joined: Fri Oct 26, 2007 12:36 am
Location: Mountain View, CA
x 10

Re: Android: Samsung Galaxy S2 Sample Browser Issue

Post by DanielSefton »

Thanks. Simply adding OGRE_CONFIG_ENABLE_GLES2_GLSL_OPTIMISER=1 worked for me. Runs fine on S2 now. :)