Page 1 of 1

RenderTarget with Android GLES 2.0

Posted: Thu Oct 23, 2014 7:48 am
by Kgm
Hello ZGE community,

I tried to use the RenderTarget component so that I can implement some effects such as bloom but I couldn't get it to work on Android.

So my question is: Does the current beta version of ZGE support using the RenderTarget component with Android GLES 2.0?

Attached here is a zgeproj example. The example worked fine on my PC while on Android I only received "blank" output/texture.

Thanks in advance. :D

Re: RenderTarget with Android GLES 2.0

Posted: Thu Oct 23, 2014 11:01 am
by Kjell
Hi Kgm,
Kgm wrote:I tried to use the RenderTarget component so that I can implement some effects such as bloom but I couldn't get it to work on Android.
Same here .. the RenderTarget sampler is completely blank on Android. It doesn't even contain the ClearColor, so there's probably a bug in the implementation somewhere.

K

Posted: Fri Oct 24, 2014 7:43 am
by VilleK
Hi Kgm,

I noticed that I tried to bind the 'EXT' version of the GL-functions, i.e. glIsRenderbufferEXT instead of glIsRenderbuffer. The EXT functions do not exist on Android so no FBO-functionality was enabled.

However I still don't get good results yet.

Can you please try the version below and see if it makes any difference for you?

http://www.zgameeditor.org/files/ZGameEditor_beta.zip

Posted: Fri Oct 24, 2014 10:53 am
by VilleK
Found some other things to fix. Works on my phone now.

Please try it out:

http://www.zgameeditor.org/files/ZGameEditor_beta.zip

Image

Posted: Fri Oct 24, 2014 5:38 pm
by Kgm
Hi VilleK,

Thanks, the fixes work well!