Converting day terrain to night

Post new scenarios and mods here to share with other gamers.

Moderator: Campaign Series Matrix Edition Development Group

Post Reply
User avatar
Umbra_TSSI
Posts: 62
Joined: Thu May 27, 2021 11:02 pm

Converting day terrain to night

Post by Umbra_TSSI »

How do I convert the Day terrain files after modding to their Night terrain equivalent?

Couldn't find a "how to".

Thanks.
User avatar
Jason Petho
Posts: 17706
Joined: Tue Jun 22, 2004 10:31 am
Location: Terrace, BC, Canada
Contact:

RE: Converting day terrain to night

Post by Jason Petho »

That's set in the scenario editor by choosing the 1-10[d] or 1-10[n] or some varying combination.

That is in the manual, described in Section 8.4.1
User avatar
Umbra_TSSI
Posts: 62
Joined: Thu May 27, 2021 11:02 pm

RE: Converting day terrain to night

Post by Umbra_TSSI »

I'm looking for a way to create the night files for the game to use in a night scenario. I created day terrain files but I need to create the night version of those for the night scenario to use.
Hub6Actual
Posts: 118
Joined: Thu Nov 15, 2018 8:55 pm
Location: Canada

RE: Converting day terrain to night

Post by Hub6Actual »

Take your new creations and try running them through something that ramps up the blue saturation level. I use a free program called Irfanview that you can do a lot of things with. In this case, I would try doing the blue saturation change, and after I found something that worked, I would do a batch file conversion (Irfanview also does that), and convert all the files to have the same sat level. I would then batch rename everything (Irfanview again) with the file names appended with Night. The sticker is taking care not to alter the backer colour that the images reside on too much, or you will get ugly "halos" showing up around those images.
User avatar
Umbra_TSSI
Posts: 62
Joined: Thu May 27, 2021 11:02 pm

RE: Converting day terrain to night

Post by Umbra_TSSI »

I use Photoshop Elements, you can't take a file and increase blue saturation in a file with no blue, the terrain files for day use a transparency color with no blue.

So, I'm asking how to take any day terrain file and make into a night file.

Thanks for your response.
User avatar
Jason Petho
Posts: 17706
Joined: Tue Jun 22, 2004 10:31 am
Location: Terrace, BC, Canada
Contact:

RE: Converting day terrain to night

Post by Jason Petho »

If you do a search for *Night*.bmp you should find all the night files.
User avatar
Umbra_TSSI
Posts: 62
Joined: Thu May 27, 2021 11:02 pm

RE: Converting day terrain to night

Post by Umbra_TSSI »

ORIGINAL: Jason Petho

If you do a search for *Night*.bmp you should find all the night files.
Thanks Jason, but I'm simply trying to "shade" a "day" graphic terrain file I created into a night version that the game engine will except into it's night scenarios.
User avatar
Crossroads
Posts: 18572
Joined: Sun Jul 05, 2009 8:57 am

RE: Converting day terrain to night

Post by Crossroads »

ORIGINAL: Umbra_TSSI

I'm simply trying to "shade" a "day" graphic terrain file I created into a night version that the game engine will except into it's night scenarios.

I use GIMP as the graphics editor, Night layers are variants of their Day versions with an added hex #004D65 / rgb (0,77,101) layer at 65% opacity setting as the top most layer.
Visit us at: Campaign Series Legion
---
CS: Vietnam 1948-1967 < v2.10.20 Available Now (Dec 03, 2025)
CS: Middle East 1948-1985 < v3.10.20 Available Now (Dec 03, 2025)
User avatar
Crossroads
Posts: 18572
Joined: Sun Jul 05, 2009 8:57 am

RE: Converting day terrain to night

Post by Crossroads »

ORIGINAL: Hub6Actual

Take your new creations and try running them through something that ramps up the blue saturation level. I use a free program called Irfanview that you can do a lot of things with. In this case, I would try doing the blue saturation change, and after I found something that worked, I would do a batch file conversion (Irfanview also does that), and convert all the files to have the same sat level. I would then batch rename everything (Irfanview again) with the file names appended with Night. The sticker is taking care not to alter the backer colour that the images reside on too much, or you will get ugly "halos" showing up around those images.

Yes, I have a GIMP script that does this as a batch, PSP has a batch mode as well, where you can first record the action, then repeat it at selected files.

As for the background colour, it does not matter which hue the background colour is, as long as it is unique, and does not appear anywhere else. Or there will be "holes" on one's images. Background colour is the colour found at top left corner of each image, at 0,0 position.

When resizing, soft edges are a problem, as those scaling algorithms with soft edges combine the image edge with background colour. Those appear as ugly artefacts in-game. Use a non-soft edge scaling algorithm with your editor, with GIMP it is No interpolation, with PSP it is Pixel resize.

If scaling is done with soft edges, use a background colour that while unique is close to map tile colors, e.g. a forest green, or mud brown, or matt grey, so the soft edges won't stand out (that much).

Good luck everyone with your efforts!
Visit us at: Campaign Series Legion
---
CS: Vietnam 1948-1967 < v2.10.20 Available Now (Dec 03, 2025)
CS: Middle East 1948-1985 < v3.10.20 Available Now (Dec 03, 2025)
User avatar
Umbra_TSSI
Posts: 62
Joined: Thu May 27, 2021 11:02 pm

RE: Converting day terrain to night

Post by Umbra_TSSI »

Thanks Jason, I'll work with this info to achieve what I'm trying to do.
User avatar
Crossroads
Posts: 18572
Joined: Sun Jul 05, 2009 8:57 am

RE: Converting day terrain to night

Post by Crossroads »

ORIGINAL: Umbra_TSSI

Thanks Jason, I'll work with this info to achieve what I'm trying to do.
Good luck! Adding a "Night layer" should be the easiest way to add the effect. Let us know how it went!
Visit us at: Campaign Series Legion
---
CS: Vietnam 1948-1967 < v2.10.20 Available Now (Dec 03, 2025)
CS: Middle East 1948-1985 < v3.10.20 Available Now (Dec 03, 2025)
User avatar
Umbra_TSSI
Posts: 62
Joined: Thu May 27, 2021 11:02 pm

RE: Converting day terrain to night

Post by Umbra_TSSI »

ORIGINAL: Crossroads

Good luck! Adding a "Night layer" should be the easiest way to add the effect. Let us know how it went!
I can now make Night files... Yeah!!

Your hex/rgb numbers and opacity setting was the key... thanks!
User avatar
Crossroads
Posts: 18572
Joined: Sun Jul 05, 2009 8:57 am

RE: Converting day terrain to night

Post by Crossroads »

Visit us at: Campaign Series Legion
---
CS: Vietnam 1948-1967 < v2.10.20 Available Now (Dec 03, 2025)
CS: Middle East 1948-1985 < v3.10.20 Available Now (Dec 03, 2025)
Post Reply

Return to “Scenario Design and Modding”