Search found 2281 matches

by VilleK
Mon Jun 28, 2021 7:37 am
Forum: General discussion
Topic: New feature: Classes in scripting
Replies: 18
Views: 23043

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: 23043

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: 93855

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: 23043

Re: New feature: Classes in scripting

Inheritance in classes is now implemented. Updated beta in first post and the classesdemo-project now use inheritance.
by VilleK
Tue Jun 08, 2021 9:36 am
Forum: General discussion
Topic: Questions about ES2/GL3 shaders
Replies: 76
Views: 93855

Re: Questions about ES2/GL3 shaders

Thanks. I now also committed a fix for the ANDROID constant.
by VilleK
Tue Jun 08, 2021 8:39 am
Forum: General discussion
Topic: Questions about ES2/GL3 shaders
Replies: 76
Views: 93855

Re: Questions about ES2/GL3 shaders

Did you try building the Android runtime from latest ZGE sources? I forgot to do so in the zip.

I'll check why the android-constant behave strange.
by VilleK
Mon Jun 07, 2021 2:21 pm
Forum: General discussion
Topic: Questions about ES2/GL3 shaders
Replies: 76
Views: 93855

Re: Questions about ES2/GL3 shaders

I committed some changes. The textures in this thread should now look the same on all platforms. New build here: http://www.zgameeditor.org/files/ZGameEditor_beta.zip
by VilleK
Sun Jun 06, 2021 6:17 pm
Forum: General discussion
Topic: Questions about ES2/GL3 shaders
Replies: 76
Views: 93855

Re: Questions about ES2/GL3 shaders

rrTea wrote: Sun Jun 06, 2021 1:26 pm Another component that causes same effects as BitmapRect is BitmapZoomRotate. It was reported ages ago, don't remember in which context.
Indeed. I should do as Kjell suggested and rewrite them for the CPU instead of GPU.
by VilleK
Sat Jun 05, 2021 8:59 am
Forum: General discussion
Topic: New feature: Classes in scripting
Replies: 18
Views: 23043

Re: New feature: Classes in scripting

The gl-component is from using right click add from library option in project tree. I guess it is not up to date. But if Android is true how can it work at all? I think there was something not working with global arrays yet, so atm you have to declare it in a class and use that: class TMyGlobals { s...
by VilleK
Sat Jun 05, 2021 8:52 am
Forum: General discussion
Topic: Questions about ES2/GL3 shaders
Replies: 76
Views: 93855

Re: Questions about ES2/GL3 shaders

I won't have time to investigate this weekend but I'll look at it next week. Please post any more clues if you find any.
by VilleK
Fri Jun 04, 2021 2:21 pm
Forum: General discussion
Topic: Questions about ES2/GL3 shaders
Replies: 76
Views: 93855

Re: Questions about ES2/GL3 shaders

The RectBitmap seems to have a initialization problem somehow.

Adding this in OnLoaded seems to help:

<RefreshContent Component="RectBitmap"/>
by VilleK
Fri Jun 04, 2021 2:19 pm
Forum: General discussion
Topic: Questions about ES2/GL3 shaders
Replies: 76
Views: 93855

Re: Questions about ES2/GL3 shaders

For the CellBitmap, my best guess so far is that since it is based on a random function, then this random function is implemented differently in Freepascal and in Delphi. So the colors end up different between runtime engine (built with Freepascal) and the designer.
by VilleK
Fri Jun 04, 2021 1:19 pm
Forum: General discussion
Topic: Questions about ES2/GL3 shaders
Replies: 76
Views: 93855

Re: Questions about ES2/GL3 shaders

I don't notice any problem here. Can you please post a simple as possible zgeproj that demonstrates differences in bitmaps between 64 and 32-bit ZGE?
by VilleK
Fri Jun 04, 2021 1:02 pm
Forum: General discussion
Topic: Questions about ES2/GL3 shaders
Replies: 76
Views: 93855

Re: Questions about ES2/GL3 shaders

BitmapCells appears blueish on computer and android BitmapNoise doesn't show up on android BitmapPixels crashes on android If this is on 64-bit Android then I wonder if there could be some 64-bit specific bug. Can you please try the 64-bit ZGE build that I posted in the "classes" thread a...
by VilleK
Thu Jun 03, 2021 6:56 pm
Forum: General discussion
Topic: Questions about ES2/GL3 shaders
Replies: 76
Views: 93855

Re: Questions about ES2/GL3 shaders

No idea what's causing that .. maybe Ville can chime in? Never seen anything like that. It is almost like the OpenGL driver itself chooses to display a test-mode texture instead of everything appearing black which is what usually happens when something goes wrong. I follow this thread but so far I ...