Lighting

P1SIM is a commercial game under development featuring traffic, logistics, city building and more.
Locked
User avatar
smallfly
Chairman
Chairman
Posts: 884
Joined: 19 Oct 2009 13:29
Location: Germany

Lighting

Post by smallfly »

I started to code a light manager:
lighting_small.jpg
lighting_small.jpg (44.91 KiB) Viewed 16137 times
But since I was faced with too many limitations, I have to switch the platform now. (Currently I am using SLICK) and now I move to LibGDX).

I hope the platform change won't take too long. One benefit will be that the game will probably not only run on PC, Linux and Mac but also on Android devices.
Attachments
lighting.jpg
lighting.jpg (130.25 KiB) Viewed 3588 times
www.p1sim.org - P1SIM - Traffic, Logistics, City-Building & more
Join the discussions here on tt-forums.net!
User avatar
smallfly
Chairman
Chairman
Posts: 884
Joined: 19 Oct 2009 13:29
Location: Germany

Re: Lighting

Post by smallfly »

Finally I got the light manager to work properly. This was an important development step. Now there is only one big hurdle left: The network code. Anything else is easy going, but of couse also takes "some" time to develop.
2012-09-22T01-55-45_preview.jpg
2012-09-22T01-55-45_preview.jpg (16.71 KiB) Viewed 16041 times
Attachments
2012-09-22T01-55-45.png
2012-09-22T01-55-45.png (363.21 KiB) Viewed 3587 times
www.p1sim.org - P1SIM - Traffic, Logistics, City-Building & more
Join the discussions here on tt-forums.net!
oberhümer
Tycoon
Tycoon
Posts: 1283
Joined: 23 Oct 2009 19:35
Location: Here and there, sometime or another

Re: Lighting

Post by oberhümer »

Couldn't the light fade out smoothly at the sides too?
--- Licenses: GNU LGPL, version 2 or newer, code and graphics. CC-By-SA, graphics, alternatively. If you're using any, I'd like to hear about it --- Call them "track types" ---
--- Mostly inactive developer for: NuTracks - Central European Train Set --- Running/compiling for: Linux (x86) - Android - Windows (32/64 bit) ---

--- Need a file packer? 7-Zip --- BOINC - use your computing power to benefit science --- Block trackers, not ads --- Unix in dispersible pellets, the formula for the future. ---
User avatar
smallfly
Chairman
Chairman
Posts: 884
Joined: 19 Oct 2009 13:29
Location: Germany

Re: Lighting

Post by smallfly »

oberhümer wrote:Couldn't the light fade out smoothly at the sides too?
you are talking about the randomly spread vehicle lights, are you? just ignore them. they aren't the final ones.
www.p1sim.org - P1SIM - Traffic, Logistics, City-Building & more
Join the discussions here on tt-forums.net!
User avatar
smallfly
Chairman
Chairman
Posts: 884
Joined: 19 Oct 2009 13:29
Location: Germany

Re: Lighting

Post by smallfly »

The following non-moving lights will be available in P1SIM:
lights.png
lights.png (55.07 KiB) Viewed 15203 times
www.p1sim.org - P1SIM - Traffic, Logistics, City-Building & more
Join the discussions here on tt-forums.net!
LocoMH
Chairman
Chairman
Posts: 845
Joined: 26 Nov 2005 16:21
Location: Dresden (formerly Ruhr Area)
Contact:

Re: Lighting

Post by LocoMH »

One word: Amazing. Or awesome. Whatever, I love it!
rsdworker
Traffic Manager
Traffic Manager
Posts: 148
Joined: 18 Mar 2009 13:58

Re: Lighting

Post by rsdworker »

nice - i like lighting

i think interiors needs lighting - example inside of factories
User avatar
Hazzard
Engineer
Engineer
Posts: 52
Joined: 14 Apr 2012 13:24
Contact:

Re: Lighting

Post by Hazzard »

smallfly wrote: But since I was faced with too many limitations, I have to switch the platform now. (Currently I am using SLICK) and now I move to LibGDX).
Are you still using Slick2D?
User avatar
smallfly
Chairman
Chairman
Posts: 884
Joined: 19 Oct 2009 13:29
Location: Germany

Re: Lighting

Post by smallfly »

Hazzard wrote:Are you still using Slick2D?
Yes. The porting to LibGdx was a nightmare. So I stick to Slick2D.
www.p1sim.org - P1SIM - Traffic, Logistics, City-Building & more
Join the discussions here on tt-forums.net!
Locked

Return to “P1SIM”

Who is online

Users browsing this forum: No registered users and 3 guests