Search found 850 matches
- Wed Jun 16, 2021 10:13 am
- Forum: General discussion
- Topic: Questions about ES2/GL3 shaders
- Replies: 90
- Views: 111551
Re: Questions about ES2/GL3 shaders
I'm back at discovering shaders. I managed to make the vertex color one: #ifdef GL_ES precision mediump float; #endif uniform mat4 modelViewProjectionMatrix; attribute vec3 position; // vertex position attribute vec3 color; // vertex color varying vec4 v_Color; void main() { v_Color = vec4(color, 1....
- Tue Jun 08, 2021 3:18 pm
- Forum: General discussion
- Topic: Questions about ES2/GL3 shaders
- Replies: 90
- Views: 111551
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...
- Tue Jun 08, 2021 9:03 am
- Forum: General discussion
- Topic: Questions about ES2/GL3 shaders
- Replies: 90
- Views: 111551
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?
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?
- Mon Jun 07, 2021 9:23 pm
- Forum: General discussion
- Topic: Questions about ES2/GL3 shaders
- Replies: 90
- Views: 111551
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...
- Sat Jun 05, 2021 8:01 am
- Forum: General discussion
- Topic: New feature: Classes in scripting
- Replies: 18
- Views: 26361
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 repla...
- Fri Jun 04, 2021 3:54 pm
- Forum: General discussion
- Topic: Questions about ES2/GL3 shaders
- Replies: 90
- Views: 111551
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 !
- Fri Jun 04, 2021 3:15 pm
- Forum: General discussion
- Topic: Questions about ES2/GL3 shaders
- Replies: 90
- Views: 111551
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.

Also, with your example, I get your desktop cell shape/color on preview mode, and your android cell on build and run.
- Fri Jun 04, 2021 1:25 pm
- Forum: General discussion
- Topic: Questions about ES2/GL3 shaders
- Replies: 90
- Views: 111551
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.
Edit: oh, there are no differences between 32 and 64 bits. Both are acting weird.
- Fri Jun 04, 2021 1:08 pm
- Forum: General discussion
- Topic: Questions about ES2/GL3 shaders
- Replies: 90
- Views: 111551
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: ...
- Fri Jun 04, 2021 12:53 pm
- Forum: General discussion
- Topic: Questions about ES2/GL3 shaders
- Replies: 90
- Views: 111551
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...
- Fri Jun 04, 2021 12:01 pm
- Forum: General discussion
- Topic: Questions about ES2/GL3 shaders
- Replies: 90
- Views: 111551
Re: Questions about ES2/GL3 shaders
I choose you, OpenGL ES 2.0 / OpenGL ES Shading Language 1.0 
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?

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?
- Fri Jun 04, 2021 8:18 am
- Forum: General discussion
- Topic: Questions about ES2/GL3 shaders
- Replies: 90
- Views: 111551
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 s...
- Thu Jun 03, 2021 6:29 pm
- Forum: General discussion
- Topic: Questions about ES2/GL3 shaders
- Replies: 90
- Views: 111551
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...
- Thu Jun 03, 2021 1:51 pm
- Forum: General discussion
- Topic: Questions about ES2/GL3 shaders
- Replies: 90
- Views: 111551
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
Edit:
And if I add the directive #version 330 (I tried from 100 to 330), the whole screen is white on Android.

Edit:
And if I add the directive #version 330 (I tried from 100 to 330), the whole screen is white on Android.
- Thu Jun 03, 2021 12:54 pm
- Forum: General discussion
- Topic: Questions about ES2/GL3 shaders
- Replies: 90
- Views: 111551
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" Cap...