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 / Ombre 3d Problema

Author
Message
Rickyes
8
Years of Service
User Offline
Joined: 7th Sep 2015
Location:
Posted: 14th Aug 2017 11:32
L'Esempio che e' nella cartella 3d/Shadow funziona bene su windows.
Dal momento che provo ad eseguirlo su tablet o telofono o anche in html5 , le ombre non ci sono piu'.
Quale e' il problema?
e perche'?

-------------------------------------------------------------------------------------------------------------------------------------------------------

The example in the agk:3d / Shadow folder works well on windows.
Since I try to run it on a tablet or telphon or even in html5, shadows are gone.
What is the problem?
and why'?
Paul Johnston
TGC Developer
21
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 14th Aug 2017 13:19
It could be that the device does not support shadow mapping, what does GetShadowMappingSupported return?
Rickyes
8
Years of Service
User Offline
Joined: 7th Sep 2015
Location:
Posted: 14th Aug 2017 14:20
html5 - return0 ( no shadow )
samsung mini S3 - return0 ( no shadow )
nuxus 7 - return0 ( no shadow )
huawei P9lite - return1 ( no shadow )
samsung tab - return1 ( no shadow )

windows 64bit - return0 ( ok shadow )

Rickyes
8
Years of Service
User Offline
Joined: 7th Sep 2015
Location:
Posted: 14th Aug 2017 14:21 Edited at: 14th Aug 2017 17:19
pardon !!! windows 64 bit - return1 ( ok shadow )
Mobiius
Valued Member
21
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 15th Aug 2017 09:38
Quote: "What is the problem?"


Quote: "html5 - return0 ( no shadow )
samsung mini S3 - return0 ( no shadow )
nuxus 7 - return0 ( no shadow )
huawei P9lite - return1 ( no shadow )
samsung tab - return1 ( no shadow )"


There's your answer. Those devices do not support shadows.
Click here for VR Legend of Zelda stuff
Rickyes
8
Years of Service
User Offline
Joined: 7th Sep 2015
Location:
Posted: 15th Aug 2017 11:21
si puo' avere una breve lista dei dispositivi supportate ?
you can 'have a short list of supported devices?
Mobiius
Valued Member
21
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 15th Aug 2017 12:20
Quote: "you can 'have a short list of supported devices?"

Do you know how many mobile devices there are? lol
Click here for VR Legend of Zelda stuff
Rickyes
8
Years of Service
User Offline
Joined: 7th Sep 2015
Location:
Posted: 15th Aug 2017 13:08
Yes. Ma con questo supporto non sembrano molti.
Preben
AGK Studio Developer
19
Years of Service
User Offline
Joined: 30th Jun 2004
Location:
Posted: 15th Aug 2017 13:17
There is a problem with Android and supported devices.
A lot of android devices ONLY support 16 bit depth buffers. shadows works fine using 16bit so it should not be a problem.

@Paul , shadows should have a 16 bit depth buffer fall back , if 24b is not supported.
I can add to the list:
Samsung s2 , GetShadowMappingSupported return 0 , but IsSupportedDepthTexture return 1.
If IsSupportedDepthTexture return 1 then shadows should work,

@Rickyes
samsung mini S3 - return0 ( no shadow )
nuxus 7 - return0 ( no shadow )
huawei P9lite - return1 ( no shadow )
samsung tab - return1 ( no shadow )

These all support 16 bit depth buffers and should work with shadows ( if/when Paul make it work on 16bit ).
html5: Do not support depth buffers, so Paul would have to do a special webgl version to get that working.

FYI: iPad/iPhone do not have this problem they have always been able to use 24bit depth buffers.


best regards Preben Eriksen,
Paul Johnston
TGC Developer
21
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 16th Aug 2017 19:34
AGK currently requires two things to be present to support shadows, depth texture support and high precision floats in fragment shaders. If both of those are present then GetShadowMappingSupported will return 1. It should work with 16bit depth textures, although there may be more shadowing artifacts than devices with 24bit depth buffers.

I found a bug that would cause shadows to disappear in some cases, can you try the latest version and see if those devices that return 1 now run the example correctly?
Rickyes
8
Years of Service
User Offline
Joined: 7th Sep 2015
Location:
Posted: 17th Aug 2017 11:59
Situazione dopo aggiornamento V2017.8.16
------------------------------------------------
Tablet Samsung gt-p3110
GetShadowMappingSupported return 1 , IsSupportedDepthTexture return 1
ok Shadow
-------------------------------------------------
Huawei p9 lite
GetShadowMappingSupported return 1 , IsSupportedDepthTexture return 1
ok Shadow
-------------------------------------------------
Adesso sembra funzionare nei dispositivi che ritornano 1
tuttavia ci sono ancora dei difetti nella proiezione , ma e' gia un passo avanti.
Grazie a tutti !
---------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------
Tablet Samsung GT-P3110
GetShadowMappingSupported return 1, IsSupportedDepthTexture return 1
Ok Shadow
-------------------------------------------------
Huawei p9 lite
GetShadowMappingSupported return 1, IsSupportedDepthTexture return 1
Ok Shadow
-------------------------------------------------
Now it seems to work on devices that come back 1
Yet there are still defects in the projection, but it is a step forward.
Thank you all !
-----------------------------------------------------------------------------------------------------------------



Login to post a reply

Server time is: 2024-03-29 15:39:21
Your offset time is: 2024-03-29 15:39:21