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 / Setting Shadows

Author
Message
chafari
Valued Member
18
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 30th Jan 2019 12:46
Can we get shadows from different lights? or that is only possible with the sun light? Do we need a shader for this purpose....I'm lost here
I'm not a grumpy grandpa
Bengismo
6
Years of Service
User Offline
Joined: 20th Nov 2017
Location: Yorkshire, England
Posted: 30th Jan 2019 14:04
AGK Documentation wrote: "Shadows are only generated by the the global directional light, which can be controlled with the SetSunDirection command. "


You could use a shader to create multiple shadows if they were really wanted.
chafari
Valued Member
18
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 30th Jan 2019 14:49
Ok ...so it is time to make my own shadows system
I'm not a grumpy grandpa
Santman
13
Years of Service
User Offline
Joined: 15th Sep 2011
Location: Inverness
Posted: 30th Jan 2019 16:42 Edited at: 30th Jan 2019 16:43
Hey.

Janbo all but did this, and was kind enough to share the link. Looking at this is on my to do list but it's beyond my skill set for now!

https://forum.thegamecreators.com/thread/217568#msg2586185
chafari
Valued Member
18
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 30th Jan 2019 18:35
@Santman Thanks for the link ....that is awesome , to much for my knowledge
I'm not a grumpy grandpa
janbo
15
Years of Service
User Offline
Joined: 10th Nov 2008
Location: Germany
Posted: 31st Jan 2019 11:39 Edited at: 31st Jan 2019 11:42
To that hurdle comes that we dont have cubemap support which is needed(recommend) for point light shadows.
But there is something very fast that can be used for these shadows (dual parabolic mapping) I used this technique for example in my glass shader.
It may even be faster than traditional cube mapping(not tested) but the quality depends of the vertex count of the rendered models.
It gets worse if you have only a vew vertices in relation to the model size and distance ofc.

I often thought about adding it to my pack but to be consequently I would need to ditch AGK's Shadows and add mine.
chafari
Valued Member
18
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 31st Jan 2019 19:59
Well ...at the end I think I could use darklights with lightmaps loadinng Dbo files with the Bore of the Ring Dbo importer.
I'm not a grumpy grandpa

Login to post a reply

Server time is: 2024-11-05 18:38:57
Your offset time is: 2024-11-05 18:38:57