Forum

> > CS2D > General > CS2D Lighting Development Blog
ForenübersichtCS2D-ÜbersichtGeneral-ÜbersichtEinloggen, um zu antworten

Englisch CS2D Lighting Development Blog

48 Antworten
Seite
Zum Anfang Vorherige 1 2 3 Nächste Zum Anfang

Umfrage Umfrage

What should be most important aspect in new lighting update?

Nur registrierte Benutzer können abstimmen
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 Stimmen abgegeben

alt Umfrage CS2D Lighting Development Blog

SQ
Moderator Off Offline

Zitieren
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.
9× editiert, zuletzt 08.12.15 06:28:43

alt Re: CS2D Lighting Development Blog

Dousea
User Off Offline

Zitieren
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.

alt Re: CS2D Lighting Development Blog

SQ
Moderator Off Offline

Zitieren
@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:

alt Re: CS2D Lighting Development Blog

_Yank
User Off Offline

Zitieren
@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.

alt Re: CS2D Lighting Development Blog

Pagyra
User Off Offline

Zitieren
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 >

4× editiert, zuletzt 07.12.15 14:33:54

alt Re: CS2D Lighting Development Blog

SQ
Moderator Off Offline

Zitieren
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

alt Re: CS2D Lighting Development Blog

Zeik
User Off Offline

Zitieren
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 hat geschrieben
So in game it look like this:
IMG:https://s019.radikal.ru/i618/1512/ed/98abb5594ead.png

That's a great idea!

alt Re: CS2D Lighting Development Blog

SQ
Moderator Off Offline

Zitieren
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

alt Re: CS2D Lighting Development Blog

Pagyra
User Off Offline

Zitieren
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 ...

alt Re: CS2D Lighting Development Blog

GeoB99
Moderator Off Offline

Zitieren
@user Inflexion: It will, it has been explained already.
Thread OP hat geschrieben
• 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.
Zum Anfang Vorherige 1 2 3 Nächste Zum Anfang
Einloggen, um zu antwortenGeneral-ÜbersichtCS2D-ÜbersichtForenübersicht