GLBasic forum

Main forum => Bug Reports => Topic started by: SnooPI on 2013-Oct-09

Title: GLB 11.556 - 3d some bugs on Android
Post by: SnooPI on 2013-Oct-09
Apparently there is some differences between v10 and v11.556 in 3D on Android:

In X, the camera seems to be inversed.
X_CULLMODE is inversed.

(thanks Gernot, despite still some problems, this is a very good version  :good:)
Title: Re: GLB 11.556 - 3d some bugs on Android
Post by: kanonet on 2013-Oct-09
I can not confirm your Problem, 11.556 works fine for me, 3D looks almost the same on Android and Windows (only some smaller differences in colors, think thats ok). Tested on bluestacks, no real device.
Title: Re: GLB 11.556 - 3d some bugs on Android
Post by: SnooPI on 2013-Oct-09
Tested on Nexus 7 and Kindle Fire hd.
I'll repeat some tests.

thx for your reply kano  ;)
Title: Re: GLB 11.556 - 3d some bugs on Android
Post by: MrTAToad on 2013-Oct-09
Have you got some piccies ?
Title: Re: GLB 11.556 - 3d some bugs on Android
Post by: SnooPI on 2013-Oct-10
I confirm these bugs, but not in all resolutions.

No screenshot MrTAToad, but a simple program to test.

It's a very strange bug and very difficult to detect  :S
Title: Re: GLB 11.556 - 3d some bugs on Android
Post by: SnooPI on 2013-Oct-11
During my tests, I noticed another bug with SETORIENTATION.
The result is not the same on android  :(
Title: Re: GLB 11.556 - 3d some bugs on Android
Post by: MrTAToad on 2013-Oct-11
Will have to have a look - need to install a few things first...
Title: Re: GLB 11.556 - 3d some bugs on Android
Post by: MrTAToad on 2013-Oct-11
On my Huawei phone it is landscape, but the objects are solid and rotate properly.

Will test it on my tablet soonish (and then can get some screenshots)
Title: Re: GLB 11.556 - 3d some bugs on Android
Post by: SnooPI on 2013-Oct-11
Thank you for your help MrTAToad  :good:

I will also try to take some screenshots.
Title: Re: GLB 11.556 - 3d some bugs on Android
Post by: SnooPI on 2013-Oct-11
Ooook now, I am unable to compile on xp.  :rant:       GLB v11.556-559 :whip:

I give up, this version is too buggy for me  :giveup:
I return to my old v10.283 (has less bugs in 3d)

Hoping that v11.559 will not be the final v11.  :sick:

Thank you kanonet and MrTAToad for their help  :booze:
Title: Re: GLB 11.556 - 3d some bugs on Android
Post by: MrTAToad on 2013-Oct-12
Are you finding that when compiling for Android, you end up with two sets of 559 errors ?

I have found that Cleanup in the latest version deletes the android icon file (in the Android release directory) and compiling doesn't create a new one...
Title: Re: GLB 11.556 - 3d some bugs on Android
Post by: SnooPI on 2013-Oct-13
In fact it's a little problem with the linking (just with my v11 not v10).
But that's not the real problem, the real problem is the 3D.
I reconfirm the bugs mentioned above. :(
Apparently few people complain of this version, i think few people make of true 3D with GLB  :|

Thank you MrTAToad for your interest :good:
Title: Re: GLB 11.556 - 3d some bugs on Android
Post by: kanonet on 2013-Oct-13
I work with 3D but usually only on Windows. I had a look at your test project:

1. I could not compile your project for android, dont know why. I created a new project, copied your code+image+project settings and it compiled just fine. Something must be wrong with your project. Maybe try 11.559 on your machine again and create a new project.

2. I could confirm your problems, some testing showed they are very strange:
problem a)
can only see small part of the scene and scene is turned 90 degrees.
-> can be fixed/work around if you add a SETSCREEN at top of your program, then it works fine.
problem b)
cullmode is the exact opposite from windows (-1 is 1 and other way around)
-> if you added fix for problem a), problem b) is also gone if I set app size to tablet mode, but if I run it in tablet mode problem is still there...

All tested with 11.559 on bluestacks/win7 x64
Title: Re: GLB 11.556 - 3d some bugs on Android
Post by: SnooPI on 2013-Oct-13
SETSCREEN doesn't work on NEXUS 7 and KINDLE FIRE HD (and probably with others) because this function has no effect on these tablets (the resolution is the desktop resolution)
That's why my prog is fully programmed to work with all resolutions (and not just with a simple stretching of the screen)

In Fact, i think all of this is an orientation problem that disturb the 3d.
Indeed, I noticed that :

(http://www.glbasic.com/forum/index.php?action=dlattach;topic=9521.0;attach=6364;image)

Very strange  O_O

Thanks for your tests kanonet  :good:

Title: Re: GLB 11.556 - 3d some bugs on Android
Post by: kanonet on 2013-Oct-13
Yes SETSCREEN has no effect on Android - on theory. It did fix one of the issues, like I posted. I guess this is cause it internally sets the viewport or something like that. Just try it.
Title: Re: GLB 11.556 - 3d some bugs on Android
Post by: SnooPI on 2013-Oct-13
No change

I give up, I'll wait for the v12  =D

Sorry for the late reply, i'm working on a 3D software rendering engine (yes, i'm tired of all these bugs  :D)