Forum

> > CS2D > General > CS2D Remake - FOW, 4k, Competetive
Forums overviewCS2D overviewGeneral overviewLog in to reply

English CS2D Remake - FOW, 4k, Competetive

12 replies
To the start Previous 1 Next To the start

old CS2D Remake - FOW, 4k, Competetive

dcrew
User Off Offline

Quote
Hey, a wild ton of updates has appeared (please disregard the white outlines on walls, they were only there for my own testing purposes):

https://youtu.be/-glsfUaJXVw

A few questions, starting with, do we want soft/blurry shadows? Like so:

https://youtu.be/h5tzMgwAOLA

Next, do we want team members to be visible in the FOW? Let me know!

Finally, the biggest and most important question, do we want 4k resolution?.. kappa

https://youtu.be/_EQMzQCdBBI

old Re: CS2D Remake - FOW, 4k, Competetive

dcrew
User Off Offline

Quote
@user Starkkz: I could, but a new thread with new updates gets more attention than a reply to a thread, how do people know if I'm replying to questions or posting an update?

@user Andrez: - Blurry shadows as in soft blending between the visible and non-visible areas. (4k was a joke)

old Re: CS2D Remake - FOW, 4k, Competetive

Starkkz
Moderator Off Offline

Quote
@user dcrew: When you're replying questions you're obviously using their @name tag. Besides, when you post on the same thread it will push it on top of the latest replies lists, so it's still going to be visible, if the people is interested they will just go and check it out.

@On topic: Blurred hard shadows is always the easiest way to implement shadows, but you could search more about soft shadows for better graphics. This is the best article I've found yet, it is still a kind of blur but it looks far better than the full screen blur.
http://flexmonkey.blogspot.cl/2016/04/creating-custom-variable-blur-filter-in.html

old Re: CS2D Remake - FOW, 4k, Competetive

Starkkz
Moderator Off Offline

Quote
@user dcrew: This is what I mean with soft shadows.
https://www.youtube.com/watch?v=AslPHY2Bomc

And this is what I mean with hard & blurred shadows.
https://youtu.be/K4Gr1sXnl9A?t=20

For your implementation it's very likely you will eventually need to make your game with a height component (like on the original CS2D), that's very difficult to do, so your best bet is to use a radial blur.

Notice that most 2D light engines that support 'truly soft shadows' don't actually support a height component, and that's because almost everyone doesn't know how to make the borders softer with a gradation that increases as the shadow goes far from the body.

As far as I know only @user SQ has managed to do soft shadows with 'texture UV tricks'.

old Re: CS2D Remake - FOW, 4k, Competetive

VADemon
User Off Offline

Quote
@user Starkkz: That's basically the strength of light you're describing? The featured videos show a constant infinite light strength with invariable shadow borders, in my terms. (if we consider the player to be a light source of its own for the fov layer mask)

old Re: CS2D Remake - FOW, 4k, Competetive

Starkkz
Moderator Off Offline

Quote
It took me quite a while to figure out this blur technique, I could send you the GLSL shader I used on löve but it's not perfected.
For some reason it generates a oval-shaped gradient (based on the graphics size), and it lacks of more gradation based on the distance from the light source.

IMG:https://i.imgur.com/Esrw0Zy.png


It's a gaussian blur with a standard deviation that relies on the distance from the light source.
To the start Previous 1 Next To the start
Log in to replyGeneral overviewCS2D overviewForums overview