Jump to content
Sign in to follow this  
orsin

City Night Light - Has anyone tried this before?

Recommended Posts

I am thinking of a city night light solution. I would like to check if anyone tried this before, and what was the result

 

The idea is to use a semi-transparent low polygon box that provides a layer of orange colour near the ground. And set the element to be rendered disregarding light levels. Just like the light on carrier deck.

 

Each single element will cover a small area. Every 30/50  elements can be grouped to be 1 model to be placed to cover the entire road cross/block to simplify the planning. And they can be made destroya ble.

 

Anyone?

1.png

2.png

Share this post


Link to post
Share on other sites

It can be done, but each city has its own size and tiling so many variations might be needed. The object requires to be set up as a ground object (as a downside, it would appear in the mission editor), not placed as a terrain object because the light effect would flicker very much otherwise. I know this since me and Jimbib added floodlights to new airbases made for the ODS 30AE mod, together with a light effect.

Speaking of which, I haven't thought about using horizontal polygons for the light, we can simply use SF2's effects to create such lights, as done already on carriers and vehicles of the ODS 30AE mod.

About making them destroyable, the way the game works, you'd have to make each lamp post separate sadly. Make one huge object with 50 of them and destroying one would destroy them all.

All in all, it's worth a try, but there are side issues and limitations to take into account.

Edited by Menrva

Share this post


Link to post
Share on other sites

Back 7 years i have already experimented night lights using fake object and a floodlight source. The result was captured in my other post back then.

 

The key issue with that approach is the game engine is not designed to handle long term constant light. so when the fight breaks out, light sources such as AAA and missile etc will compete the limited light sources allowed by the engine. The result, is that cities will "black out" when you fight. So the outcome was not that great.

 

If we have options to build non-daylight-sensitive TODs, they can be deployed easily. Otherwise it can be a row of non-daylight-sensitive LODs. And we don't necessarily need flood light but just light points. Again flood light will compete with weapon light source. By using a semi-transparent polygon it can potentially emulate flood light without generating a light source.

 

The reason to make a light array in the form of road cross is that it can then be universally applied to cities without creating 1 model per city. When we have more buildings just put more of these "cross lights" in it

Edited by orsin

Share this post


Link to post
Share on other sites

@orsin There's another experiment using TODs and tweaked shader done by Stary for his Korea/Taiwan tileset. Basically the texture for TOD buildings would be a TGA and windows would be made transparent. With the tweaked shader Stary provided, windows wouldn't be affected by darkness and would be visible from a long distance, thus simulating lit interiors of the buildings. There's one major issue with this approach; you'd have to set ObjectsFade=FALSE in the Options.ini and MipMap=FALSE for SolidObjectTextureMaterial in the terrain's data.ini or else it won't work at all, and by doing so you'd get lots of very noticeable flickering which cannot be fixed. Mip mapping exists for that exact purpose and so disabling it is not ideal at all. With either mip mapping or fading enabled, this trick by Stary no longer works.

This would be the best solution if the flickering could be solved somehow, but mip mapping is a necessity.

Edited by Menrva

Share this post


Link to post
Share on other sites
14 hours ago, Menrva said:

 Make one huge object with 50 of them and destroying one would destroy them all.

fairly realistic actually, if one of the 50 objects was also a transformer controlling the block or a local substation with those 50 lights as part of it

but as you said, would then meant alot of work on the part of the terrain builder, and even with a set of patterns they would have to adjust the tile to the object rather than the object to the tile (as i understand it)

Share this post


Link to post
Share on other sites

I think we have all been there...doing some chellenging things...and then...ahhh sh..it is still not what we wanted...but it is still fun working on something new..

  • Like 1

Share this post


Link to post
Share on other sites

Many years ago i tried using the moon light to light the buildings . Had some success but seemed the shadow side was still dark ..

img00071.JPG

Edited by hi ho silver
  • Like 1

Share this post


Link to post
Share on other sites

For a civil flight sim lights at night are a must have. But for a military sim not, because in wartimes the lights are switched off at night, to give no navigation help to the enemy.

  • Like 5

Share this post


Link to post
Share on other sites

I mean yeah, it would be nice, but not something that I particularly need either for this game.

Share this post


Link to post
Share on other sites

for the most part i'd say yes

but pretty sure Baghdad and Belgrade were still lit up on night one. Hanoi doesnt exactly count because the US had been bombing the country for years by the time the restrictions came off in 72.

