Lighting

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

Lighting

Post by smallfly » 15 Sep 2012 14:39

I started to code a light manager:
lighting_small.jpg
lighting_small.jpg (44.91 KiB) Viewed 5921 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
(130.25 KiB) Downloaded 9 times
www.p1sim.org - P1SIM - Traffic, Logistics, City-Building & more
Join the discussions here on tt-forums.net!

User avatar
smallfly
Chairman
Chairman
Posts: 862
Joined: 19 Oct 2009 13:29
Location: Germany

Re: Lighting

Post by smallfly » 22 Sep 2012 00:03

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 5825 times
Attachments
2012-09-22T01-55-45.png
(363.21 KiB) Downloaded 8 times
www.p1sim.org - P1SIM - Traffic, Logistics, City-Building & more
Join the discussions here on tt-forums.net!

oberhümer
Tycoon
Tycoon
Posts: 1277
Joined: 23 Oct 2009 19:35
Location: Here and there, sometime or another

Re: Lighting

Post by oberhümer » 29 Sep 2012 14:36

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: 862
Joined: 19 Oct 2009 13:29
Location: Germany

Re: Lighting

Post by smallfly » 29 Sep 2012 16:15

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: 862
Joined: 19 Oct 2009 13:29
Location: Germany

Re: Lighting

Post by smallfly » 07 Apr 2013 16:49

The following non-moving lights will be available in P1SIM:
lights.png
lights.png (55.07 KiB) Viewed 4987 times
www.p1sim.org - P1SIM - Traffic, Logistics, City-Building & more
Join the discussions here on tt-forums.net!

LocoMH
Chairman
Chairman
Posts: 846
Joined: 26 Nov 2005 16:21
Location: Dresden (formerly Ruhr Area)
Contact:

Re: Lighting

Post by LocoMH » 07 Apr 2013 19:33

One word: Amazing. Or awesome. Whatever, I love it!

rsdworker
Traffic Manager
Traffic Manager
Posts: 144
Joined: 18 Mar 2009 13:58

Re: Lighting

Post by rsdworker » 07 Apr 2013 19:34

nice - i like lighting

i think interiors needs lighting - example inside of factories

User avatar
Hazzard
Engineer
Engineer
Posts: 49
Joined: 14 Apr 2012 13:24

Re: Lighting

Post by Hazzard » 11 Apr 2013 01:42

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: 862
Joined: 19 Oct 2009 13:29
Location: Germany

Re: Lighting

Post by smallfly » 11 Apr 2013 08:13

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!

Post Reply

Return to “P1SIM”

Who is online

Users browsing this forum: No registered users and 1 guest