Changeing the "color" of the darkness?

Discussions about Coding and Scripting

Changeing the "color" of the darkness?

Postby SzGergo » Sat Oct 13, 2018 9:24 am

Hi,
i am totally layman when it comes to scripts, and have very little knowledge on how things work, so maybe it is not the best place to ask, but:
Is there a way to somehow change the color of the "darkness" (that is, how the lack of lighting normally represneted) from black to something else?
(the purpose of this would be to experiment fakeing some atmospheric fog by the using of simple lighting....)
SzGergo
Skilled
 
Posts: 206
Joined: Fri Aug 27, 2010 2:48 pm

Re: Changeing the "color" of the darkness?

Postby papercoffee » Sat Oct 13, 2018 10:36 am

Do you mean in your map? Or general for every map?

For your map you don't need any uscript ...use the zone-lighting. set its brightness to 1 or 2 and give it a colour.
In my Northern Lights map did I use this to make the darkness of the night dark blue/purple.
User avatar
papercoffee
Site Staff
 
Posts: 9085
Joined: Wed Jul 15, 2009 11:36 am
Location: Cologne, the city with the big cathedral.
Personal rank: coffee addicted !!!

Re: Changeing the "color" of the darkness?

Postby PrinceOfFunky » Sat Oct 13, 2018 12:55 pm

That's the first step to realistic lighting, second step should be cylinder lights for sun light :D
Image
User avatar
PrinceOfFunky
Inhuman
 
Posts: 996
Joined: Mon Aug 31, 2015 10:31 pm

Re: Changeing the "color" of the darkness?

Postby SzGergo » Sat Oct 13, 2018 1:32 pm

papercoffee wrote:Do you mean in your map? Or general for every map?

For your map you don't need any uscript ...use the zone-lighting. set its brightness to 1 or 2 and give it a colour.
In my Northern Lights map did I use this to make the darkness of the night dark blue/purple.


In my map, or to be more particular, in a given zone.

Howver, simple AmbientLighting won't cut it, for it just generally adds some value to every part of ever lightmap, making everything visible.

What i really want is soemthing similar what you can normally do with the "ViewFog" parameters under ZoneLighting. However that simply just "tints" the players view, (not the actual textures on the faces, obviously), so it only takes effect if the player is in that particular Zone.

What i am looking for, is if there a way to somehow modulate the textures / lightmaps in a Zone.
(So this has something to do how the actual stuff is rendered to begin with... but Is this accessible via some simple, or not so simple scripting, or it is just encapsulated deep in the engine, and that is that?)
SzGergo
Skilled
 
Posts: 206
Joined: Fri Aug 27, 2010 2:48 pm

Re: Changeing the "color" of the darkness?

Postby JackGriffin » Sat Oct 13, 2018 3:06 pm

It's for the 227 Unreal update but there is a non-light actor. Think of it as a negative light, you can use it to place darkness. The effect is quite unsettling when done correctly and would be just what you needed for this. Sadly, it won't work in UT. Still you can do some changes by adding a very low saturation color to a zone actor and use a very low brightness. This will give a gentle nudge to the dark color.
"You damn kids, back in my time we made the items, maps and games ourselves with an unwieldy engine using counter-intuitive crash-prone tools and we liked it so much we built communities around this which nowadays look like cults because they're quasi-parallel societies based on the same old games." -Hellkeeper
User avatar
JackGriffin
Godlike
 
Posts: 3723
Joined: Fri Jan 14, 2011 1:53 pm
Personal rank: Hack coder

Re: Changeing the "color" of the darkness?

Postby PrinceOfFunky » Sat Oct 13, 2018 6:05 pm

SzGergo wrote:What i am looking for, is if there a way to somehow modulate the textures / lightmaps in a Zone.
(So this has something to do how the actual stuff is rendered to begin with... but Is this accessible via some simple, or not so simple scripting, or it is just encapsulated deep in the engine, and that is that?)

I think you can put a solid modulated color overlay with the HUD.
Image
User avatar
PrinceOfFunky
Inhuman
 
Posts: 996
Joined: Mon Aug 31, 2015 10:31 pm


Return to Coding, Scripting

Who is online

Users browsing this forum: No registered users and 2 guests