Search found 444 matches

by Ats
Tue Jun 08, 2021 3:18 pm
Forum: General discussion
Topic: Questions about ES2/GL3 shaders
Replies: 47
Views: 2012

Re: Questions about ES2/GL3 shaders

All right, it's perfect now. Just one very little detail, here's the repro: Put nothing (or libGLESv1_CM.so) in ZExternalLibrary.ModuleName and ZExternalLibrary.BeforeInitExp needs to have the automatic detection code: ModuleName01.png Run the app in preview mode ZExternalLibrary.ModuleName is now o...
by Ats
Tue Jun 08, 2021 9:03 am
Forum: General discussion
Topic: Questions about ES2/GL3 shaders
Replies: 47
Views: 2012

Re: Questions about ES2/GL3 shaders

Sorry, I didn't see that you uploaded the changes to GitHub. I'm on it!

Edit: All right, everything's fine on Android. I manually tried libGLESv1_CM.so and then libGLESv2.so

Here's the new libzgeandroid.so
Maybe I could directly make a PR on gihtub with the new lib next time?
by Ats
Mon Jun 07, 2021 9:23 pm
Forum: General discussion
Topic: Questions about ES2/GL3 shaders
Replies: 47
Views: 2012

Re: Questions about ES2/GL3 shaders

It works perfectly, thanks :wink: Now I need to strip down my shader project in order to find what is causing the crash at start on Android. Edit: Found it. The problem was coming from the openGL initialization because I deactivated a few lines for testing. But written like that, it still crashes on...
by Ats
Sat Jun 05, 2021 8:01 am
Forum: General discussion
Topic: New feature: Classes in scripting
Replies: 12
Views: 1211

Re: New feature: Classes in scripting

Nice old game. Very tricky to climb and get of the ladders :lol: What is that for? if(ANDROID) { if(App.GLBase==0) this.ModuleName="libGLESv1_CM.so"; else this.ModuleName="libGLESv2.so"; } And you should add : else { this.ModuleName = "opengl32"; } because preview replaces the ZExternalLibrary.Modul...
by Ats
Fri Jun 04, 2021 3:54 pm
Forum: General discussion
Topic: Questions about ES2/GL3 shaders
Replies: 47
Views: 2012

Re: Questions about ES2/GL3 shaders

Wow. I'm on the phone right now, but I'll definitely take a look at how you managed to do that when I'll get back home !
by Ats
Fri Jun 04, 2021 3:15 pm
Forum: General discussion
Topic: Questions about ES2/GL3 shaders
Replies: 47
Views: 2012

Re: Questions about ES2/GL3 shaders

Ah! That's what I thought. Try with GLBase: ES2/GL3 and a shader to display your bitmaps. You'll see the problems :)

Also, with your example, I get your desktop cell shape/color on preview mode, and your android cell on build and run.
by Ats
Fri Jun 04, 2021 1:25 pm
Forum: General discussion
Topic: Questions about ES2/GL3 shaders
Replies: 47
Views: 2012

Re: Questions about ES2/GL3 shaders

Because of the box crate texture, test is too big to copy paste in plain text.

Edit: oh, there are no differences between 32 and 64 bits. Both are acting weird.
by Ats
Fri Jun 04, 2021 1:08 pm
Forum: General discussion
Topic: Questions about ES2/GL3 shaders
Replies: 47
Views: 2012

Re: Questions about ES2/GL3 shaders

Results are the same with ZGE64: BitmapCell has a different color BitmapRect is small and black and white instead of red Capture d’écran (245).png And I tried a simple BitmapExpression which works fine on computer but crashes on Android: Pixel.R=rnd(); Pixel.G=rnd(); Pixel.B=rnd(); Pixel.A=1; Edit: ...
by Ats
Fri Jun 04, 2021 12:53 pm
Forum: General discussion
Topic: Questions about ES2/GL3 shaders
Replies: 47
Views: 2012

Re: Questions about ES2/GL3 shaders

Then it has to come from the ZGE generated bitmaps. I tried displaying a BitmapFromFile with it, and it's working perfectly fine. BitmapCells appears blueish on computer and android BitmapNoise doesn't show up on Android BitmapPixels crashes on Android BitmapRect appears twice smaller and white on c...
by Ats
Fri Jun 04, 2021 12:01 pm
Forum: General discussion
Topic: Questions about ES2/GL3 shaders
Replies: 47
Views: 2012

Re: Questions about ES2/GL3 shaders

I choose you, OpenGL ES 2.0 / OpenGL ES Shading Language 1.0 :lol:

Thanks for the cheat sheets. Those are really handy!

So I'm back to the texture problem on Android. Ville, where in the ZGE source code could I check how shaders are handled differently from computer to Android?
by Ats
Fri Jun 04, 2021 8:18 am
Forum: General discussion
Topic: Questions about ES2/GL3 shaders
Replies: 47
Views: 2012

Re: Questions about ES2/GL3 shaders

If I add the directive #version 300 es to the shader, I get a white screen on the phone too. I even tried to play with different combinations in the horrible AndroidManifest.xml file such as: <uses-feature android:glEsVersion="0x00030000" android:required="true" /> Before, that setting was <uses-fea...
by Ats
Thu Jun 03, 2021 6:29 pm
Forum: General discussion
Topic: Questions about ES2/GL3 shaders
Replies: 47
Views: 2012

Re: Questions about ES2/GL3 shaders

I'd like basic stuff to display correctly on computer and Android. And as I get it, compatible mode isn't working on Android. But when ES2/GL3 is activated, everything gets complicated to display: shapes, textures, light ... That's why I'm experimenting. So right now, I'm just trying to make a littl...
by Ats
Thu Jun 03, 2021 1:51 pm
Forum: General discussion
Topic: Questions about ES2/GL3 shaders
Replies: 47
Views: 2012

Re: Questions about ES2/GL3 shaders

Oh, nice one. I keep forgetting about that... So now it is displaying, but it's a weird cell bitmap instead of the noise bitmap :shock:

Screenshot_20210603-154818.png
Screenshot_20210603-154818.png (85.41 KiB) Viewed 263 times

Edit:
And if I add the directive #version 330 (I tried from 100 to 330), the whole screen is white on Android.
by Ats
Thu Jun 03, 2021 12:54 pm
Forum: General discussion
Topic: Questions about ES2/GL3 shaders
Replies: 47
Views: 2012

Re: Questions about ES2/GL3 shaders

I started all over from the GLES2Demo. At least, it's not crashing on Android like before. But I really don't understand why the noise bitmap is working on PC, but not on Android. It's just white. <?xml version="1.0" encoding="iso-8859-1" ?> <ZApplication Name="App" Caption="GLES2 Showroom" GLBase="...
by Ats
Thu Jun 03, 2021 10:27 am
Forum: General discussion
Topic: Questions about ES2/GL3 shaders
Replies: 47
Views: 2012

Re: Questions about GLES2 shaders

Thanks for the explanations. I was looking at your phong shader, and while it's really showing the use of Specular and Emission colors, it doesn't show up on ES2/GL3. I'm going to start over again, and searching for examples that work precisely on PC and Android. Edit: This is really helpful: https:...