Hammer Editor - Make the Map darker after specific time

Any aspects of level design for the Source engine.

Hammer Editor - Make the Map darker after specific time

Postby opti2000 on Fri May 17, 2013 9:31 pm

Hello my friends its me again :)

I am just wondering if its possible to make the map darker after a specific time?

For Example:

Map is for 10 minutes bright and gets then slowly darker and darker for 10 minutes and gets again brighter slowly.

Hope there are some possibilities for that :)
User avatar
opti2000
Regular
Regular
 
Joined: Wed May 01, 2013 3:57 pm

Re: Hammer Editor - Make the Map darker after specific time

Postby LordDz on Fri May 17, 2013 10:53 pm

You can sort of fake it with a custom skybox (using a 3d model instead of the 2d bruszhes).

Unfortunately my google skills are not up to what they used to be. Maybe you have some better look than me. (Check gamebanana.com
User avatar
LordDz
May Contain Skills
May Contain Skills
 
Joined: Mon Sep 01, 2008 12:28 pm
Location: Hammer Crash Logs

Re: Hammer Editor - Make the Map darker after specific time

Postby Dives on Fri May 17, 2013 10:54 pm

Talking about sunlight, nope. Source's lighting is precomputed lightmaps. The only lighting that can change are localized light sources from the light, light_spot, light_dynamic, and projected_texture entities, and even then there are limitations to that.
User avatar
Dives
May Contain Skills
May Contain Skills
 
Joined: Sat Feb 28, 2009 9:54 pm
Location: Moorpark, CA

Re: Hammer Editor - Make the Map darker after specific time

Postby Gary on Fri May 17, 2013 11:05 pm

Giving light_env a targrtname lets you control it like a normal light. But it makes it look lower quality.
Have a question related to modding or something I posted? Something that needs staff attention? I haven't been active lately, but feel free to PM me or message me on Steam(link below)

User avatar
Gary
Interlopers Staff
Interlopers Staff
 
Joined: Wed Dec 16, 2009 12:40 am
Location: USA, FL

Re: Hammer Editor - Make the Map darker after specific time

Postby cz_squishy on Sat May 18, 2013 12:10 am

You can probably fake it with colour correction
User avatar
cz_squishy
Sir Post-a-lot
Sir Post-a-lot
 
Joined: Sat Jan 31, 2009 12:02 am
Location: Bottom Dakota

Re: Hammer Editor - Make the Map darker after specific time

Postby Armageddon on Sat May 18, 2013 12:19 am

cz_squishy wrote:You can probably fake it with colour correction

This is the best option, you could also fade in some clouds in a 3D skybox too if needed.
User avatar
Armageddon
Forum Goer Elite™
Forum Goer Elite™
 
Joined: Sun Dec 14, 2008 5:53 am

Re: Hammer Editor - Make the Map darker after specific time

Postby cpl. punishment on Sat May 18, 2013 12:49 am

cz_squishy wrote:You can probably fake it with colour correction


I would also try using an env_tonemap_controller.
cpl. punishment
Been Here A While
Been Here A While
 
Joined: Thu Oct 04, 2007 10:48 pm

Re: Hammer Editor - Make the Map darker after specific time

Postby Sathor on Sat May 18, 2013 8:14 am

But the shadows won't shift ... so I guess I would just give up on the idea and think of something else.
User avatar
Sathor
Senior Member
Senior Member
 
Joined: Sat Jan 20, 2007 10:31 pm
Location: Germany

Re: Hammer Editor - Make the Map darker after specific time

Postby Major Banter on Sat May 18, 2013 11:51 am

If you really want to do proper outdoor lighting, thanks to the way Source's lighting is built (on the back of a 1999 engine booted up to 2003, then 2007) lighting is static.

The only way to achieve sunlight is through something similar to CSGO's system, with pre-baked ambient occlusion and a sunlight entity somehow attached to a mobile system, but I wouldn't want to be the guy coding that. GMod managed it with Lua though, so it's not impossible - but it sure as hell isn't easy.

Otherwise, if you're already aware of the limitations it relies on colorcorrection and a tonemap to fake it.
ImageImageImage
Major Banter
Veteran
Veteran
 
Joined: Tue Apr 01, 2008 10:52 pm
Location: UK

Re: Hammer Editor - Make the Map darker after specific time

Postby opti2000 on Sat May 18, 2013 12:10 pm

Well guys i dont want sunrise or whatever.
I just want the map gets dark and bright again. So thats only possible with color correction and tonemap?

Are there any tutorials according to that?
User avatar
opti2000
Regular
Regular
 
Joined: Wed May 01, 2013 3:57 pm

Re: Hammer Editor - Make the Map darker after specific time

Postby TechieUK on Sat May 18, 2013 1:21 pm

You mean something like this?

Best example I could find... You get to see the effect around 0:22.
I would do it through animated textures, especially as you could only animate world textures so enemies and props stay visible. Not much else I can suggest.
Also know as WILLAM; TechieUK is my old name. If you see WILLAM on Steam or ModDB, it's me.
User avatar
TechieUK
Regular
Regular
 
Joined: Sat Apr 13, 2013 4:29 pm

Re: Hammer Editor - Make the Map darker after specific time

Postby opti2000 on Sat May 18, 2013 4:22 pm

Sorry not like that^^

Well i found something but somehow its not working i hope anyone can help me out.

Some people just parented a point_spotlight to a func_tracktrain and let it moved over the map. Like that it lokked like a sun moving from one side to another.

Does anyone know how exactly thats possible?

EDIT: And how is it possible to make the map entirely dark so that the point_spotlight light everthing up like a sun?

For example i just want it like this guy

User avatar
opti2000
Regular
Regular
 
Joined: Wed May 01, 2013 3:57 pm

Re: Hammer Editor - Make the Map darker after specific time

Postby Major Banter on Sat May 18, 2013 4:30 pm

That's with Lua, a coding language made use of in Garry's Mod.

Without significant code changes, this cannot be done in Hammer. Believe me, I've tried. If you're willing to delve into code, we can get more serious - otherwise the solutions will be hacky at best. I do have a few ideas involving dynamic lights but you will not get nice shadows, end of story.
ImageImageImage
Major Banter
Veteran
Veteran
 
Joined: Tue Apr 01, 2008 10:52 pm
Location: UK

Re: Hammer Editor - Make the Map darker after specific time

Postby opti2000 on Sat May 18, 2013 4:34 pm

So the method with the point spotlight thats parented to a tracktrain will also not work?
User avatar
opti2000
Regular
Regular
 
Joined: Wed May 01, 2013 3:57 pm

Re: Hammer Editor - Make the Map darker after specific time

Postby TechieUK on Sat May 18, 2013 4:41 pm

If I recall correctly, point_spotlight doesn't make any light other than a tiny little spot at the end of it.
Also know as WILLAM; TechieUK is my old name. If you see WILLAM on Steam or ModDB, it's me.
User avatar
TechieUK
Regular
Regular
 
Joined: Sat Apr 13, 2013 4:29 pm
Next

Return to Hammer Editor Help

Who is online

Users browsing this forum: Bing [Bot]