www.jpct.net

jPCT-AE - a 3d engine for Android => Projects => Topic started by: zbych on February 22, 2012, 09:24:03 am

Title: 3D Live Wallpaper using GLSL
Post by: zbych on February 22, 2012, 09:24:03 am
It's my first project using jPCT. I have written it for Valentine's day and it's my first OpengGL app with GLSL. I know Valentine's is behind us :) but  I wanted to say that the possibility to use shaders in jPCT is great thing.
On some devices there might be "Create context error", but I am unable to find the reason of this.

https://market.android.com/details?id=com.zr.valentine.photo.heart (https://market.android.com/details?id=com.zr.valentine.photo.heart)
Title: Re: 3D Live Wallpaper using GLSL
Post by: EgonOlsen on February 22, 2012, 10:10:58 am
Are you sure that these devices support ES 2.0? You can limit your app to devices that support it in the AndroidManifest.xml. Apart from that, i've no idea as this seems to be a problem with the wall paper implementation. jPCT-AE doesn't care about a context as long as one is provided.
Title: Re: 3D Live Wallpaper using GLSL
Post by: zbych on February 22, 2012, 12:03:34 pm
I know it's issue of wallpaper service... it is modified version of Robert Green's wallpaper service, forced to create ES 2.0 context. Previously I have added limit for devices supporting only ES 2.0 however it didn't help. That's why i removed it and modified code - when it fail to create 2.0 context then it will try to crete 1.x and disable shaders, but looks like it didn't help much for devices with ES 2.0, but should help devices with ES 1.x only.
Title: Re: 3D Live Wallpaper using GLSL
Post by: EgonOlsen on February 23, 2012, 09:39:54 pm
Does this wallpaper service prints out the reason for this problem? Some exception?