Search found 1951 matches

by VilleK
Tue Dec 18, 2018 7:46 am
Forum: General discussion
Topic: ZGameEditor & Android Setting
Replies: 72
Views: 8715

Re: ZGameEditor & Android Setting

Thanks Ats :). Wow, that is indeed a lot of work.
by VilleK
Mon Dec 17, 2018 1:45 pm
Forum: General discussion
Topic: ZGameEditor & Android Setting
Replies: 72
Views: 8715

Re: ZGameEditor & Android Setting

@Ats: I know you made notes already in this thread, but please also when you have time write a list of steps required to get latest Fpc for Android working with ZGE. So I can set this up myself later.
by VilleK
Mon Dec 17, 2018 8:21 am
Forum: Your projects
Topic: A.S.64k
Replies: 2
Views: 33

Re: A.S.64k

I like it! I notice that the exe is exactly 64kb so you seem to have reached the limit :). Or do you have any ideas on how to save space?
by VilleK
Mon Dec 17, 2018 8:17 am
Forum: Bug reports
Topic: Trivial changes to vertex shader sometimes change vertex positions
Replies: 3
Views: 29

Re: Trivial changes to vertex shader sometimes change vertex positions

Hi,

I can't really explain that other than the GLSL-compilation is entirely handled in the graphics driver. So it might be a bug/quirk in your Intel GPU driver.
by VilleK
Fri Dec 14, 2018 8:07 am
Forum: General discussion
Topic: ZGameEditor & Android Setting
Replies: 72
Views: 8715

Re: ZGameEditor & Android Setting

Ok, committed change to Github so that ClearColor.A is used (both in App and RenderTarget).

@Ats: After updating and rebuilding, make sure to set A value in your project. It can be done like this in OnLoaded:

Code: Select all

if(ANDROID)
  App.ClearColor.A=1;
by VilleK
Thu Dec 13, 2018 8:32 am
Forum: General discussion
Topic: ZGameEditor & Android Setting
Replies: 72
Views: 8715

Re: ZGameEditor & Android Setting

@Kjell: do you think I should change so that ZApplication use the alpha value of ClearColor?
by VilleK
Wed Dec 12, 2018 8:47 am
Forum: General discussion
Topic: ZGameEditor & Android Setting
Replies: 72
Views: 8715

Re: ZGameEditor & Android Setting

In ZPong, I see that BallMaterialTexture use "Generated" TexCoords, and I remember that Android (GL ES) does not support that. As for the white background, maybe try creating a project that animates App.ClearColor and see what happens? Something like "App.ClearColor.R=frac(App.Time*0.5);".
by VilleK
Tue Dec 11, 2018 7:14 pm
Forum: General discussion
Topic: ZGameEditor & Android Setting
Replies: 72
Views: 8715

Re: ZGameEditor & Android Setting

I tested your zpong apk here now on Samsung S9. The background and ball is full white while the textured bats look correct. Sound is correct too.

I have no guess so far why it would look like this.
by VilleK
Tue Dec 11, 2018 10:28 am
Forum: General discussion
Topic: ZGameEditor & Android Setting
Replies: 72
Views: 8715

Re: ZGameEditor & Android Setting

Ok but this is a step forward because now we at least has a binary that loads at API level 26, right?

Are all colors inverted or is it just the background color?
by VilleK
Tue Dec 11, 2018 8:04 am
Forum: General discussion
Topic: ZGameEditor & Android Setting
Replies: 72
Views: 8715

Re: ZGameEditor & Android Setting

For the fun, and because I'm still searching how to compile fpc trunk with fpc 3.0.4, I've compiled libzgeandroid.so using laztoapk. I'm not familiar with laztoapk. Does it use a later version of Fpc for Android somehow? Do you get correct visuals with ZPong? It might be worth to keep trying to bui...
by VilleK
Mon Dec 10, 2018 7:31 pm
Forum: General discussion
Topic: ZGameEditor & Android Setting
Replies: 72
Views: 8715

Re: ZGameEditor & Android Setting

Ok we are back to the original problem. TEXTREL was what causes the existing file that I built not work. So I guess the version of Freepascal that you use is not new enough. Found this thread: https://forum.lazarus.freepascal.org/index.php?topic=37199.0 You must either find a newer installer for Fpc...
by VilleK
Mon Dec 10, 2018 12:47 pm
Forum: General discussion
Topic: ZGameEditor & Android Setting
Replies: 72
Views: 8715

Re: ZGameEditor & Android Setting

Try adding some more log messages in Zge.java, line 72:

Code: Select all

Log.i("ZgeAndroid", "Before load binary");
System.loadLibrary("zgeandroid");
Log.i("ZgeAndroid", "After load binary");
If it then shows "Before" but not "After" then we know it is when loading the lib it crashes.
by VilleK
Mon Dec 10, 2018 10:28 am
Forum: General discussion
Topic: ZGameEditor & Android Setting
Replies: 72
Views: 8715

Re: ZGameEditor & Android Setting

Did you also try with completely empty project?

Can you please attach an APK here too?
by VilleK
Sun Dec 09, 2018 8:40 pm
Forum: General discussion
Topic: ZGameEditor & Android Setting
Replies: 72
Views: 8715

Re: ZGameEditor & Android Setting

Great progress! I don't see any real clue in that debug log though. Have you tried with a minimal project? I would start with a completely empty project in ZGE just to check if that works first. You should be able to keep Zge.java in the base folder. Note that APK-files can be renamed to .zip and op...
by VilleK
Sat Dec 08, 2018 8:28 pm
Forum: General discussion
Topic: ZGameEditor & Android Setting
Replies: 72
Views: 8715

Re: ZGameEditor & Android Setting

Nice work so far, and indeed it can drive you crazy getting stuff like this to work. So I hope now you understand why I've been reluctant to do so.

Since it complains about FP-mode, try removing the "-CfVFPv2" parameter.