Android: Samsung Galaxy S2 Sample Browser Issue

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

Android: Samsung Galaxy S2 Sample Browser Issue

Post by DanielSefton » Fri Apr 05, 2013 6:30 am

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!
Attachments
jMl63yJ.png
jMl63yJ.png (3.42 KiB) Viewed 1662 times
0 x

User avatar
Wolfmanfx
OGRE Team Member
OGRE Team Member
Posts: 1525
Joined: Fri Feb 03, 2006 10:37 pm
Location: Austria - Leoben
x 1
Contact:

Re: Android: Samsung Galaxy S2 Sample Browser Issue

Post by Wolfmanfx » Fri Apr 05, 2013 6:34 am

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.
0 x

User avatar
DanielSefton
Ogre Magi
Posts: 1235
Joined: Fri Oct 26, 2007 12:36 am
Location: Mountain View, CA
Contact:

Re: Android: Samsung Galaxy S2 Sample Browser Issue

Post by DanielSefton » Fri Apr 05, 2013 7:09 am

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!
0 x

User avatar
Wolfmanfx
OGRE Team Member
OGRE Team Member
Posts: 1525
Joined: Fri Feb 03, 2006 10:37 pm
Location: Austria - Leoben
x 1
Contact:

Re: Android: Samsung Galaxy S2 Sample Browser Issue

Post by Wolfmanfx » Fri Apr 05, 2013 7:51 am

yes i provided precompiled deps for the optimizer you just need to enable it via a flag
0 x

Emerich
Halfling
Posts: 64
Joined: Wed Oct 24, 2012 10:59 am

Re: Android: Samsung Galaxy S2 Sample Browser Issue

Post by Emerich » Fri Apr 05, 2013 11:00 am

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
0 x

User avatar
DanielSefton
Ogre Magi
Posts: 1235
Joined: Fri Oct 26, 2007 12:36 am
Location: Mountain View, CA
Contact:

Re: Android: Samsung Galaxy S2 Sample Browser Issue

Post by DanielSefton » Fri Apr 05, 2013 7:30 pm

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

Post Reply