but since i dont think we have a way to have the lights on only for the first night of a campaign, then best to leave it

 

i still say it would be cool to target a substation on the first mission of a campaign and turn the lights out

Share this post


Link to post
Share on other sites

Proof of Concept. Any Good?

every 20-30 lights are clustered as 1 x 30KB object that spans across some 200 meters. Easy to drop on map with no performance hit.

img00006.JPG.2857325a0d0f1708bb0dba076658a86e.JPG

img00007.JPG.dc74dc776a77ba1faae7efae652dcc63.JPG

img00008.JPG.e8af0005d7ac7bf519c5825e854cd3cc.JPG

img00005.thumb.JPG.78c2d95a42bf2267b92c77c7bff55a9f.JPG

Edited by orsin
  • Like 8

Share this post


Link to post
Share on other sites

(must not ask for convoys of civilian cars, must not ask for of civilian cars) :lol:

Share this post


Link to post
Share on other sites

I mean the second shot (from the top) looks interesting but I don't see any lights in the rest of the shots.

Share this post


Link to post
Share on other sites
6 hours ago, EricJ said:

I mean the second shot (from the top) looks interesting but I don't see any lights in the rest of the shots.

zoom it in.

The 1st and the 2nd shots are to show the lighting looks unobvious during day time. 

Share this post


Link to post
Share on other sites

Okay, will do.

Share this post


Link to post
Share on other sites

It's good to see progress, but is it possible to expand the light source, I think the real city lights should be a large area.
Although I know it's just a proof-of-concept stage.

Share this post


Link to post
Share on other sites
2 minutes ago, simonmiller416 said:

It's good to see progress, but is it possible to expand the light source, I think the real city lights should be a large area.
Although I know it's just a proof-of-concept stage.

see my post above which links to an older post.

  • Thanks 1

Share this post


Link to post
Share on other sites
13 hours ago, orsin said:

Proof of Concept. Any Good?

every 20-30 lights are clustered as 1 x 30KB object that spans across some 200 meters. Easy to drop on map with no performance hit.

 

That looks pretty cool! :good:

Share this post


Link to post
Share on other sites
17 hours ago, daddyairplanes said:

(must not ask for convoys of civilian cars, must not ask for of civilian cars) :lol:

The way to go is to add them as terrain tods, as a fighter pilot you will not notice they're not moving and the look will be cool enough.

Share this post


Link to post
Share on other sites

File is now released for download. It only took me about 15 min to add lights to the entire Kamchatka terrain so it should be simple enough for anyone to do for any other terrain.

  • Like 1
  • Thanks 2

Share this post


Link to post
Share on other sites
On 28/8/2023 at 6:58 PM, daddyairplanes said:

(must not ask for convoys of civilian cars, must not ask for of civilian cars) :lol:

AAAAAAH! Do you mean for cities? like small cars attached to orsin new lights?

for cars on roads, I love the look of this...

 

img00009.thumb.jpg.0f226eadd0ccbabb9dc6105a9d39eb22.jpg.a565a2eb9941f8454d37ea988e6dfb18.jpg

  • Like 2

Share this post


Link to post
Share on other sites
On 2023/8/30 at 5:33 PM, Stratos said:

AAAAAAH! Do you mean for cities? like small cars attached to orsin new lights?

for cars on roads, I love the look of this...

Looks really good!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Similar Content

    • By GKABS
      I decided to make a post so I can put all my work in one place I hope you okay with that.
      Okay here is the update of the M978/M977 HEMTT more detail will be added but this is how it looks so far.
       
       








    • By Chakat_Avocado
      Is it me or the AI love to never lose energy and out turn me despite of their airframe limits including the G tolerance of the pilot? Let me know cause from other sources, I have heard more or less from each side of the debate. I would like to think that I am being cheated and robots have no brains on most levels.
    • By MarkEAW
      What can experienced users tell me about EAW 3DZ modelling, RS and tools?
      I'm not trying to build anything specific and I don't have a whole lot of time to learn, But highlights would be favorable.
      Like I know for EAWv1.2 there are specific programs used. I think I have them all. Unfortunately some are DOS , some are WindowsOS usage.
      I know you plan out the model before you begin using the 3DZ Studio program (which one is best?)
      How would I keep the RS in check as I add to the model?
      etc..
       
      Thank you in advanced for the help and tips.
       
×

Important Information

By using this site, you agree to our Terms of Use, Privacy Policy, and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..