• Moving sun
    10 replies, posted
Hey everyone. I'm sure a few people will know me because I keep asking for help (I thank you), but yet again, I'm stuck. Well, not stuck, but more of a "how do you do..." problem. Simple question: "How do you get a sun to move across the map?". I think it's in rp_tb_city45_02, but when I had a poke around, I couldn't make sence of it. Anyways, which Facepunch's powerful minds, I'd figure someone would know here. Thanks!
I don't think this is what you're after, but you could have a bright light parented to a func_tracktrain (?) moving around in the sky.
If so, you should put it in a 3d skybox. It will give it the feeling of being further away.
[QUOTE=Hellsten;20058834]If so, you should put it in a 3d skybox. It will give it the feeling of being further away.[/QUOTE] Yes but I want the sun to move. Unless this is what you mean by moving it, I can't understand you. :O
Make a 3D skybox around your map. Make a nodraw brush and make it a func track train. Make path_corners around the 3D skybox so it loops in a circle. Make a light and parent it to the func_tracktrain. Ok?
If I am not mistaken, only light_dynamic can be parented to something. And if I am not mistaken again, light_dynamic is not very good.
I think to get the correct sun like effect you need to use a sprite and make it really big then parent that to the train.
[url]http://www.garrysmod.org/downloads/?a=view&id=75912[/url] Didn't you want something like this? Decompile the map and see how they did it, I'll look for the original thread. [editline]10:11AM[/editline] Found it. [url]http://www.facepunch.com/showthread.php?t=298007[/url]
[QUOTE=Firegod522;20060204][url]http://www.garrysmod.org/downloads/?a=view&id=75912[/url] Didn't you want something like this? Decompile the map and see how they did it, I'll look for the original thread. [editline]10:11AM[/editline] Found it. [url]http://www.facepunch.com/showthread.php?t=298007[/url][/QUOTE] The map has to have a 3D skybox with env_sun, just saying.
[QUOTE=ChewGum;20060268]The map has to have a 3D skybox with env_sun, just saying.[/QUOTE] I know. [editline]10:24AM[/editline] [url]http://www.facepunch.com/showpost.php?p=6592832&postcount=370[/url]
[quote]It's actually quite easy. Firstly create 4 sides in a func_brush surrounding the inside of the skybox. Set the inside texture to skybox_fake_white (or whatever it's called) and set the other side to nodraw. Set the names of these func_brush's to skyoverlay1. Add "targetname" to light_environment and add the value "sun_light" using smartedit. Add "targetname" to env_sun and add the value "sun_spot" using smartedit. Adjust the light_environment values as necessary. Add an info_lighting with the name "daylight" (not sure it's necessary though) You should after all this have a map that is day/night compatible. If you want nightlights then just add some light_spot's with the names like nightlight# (replace the # with a number) and they should automatically turn on when the sun goes down. EDIT: I almost forgot, add "nightlight" with the value of "#" (where # = a number) to your nightlights as well otherwise they won't turn on and off. If i missed anything or there are errors with this post feel free to correct me.[/quote] Seems quite hard to understand, but i'll try to work my way through it. If anyone else would have an easier idea, shove it in!
Sorry, you need to Log In to post a reply to this thread.