Forum

> > CS2D > General > CS2D Lighting Development Blog
Forums overviewCS2D overviewGeneral overviewLog in to reply

English CS2D Lighting Development Blog

48 replies
Page
To the start Previous 1 2 3 Next To the start

Poll Poll

What should be most important aspect in new lighting update?

Only registered users are allowed to vote
Day & night cycle
39.39% (26)
It should run faster than previous version
24.24% (16)
No memory leaks and similar issues
16.67% (11)
Flashlight and other texture based light effects
12.12% (8)
No map size restriction
7.58% (5)
66 votes cast

old Poll CS2D Lighting Development Blog

SQ
Moderator Off Offline

Quote
Recently, I have noticed that there are only few people that knows CS2D has lighting engine and that it can be enabled in the options menu. That options is for at least 3 years there though.
IMG:https://s3.postimg.org/v2wyvtj6b/Lighting.png


Currently there major flaws in the engine as
× Clients in the server are not forced to used lighting which makes some players visibility better than others.
× Memory leaks - after using lighting for awhile game crash occur
× Map size restriction - you cannot use lighting for maps that are bigger than 100*100

Wel, I have decided to rewrite the engine from scratch.
So far the challenge I took is to improve and implement these things:
• 24h Day-Night cycle
• Improved performance
• Texture based lighting
• Flashlight and other types of lights
• More sharp and accurate lighting
• No map size restriction
• Stable, players will be forced to use this engine once they join the server which has it enabled

Video:
https://www.youtube.com/watch?v=MkEWMP5ayro
IMG:https://media.giphy.com/media/3o8dp7m2iOsguFOuWY/giphy.gif

Flashlight:
IMG:https://s13.postimg.org/fcx0ahhjr/Prototype1.png

IMG:https://s3.postimg.org/8bocssf2r/Prototype3.png

> At the moment I'm searching for people who could help me with the graphics to create first demo for the lighting engine.

I really don't have time to spend extra time polishing GUI, map or other graphics.
edited 9×, last 08.12.15 06:28:43 am

old Re: CS2D Lighting Development Blog

Dousea
User Off Offline

Quote
Nice, especially the 24h day and night cycle!
Is there an option to adjust height of walls and objects?
What I don't understand here is only texture-based lighting.

old Re: CS2D Lighting Development Blog

SQ
Moderator Off Offline

Quote
@user Dousea: To avoid confusion there are only two options for height. You can change height for obstacles and walls already in the game. Of course you can set height for the buildings that you're creating with "ENV_ROOM" entity
IMG:https://s13.postimg.org/rbzs9opav/Obstacle.png


About texture based lighting.
I will just give you to different samples:

old Re: CS2D Lighting Development Blog

_Yank
User Off Offline

Quote
@user Dousea: Dont forget to have a look at the multiply blending mode.
BTW the new engine performs really well, I was able to get 90fps on a very (but VERY) low class computer.

old Re: CS2D Lighting Development Blog

Pagyra
User Off Offline

Quote
Despite fact that it CS2D is top down shooter only with 2 dimensional, but I think light was added as a visual element to give us fell pseudo three-dimensional objects.
Idea for simple triangle-based dynamic shadows >

Flashlight >

edited 4×, last 07.12.15 02:33:54 pm

old Re: CS2D Lighting Development Blog

SQ
Moderator Off Offline

Quote
Just an update. I'm still working on this, polishing small details. That's a lot of work there to make it look decent.

IMG:https://s4.postimg.org/5bbr6ag7h/shadows.png

old Re: CS2D Lighting Development Blog

Zeik
User Off Offline

Quote
I think that the performance should be of critical priority. It's unusable as it is now. At least for the vast majority.

user Pagyra has written
So in game it look like this:
IMG:https://s019.radikal.ru/i618/1512/ed/98abb5594ead.png

That's a great idea!

old Re: CS2D Lighting Development Blog

SQ
Moderator Off Offline

Quote
Performance is not the biggest problem for me. I will optimize it, it should work on low end PC, I will make sure of it.

Though I might not optimize all the engine features for a while.

For me the most legit flashlight would look like this.
The one that pagyra sent does not show enough of the area.
IMG:https://s13.postimg.org/fcx0ahhjr/Prototype1.png

old Re: CS2D Lighting Development Blog

Pagyra
User Off Offline

Quote
I meant that for correct display of a flashlight light we need to change the focus of lamp light to the point where player aimed - especially weapons equipped with flashlight.
In addition there are lots of effects such as highlights for objects, players and walls, reflected light, reflections on glass and liquid surfaces, and so on ...

old Re: CS2D Lighting Development Blog

GeoB99
Moderator Off Offline

Quote
@user Inflexion: It will, it has been explained already.
Thread OP has written
• Stable, players will be forced to use this engine once they join the server which has it enabled

Don't worry though, user SQ will try to optimize this lighting engine as much as possible for other PCs which have very low performance.
To the start Previous 1 2 3 Next To the start
Log in to replyGeneral overviewCS2D overviewForums overview