Search found 2277 matches

by VilleK
Thu Jul 29, 2021 11:29 am
Forum: Bug reports
Topic: [SOLVED] Bitmap composed of Noise + Expression crashes on Android
Replies: 11
Views: 13674

Re: Bitmap composed of Noise + Expression crashes on Android

Kjell reminded me that this is GL ES 2. I've tried to make changes here to fix it. Please try this version of ZBitmap.
by VilleK
Thu Jul 29, 2021 9:53 am
Forum: Bug reports
Topic: [SOLVED] Bitmap composed of Noise + Expression crashes on Android
Replies: 11
Views: 13674

Re: Bitmap composed of Noise + Expression crashes on Android

Right, we need some good old printf-debugging. Please re-enable the call to GLESPixelsFromTexture. Then: 1. Add "ZPlatform" to the uses list in ZBitmap 2. Find the GLESPixelsFromTexture function at line 101 in ZBitmap.pas 3. Add "Platform_Error" calls after each line inside GLESP...
by VilleK
Thu Jul 29, 2021 7:28 am
Forum: Bug reports
Topic: [SOLVED] Bitmap composed of Noise + Expression crashes on Android
Replies: 11
Views: 13674

Re: Bitmap composed of Noise + Expression crashes on Android

The log still doesn't give anything useful, sadly.

But lets try to figure out where the problem could be.

Please try comment out line 169 in ZBitmap (the call to GLESPixelsFromTexture) and then rebuild Android binary.
by VilleK
Wed Jul 28, 2021 3:07 pm
Forum: Bug reports
Topic: [SOLVED] Bitmap composed of Noise + Expression crashes on Android
Replies: 11
Views: 13674

Re: Bitmap composed of Noise + Expression crashes on Android

I think that log is filtered somehow. It should at least show some kind of info from the Android OS when it crashes. Can you check the log filter settings? I don't remember the details but I think there is some start up parameter to filter the output.
by VilleK
Wed Jul 28, 2021 7:54 am
Forum: Bug reports
Topic: [SOLVED] Bitmap composed of Noise + Expression crashes on Android
Replies: 11
Views: 13674

Re: Bitmap composed of Noise + Expression crashes on Android

Have you rebuilt the Android binary recently? Please check that it is built from the latest ZGE sources.

Do you get any crash log?
by VilleK
Tue Jul 20, 2021 9:22 am
Forum: Off-topic
Topic: Windows 11
Replies: 3
Views: 19616

Re: Windows 11

I see. I wish there would be a generic OpenGL driver that translates calls to DirectX or Metal. The ANGLE project is interesting but only supports GLES. I would like full desktop OpenGL 1.0 to 3.0 functionality available everywhere.
by VilleK
Tue Jul 20, 2021 7:26 am
Forum: Off-topic
Topic: Windows 11
Replies: 3
Views: 19616

Re: Windows 11

Hi Kjell,

That sounds strange. How can a requirement for a certain level of DirectX compatibility end up with some GPUs only supporting OpenGL 1.1?
by VilleK
Wed Jul 14, 2021 2:28 pm
Forum: Releases
Topic: ZGameEditor version 5.0
Replies: 4
Views: 8330

ZGameEditor version 5.0

The official build is now 5.0 (since its been years since we last updated the version number).

Main changes in this build:
- Classes support in scripting
- ZGameEditor and the runtime engine is now 64-bit

http://www.zgameeditor.org/files/ZGameEditor_beta.zip
by VilleK
Tue Jul 06, 2021 11:02 am
Forum: Feature requests
Topic: Simplification of Player_xxx.bin
Replies: 3
Views: 8117

Re: Simplification of Player_xxx.bin

There is some code in frmMain that fills the most-recently-used list of filenames in the File menu. You could take a look there.

As for getting a list of filenames, I think there is some code in frmMain too that use "GetFiles".
by VilleK
Mon Jul 05, 2021 8:01 am
Forum: Feature requests
Topic: [FIXED] Same background color for PC and Android
Replies: 9
Views: 10974

Re: Same background color for PC and Android

Its been a long time since I looked at the ZGE Java code. Maybe the recommended way to initialize an OpenGL application is completely different now compared to when this code was written. When I try searching for "Android transparent OpenGL surface" then the normal problem seems to be that...
by VilleK
Fri Jul 02, 2021 2:25 pm
Forum: General discussion
Topic: New feature: Classes in scripting
Replies: 18
Views: 20912

Re: New feature: Classes in scripting

Ats wrote: Fri Jul 02, 2021 11:38 am Do we get a gain in performance if using classes instead of classic functions and stuff?
Not really. It is just an optional way of organizing your code and may seem more natural if you have previously used a language such as Java.
by VilleK
Mon Jun 28, 2021 7:37 am
Forum: General discussion
Topic: New feature: Classes in scripting
Replies: 18
Views: 20912

Re: New feature: Classes in scripting

NES Donkey Kong works pretty good.
by VilleK
Wed Jun 23, 2021 1:38 pm
Forum: General discussion
Topic: New feature: Classes in scripting
Replies: 18
Views: 20912

Re: New feature: Classes in scripting

Updated beta in first post. As a test project for the class inheritance feature I ported a simple NES emulator from Java to ZGE. It is a very basic emulator that only seem to support 24kb NES files. And ZGE scripting struggles a bit to keep up a stable frame rate. But it works :). The main purpose h...
by VilleK
Thu Jun 17, 2021 8:23 am
Forum: General discussion
Topic: Questions about ES2/GL3 shaders
Replies: 76
Views: 85092

Re: Questions about ES2/GL3 shaders

Unless the new beta is a fork from before the merge between Classes and the other fixes? It is a fork but should still work. I found the problem with bitmapcells and will fix it. About the missing alpha in vertex colors, I could initialize this to 1.0 but I also want to understand why this is not n...
by VilleK
Wed Jun 16, 2021 1:50 pm
Forum: General discussion
Topic: New feature: Classes in scripting
Replies: 18
Views: 20912

Re: New feature: Classes in scripting

Inheritance in classes is now implemented. Updated beta in first post and the classesdemo-project now use inheritance.