- Joined
- Jun 13, 2013
- Messages
- 530
- Reaction score
- 376
- First Language
- English
- Primarily Uses
I've attached a picture in the spoilers of a rough concept of what I'm shooting for shadow wise in my current project. Below that I'll list some issues below I'm having with achieving this effect in engine. Then hopefully we can find a way to make this work. So let's get to it.
Shadows
I'm wanting shadows to look more like they do in real life and not just squares and circles that are typical for those new to map design. (The game currently has a lot of amazing features and bad shadows just takes away from how good the rest of the game is)
Here's some issues though.
1) Events, like the vegetation shown above, are not placed traditionally on square tiles. Instead we have events which list thousands of spawns as such,
spawn_event_location(5, 5, 16, 5, 1000)
Basically what you're seeing here is, x location, y location, event ID to clone, map that event is on, ID # to give the new clone. Meaning the example above is at 5x,5y and it's a tree.
So in order for shadows to be placed exactly in the right spot they need to spawn in a similar fashion, except instead of acting like an event that can be interacted with, they're just shadows.
2) Shadows need to change direction/angle based on the time of the day. The game goes through a day and night cycle and though I would prefer constantly moving shadows, that may not be possible. However they need to at least cycle between morning, afternoon, dusk, and night versions.
3) Shadows need to behave properly. Meaning they shouldn't overlap events that wouldn't be affected by them (For example in the pic above, the trees along the bottom shouldn't have shadows casted on them from trees above, because the shadow would be on the back of the tree, which the player can't see)
________________________________________________________________
Overall it's a lot to pull off but I need to find some way to do it. Unfortunately this is less of a graphical issue at this point and more of a technical one so my knowledge on the subject is limited. If some of you are absolute geniuses I do have some extra goals below but of course the focus should be on just solving the issues listed above.
I) Base shadow tilt on a source of light (aka the sun) so that they tilt as the source of light moves throughout the day.
II) Have other light sources (using Khas Awesome Lighting effects) effect shadows. Such as lighting a campfire at night should create shadows on these spawned events.
Thanks everyone for your feedback and I hope we can figure out how to do this together!
-Dakota
Shadows
Here's some issues though.
1) Events, like the vegetation shown above, are not placed traditionally on square tiles. Instead we have events which list thousands of spawns as such,
spawn_event_location(5, 5, 16, 5, 1000)
Basically what you're seeing here is, x location, y location, event ID to clone, map that event is on, ID # to give the new clone. Meaning the example above is at 5x,5y and it's a tree.
So in order for shadows to be placed exactly in the right spot they need to spawn in a similar fashion, except instead of acting like an event that can be interacted with, they're just shadows.
2) Shadows need to change direction/angle based on the time of the day. The game goes through a day and night cycle and though I would prefer constantly moving shadows, that may not be possible. However they need to at least cycle between morning, afternoon, dusk, and night versions.
3) Shadows need to behave properly. Meaning they shouldn't overlap events that wouldn't be affected by them (For example in the pic above, the trees along the bottom shouldn't have shadows casted on them from trees above, because the shadow would be on the back of the tree, which the player can't see)
________________________________________________________________
Overall it's a lot to pull off but I need to find some way to do it. Unfortunately this is less of a graphical issue at this point and more of a technical one so my knowledge on the subject is limited. If some of you are absolute geniuses I do have some extra goals below but of course the focus should be on just solving the issues listed above.
I) Base shadow tilt on a source of light (aka the sun) so that they tilt as the source of light moves throughout the day.
II) Have other light sources (using Khas Awesome Lighting effects) effect shadows. Such as lighting a campfire at night should create shadows on these spawned events.
Thanks everyone for your feedback and I hope we can figure out how to do this together!
-Dakota
Last edited by a moderator:
