Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / strange problem with 3d

Author
Message
Juande
13
Years of Service
User Offline
Joined: 2nd Sep 2011
Location:
Posted: 8th Apr 2013 22:38
Hi everyone,

One user has reported me a problem with my application for android. His Device is a huawei g300 (android 4.0).

According to his information, the moving of objects or camera (in a 3d scene) lead to a trace... (look the attachment).

I don't know what is the reason... What do you think it can be?

Thanks!

P.S. I have tested in ASUS tf101 and tf300, sony ericson xperia neo v and zte grand xm... but there are not problems... the problem is only in this device.

Attachments

Login to view attachments
Cliff Mellangard 3DEGS
Developer
18
Years of Service
User Offline
Joined: 20th Feb 2006
Location: Sweden
Posted: 8th Apr 2013 22:42
Have you disabled clear color?

How do you sync your app?

If you do it manually try to use sync() again ?
Could be that this device neads clear color and the official sync().

I Think i read somewhere that you sync manually and disabled clear color?

Is it a custom shader or agk shader for lights?

Cheers.

Android 2.3 , ZTE Skate , 480x800 , 800 mhz , Samsung Galaxy Y , 240x320 , 832 mhz , Sony ericson arc 480x854 , 1 ghz
Android 4.0 , Dmtech 3g 9738B , 1024x768 , 9.7 inches , 1.2 ghz
Juande
13
Years of Service
User Offline
Joined: 2nd Sep 2011
Location:
Posted: 8th Apr 2013 22:58 Edited at: 8th Apr 2013 22:58
Hi cliff!


I manually sync at the end of the loop... this is part of my code:


I don't use enableclearcolor, because I think that it's correct the option by default... ie, true... the backbuffer is cleared when i sync.

Thanks!
Cliff Mellangard 3DEGS
Developer
18
Years of Service
User Offline
Joined: 20th Feb 2006
Location: Sweden
Posted: 9th Apr 2013 00:48 Edited at: 9th Apr 2013 00:50
Quote: "I manually sync at the end of the loop... this is part of my code:"

You dont manually sync but use agks internal sync
This should work ?

Quote: "I don't use enableclearcolor, because I think that it's correct the option by default... ie, true... the backbuffer is cleared when i sync."

Yes its on by default.

Wath version of agk do you use?

Could you try to use the clear screen command Before the sync and see if it fixes it ?

But i belive its more an issue with the chinese device ?

Iam not sure but i Think huawei made there own cpu on one of there devices ?
Could be an issue?
But iam not sure

If you goggle huawei g300 problems so does it seam to be a crappy device?

Android 2.3 , ZTE Skate , 480x800 , 800 mhz , Samsung Galaxy Y , 240x320 , 832 mhz , Sony ericson arc 480x854 , 1 ghz
Android 4.0 , Dmtech 3g 9738B , 1024x768 , 9.7 inches , 1.2 ghz
Juande
13
Years of Service
User Offline
Joined: 2nd Sep 2011
Location:
Posted: 9th Apr 2013 01:14
Hi again,

I use AppGameKit 1.089.

I can't test with this device... It's a user device... it's not mine... I don't meet this user... I can release a new update with a clearscreen command...

Also, I think that can be a problem of this device... but I don't know... I don't find anything about this problem and this device in google.

Thanks cliff!
MikeMax
AGK Academic Backer
12
Years of Service
User Offline
Joined: 13th Dec 2011
Location: Paris
Posted: 9th Apr 2013 21:16
Juande,

You have to be sure, when disabling automatic ClearColor, that your refreshed 3D objects fill the entire screen (skybox, or anything else...). Only in this case, you can disable it and save performances.

The quickest fix is to enable it obviously ....
Juande
13
Years of Service
User Offline
Joined: 2nd Sep 2011
Location:
Posted: 9th Apr 2013 22:12
Hi Mike,

I don't disable the automatic clearcolor (this option is by default). That is the problem.

On the other hand, I have built a new apk (with clearscreen command) and the user has tested it but it's the same problem

I don't understand...

Thanks!
Paul Johnston
TGC Developer
22
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 9th Apr 2013 23:14
It would appear that the OpenGL clear command is being ignored, perhaps there is a bug in the driver on that device. Try turning EnableClearColor off and using a full screen sprite in the background instead and see if they report it as fixed. This is actually a slower method so I wouldn't recommend it for release but it would tell us if it is the OpenGL command at fault.
Juande
13
Years of Service
User Offline
Joined: 2nd Sep 2011
Location:
Posted: 10th Apr 2013 17:51
Hi Paul,

It's perfect, the problem is solved. Then... The drivers are the cause. it's not true?

Thanks!
nz0
AGK Developer
17
Years of Service
User Offline
Joined: 13th Jun 2007
Location: Cheshire,UK
Posted: 14th Apr 2013 02:42
This also happens on an HTC device with a non-3d app of mine written with 1076.

Just had it reported by a user today.

The device is running android 4.04

Paul Johnston
TGC Developer
22
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 15th Apr 2013 17:33
I can't explain why that would be happening on some devices but not others. Maybe a particular set of parameters passed to the clear command in OpenGL is the cause but I don't know.

Login to post a reply

Server time is: 2024-11-24 11:40:39
Your offset time is: 2024-11-24 11:40:39