Author Topic: 3D Live Wallpaper using GLSL  (Read 2148 times)

Offline zbych

  • int
  • **
  • Posts: 75
    • View Profile
3D Live Wallpaper using GLSL
« 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

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11776
    • View Profile
    • http://www.jpct.net
Re: 3D Live Wallpaper using GLSL
« Reply #1 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.

Offline zbych

  • int
  • **
  • Posts: 75
    • View Profile
Re: 3D Live Wallpaper using GLSL
« Reply #2 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.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11776
    • View Profile
    • http://www.jpct.net
Re: 3D Live Wallpaper using GLSL
« Reply #3 on: February 23, 2012, 09:39:54 pm »
Does this wallpaper service prints out the reason for this problem? Some exception?