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 / Shadow issue

Author
Message
george++
AGK Tool Maker
16
Years of Service
User Offline
Joined: 13th May 2007
Location: Thessaloniki, Hellas
Posted: 28th Mar 2018 22:25
I face a shadow issue, when running the game on my DELL laptop (integrated and dedicated GPU)
Bengismo
6
Years of Service
User Offline
Joined: 20th Nov 2017
Location: Yorkshire, England
Posted: 28th Mar 2018 22:32 Edited at: 28th Mar 2018 22:33
Have you checked if shadows are supported on your device??

https://www.appgamekit.com/documentation/Reference/3D/GetShadowMappingSupported.htm

Does this return 1??

A lot of integrated graphics cards can just about render 3d, but they dont always support a stencil buffer which is required for the in built shadowing in AGK.
george++
AGK Tool Maker
16
Years of Service
User Offline
Joined: 13th May 2007
Location: Thessaloniki, Hellas
Posted: 28th Mar 2018 22:38
I forgot to post the shadow initialization code:
Green7
18
Years of Service
User Offline
Joined: 23rd Nov 2005
Location: Switzerland
Posted: 29th Mar 2018 12:21
it may be a problem with animated stuff, do you know how many bones your char has? i have experienced issues with shaders and bones.
janbo
15
Years of Service
User Offline
Joined: 10th Nov 2008
Location: Germany
Posted: 29th Mar 2018 18:56
Are you using sync() or did you split it up and render things manually ?
Is it working on other devices ?
george++
AGK Tool Maker
16
Years of Service
User Offline
Joined: 13th May 2007
Location: Thessaloniki, Hellas
Posted: 29th Mar 2018 23:40 Edited at: 29th Mar 2018 23:44
Hi guys,
@Green7: I use the .dae model format which has 49 bones. I tried with .x and .fbx model format but the issue remains.
@janbo: I use the SP_Sync() from the shader pack. I tried the AppGameKit sync() command and the issue is still there. The game runs fine on my desktop PC (I think it is NVIDIA GTX 1070 (I am on a bussiness trip and I cannot check)) and on my ASUS tablet
This issue will not stop me and I will continue to the development of my game, but I post because there may be a bug either in the shader pack or in the AppGameKit shadows.
hoyoyo80
7
Years of Service
User Offline
Joined: 11th May 2016
Location:
Posted: 30th Mar 2018 05:23
Look like a nice.project. but the shadow work on your other mesh but only appear on bone mesh.
janbo
15
Years of Service
User Offline
Joined: 10th Nov 2008
Location: Germany
Posted: 30th Mar 2018 19:12
Its not the shader pack as it doesn't touch the shadow shader at all and it's also not the render order, like I initially thought, as it's still there when you use the sync() command right ?
Green7
18
Years of Service
User Offline
Joined: 23rd Nov 2005
Location: Switzerland
Posted: 30th Mar 2018 21:33
is it the same on every shadow mode?
george++
AGK Tool Maker
16
Years of Service
User Offline
Joined: 13th May 2007
Location: Thessaloniki, Hellas
Posted: 31st Mar 2018 10:37 Edited at: 31st Mar 2018 11:10
@Junbo: Yes the issue remains with the vsync() command
@Green7: using mode 1, I see no shadows. Modes 2 and 3 are the same (like the video I posted)
I run the shadows project that comes with the AppGameKit installation but I replaced the soldier model with my model. There is no issue. I concluded that my model is OK. I have to look elsewhere.
Green7
18
Years of Service
User Offline
Joined: 23rd Nov 2005
Location: Switzerland
Posted: 1st Apr 2018 00:29
do you set your char to the position where the shadow is and then reposition it somehow?
george++
AGK Tool Maker
16
Years of Service
User Offline
Joined: 13th May 2007
Location: Thessaloniki, Hellas
Posted: 1st Apr 2018 11:16
@Green7: I simply move the character when the player clicks on the destination tile on the grid. I use the SetObjectPosition() command. I am not sure if I answered to your question
Blendman
10
Years of Service
User Offline
Joined: 17th Feb 2014
Location: Arkeos
Posted: 1st Apr 2018 11:23
Do you use a shader for your ground ?
AGK2 tier1 - http://www.dracaena-studio.com
george++
AGK Tool Maker
16
Years of Service
User Offline
Joined: 13th May 2007
Location: Thessaloniki, Hellas
Posted: 2nd Apr 2018 22:37
I do not use any shader for the ground but I'll take a look to the ground mesh.
PHeMoX
6
Years of Service
User Offline
Joined: 9th Jan 2018
Location:
Posted: 6th Apr 2018 14:26
What's the position of that shadow in terms of world coordinates? Is it like x 0, y 0, z 0 or something? Because in that case I would check your code whether or not there is an additional invisible model spawned at that location.

The animated and moving object doesn't appear to have shadows set active, but.. you might be right in this being some kind of a freak bug after all.

Quote: "@Green7: using mode 1, I see no shadows. Modes 2 and 3 are the same (like the video I posted)"


This doesn't sound right though... did you check whether all shadow modes are cycled through correctly with the other church demo? There is quite a difference in what each shadow mode does.

Login to post a reply

Server time is: 2024-03-29 01:42:23
Your offset time is: 2024-03-29 01:42:23