RenderTarget with Android GLES 2.0

All topics about ZGameEditor goes here.

Moderator: Moderators

Post Reply
Kgm
Posts: 7
Joined: Fri Sep 12, 2014 1:57 am

RenderTarget with Android GLES 2.0

Post 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
Attachments
GLES20-RenderTarget.zgeproj
(4.94 KiB) Downloaded 483 times
Last edited by Kgm on Thu Oct 23, 2014 3:51 pm, edited 1 time in total.
User avatar
Kjell
Posts: 1876
Joined: Sat Feb 23, 2008 11:15 pm

Re: RenderTarget with Android GLES 2.0

Post 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
User avatar
VilleK
Site Admin
Posts: 2274
Joined: Mon Jan 15, 2007 4:50 pm
Location: Stockholm, Sweden
Contact:

Post 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
User avatar
VilleK
Site Admin
Posts: 2274
Joined: Mon Jan 15, 2007 4:50 pm
Location: Stockholm, Sweden
Contact:

Post 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
Kgm
Posts: 7
Joined: Fri Sep 12, 2014 1:57 am

Post by Kgm »

Hi VilleK,

Thanks, the fixes work well!
Post Reply