Replicating night tint with transparent parallax layer?

Damascus7

Veteran
Veteran
Joined
Jul 21, 2019
Messages
123
Reaction score
30
First Language
English
Primarily Uses
RMMV
I am trying to put a day/night cycle in my game, but the catch is I don't want to use the "Tint Screen" command, but rather use parallax mapping to put a transparent layer on top of everything. This way I will be able to remove the tint around lighter areas such as under street lights. Making a whole separate map for night would normally be an option, but I would like the player sprite still looks darker or lighter depending on what area they are in, which I don't believe is possible without a transparent layer on top.

As I am using parallax mapping, I could use some guidance on how exactly to replicate the effect the Tint Screen command would have. Any tint I try to put over the picture in Photoshop just makes it look like a very fakey transparent color screen on the map.

The closest I've been able to get is using a curve layer mask, but the closer i get to the right color, the contrast gets way too stark and it kinda hurts my eyes. I could use some advice for this!
 

Attachments

  • day night.png
    day night.png
    1.8 MB · Views: 10

gstv87

Veteran
Veteran
Joined
Oct 20, 2015
Messages
2,777
Reaction score
1,834
First Language
Spanish
Primarily Uses
RMVXA
not sure this could be done with parallax.
parallax is a background, behind everything else. I don't think it could be sent forward, or be transparent.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
36,278
Reaction score
9,702
First Language
German
Primarily Uses
RMMV
"tint screen" is a mathematical operation on existing pixel color numbers, and as such no overlay can directly replicate it (especially the sunset settings are difficult).

that said, "shadow" is an effect that you can create with an overlay in a different way.
use a black/grey picture where you change the opacity of most pixels to be almost transparent.
mostly transparent where you want more light, mostly opaque where you want it to be dark.
 

Damascus7

Veteran
Veteran
Joined
Jul 21, 2019
Messages
123
Reaction score
30
First Language
English
Primarily Uses
RMMV
I thought I could maybe work around the issue by just making separate maps for day and night and limiting the amount of light that street lights give off, so that I don't have to worry about the character sprite. Then I realized that I have no way to tint the character by itself to make it truly look like night time.

I'm wondering if there's a way to design a map in such a way that the street lights will look bright and yellow AFTER a night tint is applied to it, but I'm guessing it's going to look at least some shade of blue no matter what.

I've noticed that in the picture I've attached, some parts of the map did not get tinted, and most of them are related to custom tilesets I've implemented. I'm not sure how that works, but is there a way to take advantage of that?
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
36,278
Reaction score
9,702
First Language
German
Primarily Uses
RMMV
some parts of the map did not get tinted
wrong assumption - everything gets tinted, the tint sometimes just has no visible effect.
and that depends on the color of a coordinate as well as the tint selected.

each pixel has three color codes from 0 to 255 (RGB ).
the tint is a mathematical operation that can range from -255 to 255.
but nothing can make the resulting color to be outside of 0 to 255 color range.

so if a pixel has a color component of red 50, green 230 and blue 120, and you apply a tint of (-100, +100, +100) then the resulting color of the pixel will be R=0, G=255, B=220 - half of the red tint and most of the green tint will be lost because the mathematics go outside the color range.

Or in other words a bright tile cannot be tinted brighter by a sunset tint, and a dark tile cannot be tinted darker by a night tint and so on.
and most likely that is what you see as "no tint applied".
 

Damascus7

Veteran
Veteran
Joined
Jul 21, 2019
Messages
123
Reaction score
30
First Language
English
Primarily Uses
RMMV
Is that true even for areas like this? The arch seems to be split in half on whether or not it's tinted, but the color values should be exactly the same.

1653869475018.png
 

BenSD

Could be anybody
Veteran
Joined
Dec 22, 2021
Messages
397
Reaction score
554
First Language
English
Primarily Uses
RMMZ
I know this isn't what you're asking for, but I thought I'd throw it out there: have you tried just using a lighting plugin, like community lighting? That would produce the same effect, probably be simpler, and would let you personalize lights to flicker like a fire or be different colors, etc. On the other hand, it's a little more resource intensive than tint screen or a semi-transparent layer would be.
 

Latest Threads

Latest Posts

Latest Profile Posts

The main game of my trilo/saga 50%OFF on Steam..... its now or never more
I swap between Ace and MZ so I can stay fresh but - what do you mean you can use subfolders in the plugin's folder for easier organization!?
Did some new music again, praise be. To the next song!
Watch Studio Blue play Numina by starlit in our latest RPG Maker Games Critique stream starting NOW!

Forum statistics

Threads
123,141
Messages
1,154,289
Members
161,478
Latest member
mrlimbs
Top