Forum

> > CS2D > General > CS2D Lighting Example Test
Forums overviewCS2D overviewGeneral overviewLog in to reply

English CS2D Lighting Example Test

26 replies
Page
To the start Previous 1 2 Next To the start

old CS2D Lighting Example Test

SQ
Moderator Off Offline

Quote
Hello, I'll make it short.

I want to fix CS2D Light Engine's problem.
So I want a small favor from you guys.

Please check out current lighting applications and tell me if they are working fine for you.
If it does crash, tell me when.

These applications will work only for Windows.
Download: http://www.2shared.com/file/64OyTZH6/CS2D_Lighting.html?

Note, you can't do a lot there. Just move flashlight in certain area, move camera with arrow keys.
By pressing space first time you'll delete building area and holding further will lead to disabling daylight feature.
1, 2, 3 numbers will change quality of room buffering.

Thanks!
edited 1×, last 02.12.13 09:43:10 pm

old Re: CS2D Lighting Example Test

SQ
Moderator Off Offline

Quote
Well, from the last released version I just changed one line.
Apparently, it fixed the crash problem for my laptop's and DC's system at least.

old Re: CS2D Lighting Example Test

SQ
Moderator Off Offline

Quote
user TimeQuesT has written
OpenGL works fine, but scores low fps. DirectX sometimes got displaying errors on startup which won't go away, until I restart.

When that happens, try pushing numbers 4, 5, 6. (not num lk)

old Re: CS2D Lighting Example Test

TimeQuesT
User Off Offline

Quote
I tried. It does not work. At least when "image1" happends to me. Works in image2 but not very well. Some black masks disappear, but some stay.

old Re: CS2D Lighting Example Test

TimeQuesT
User Off Offline

Quote
Maybe waiting some seconds before "generating" will work. Might because my GfxCard does not finish the Surface initialize that fast.

old Re: CS2D Lighting Example Test

VADemon
User Off Offline

Quote
DX: Flashlight flickers, so the second box on the left if the flashlight is too close to the first box.
OpenGL: Much better, a few walls' light level computation bugs remain

old Re: CS2D Lighting Example Test

SQ
Moderator Off Offline

Quote
that flicker was intended... I programmed it when testing in V2
In real time loop:
1
2
3
4
FlashLight.Move(MouseX() + CAMERA_X,MouseY() + CAMERA_Y)
FlashLight.SetAngle(ROT - 20,ROT + 20)	
FlashLight.SetRadius(FlashLightRadius + Rnd(-16,16))
FlashLight.Color(Rnd(205,255),Rnd(205,255),Rnd(205,255))

I have idea to completely rewrite engine for OpenGL, though then the difference between OpenGL and DirectX will be too high.

With openGL I could make day-night lapse :I
edited 1×, last 03.12.13 07:55:47 am

old Re: CS2D Lighting Example Test

KimKat
GAME BANNED Off Offline

Quote
@user SQ: Great because OpenGL runs faster than DirectX on my PC. Well, at least when playing the gaming that I play. I wish you good luck (GL ^^) in the rewrite of this lighting engine as it really adds that extra look and feel for Counter-Strike 2D that makes it more immense. Although the flashlight flicker doesn't seem to work on CS2D when running in OpenGL mode with Intel HD Graphics 4600 GPU (or maybe I haven't noticed it yet). If it's a subtle flicker then maybe that's why. I've also tested the applications you've provided and both of them work in terms of shadows. But graphically the shadow types of 5 & 6 for map shadows looks bad here they look improper in terms of seamlessness that is.
> Functional for both DirectX & OpenGL.
> These shadows are not so functional.
edited 2×, last 03.12.13 09:17:55 am
To the start Previous 1 2 Next To the start
Log in to replyGeneral overviewCS2D overviewForums overview