Jump to content

Recommended Posts

Posted

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

Posted (edited)

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
Posted (edited)

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
Posted (edited)

@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
Posted
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)

Posted

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
Posted (edited)

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
Posted

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
Posted

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

  • 2 months later...
Posted (edited)

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

Posted
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
Posted
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:

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

Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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