UGX-Mods

Call of Duty 5: World at War => Help Desk => Mapping => Topic started by: Swag_Chesse_xo1 on March 10, 2018, 07:12:02 pm

Title: I have a lighting glitch
Post by: Swag_Chesse_xo1 on March 10, 2018, 07:12:02 pm
My sun isn't working and neither are lights. If I change the brightness of the sun or lights, only my perks and sky model get brighter.   
            With the Sun:  https://imgur.com/1ZfHJj1          https://imgur.com/f8qJLRP

            Without the Sun:  https://imgur.com/jiZh2sx     https://imgur.com/n07eaw3
Title: Re: I have a lighting glitch
Post by: Swag_Chesse_xo1 on March 12, 2018, 04:34:12 pm
I meant Primary Lights*
Title: Re: I have a lighting glitch
Post by: StupidEdits on March 13, 2018, 06:31:38 pm
You can change the direction of the sunlight in Radiant by going to Edit > Sun Info. Make sure you have sunlight preview enabled under View > Light Preview > Preview Sun as well, or you won't be able to see the changes / difference while editing the direction.

Also make sure you have everything properly setup for your map lighting/shadow wise:
wiki.modsrepository.com/index.php?title=Call_of_Duty_5:_Skybox (http://wiki.modsrepository.com/index.php?title=Call_of_Duty_5:_Skybox)
http://wiki.modsrepository.com/index.php?title=Call_of_Duty_4:_Gridfile (http://wiki.modsrepository.com/index.php?title=Call_of_Duty_4:_Gridfile)
http://wiki.modsrepository.com/index.php?title=Call_of_Duty_4:_Reflection_Probes (http://wiki.modsrepository.com/index.php?title=Call_of_Duty_4:_Reflection_Probes)

As for primary lights not working I don't remember exactly, what are your settings for the lights not working.
Title: Re: I have a lighting glitch
Post by: Swag_Chesse_xo1 on March 14, 2018, 01:15:03 am
I just changed a few settings to match Der Riese's sun and the preview looks great but when I load it, it looks like this: https://imgur.com/csV0aLk   Halp. :poker:
Title: Re: I have a lighting glitch
Post by: TGMKTheII on March 15, 2018, 04:12:12 pm
I had a similar issue. Have you added a light grid volume? Have you added your skybox xmodel to your zone_source > mapname.gsc? Hollow caulk box? Hollow default brush with a sky texture?

Title: Re: I have a lighting glitch
Post by: Swag_Chesse_xo1 on March 15, 2018, 09:49:50 pm
I did everything but the Hollow Caulk Box and Hollow Sky Texture thing. How do I do it?
Title: Re: I have a lighting glitch
Post by: TGMKTheII on March 16, 2018, 02:37:06 pm
I did everything but the Hollow Caulk Box and Hollow Sky Texture thing. How do I do it?

Mine never worked without doing this.. go to textures, usage, all, select the checkered default texture and draw a brush around your map (preferably larger than the map) and on the top tools bar youll see a red box, you might have to look for it but it will say hollow. Select the brush and press that button.

Go to textures, usage, sky and select a sky similar to yours. If your map is dark, select a darker texture, if its light select one that's about as light as your skyboxmodel. Or if its available use your skyboxmodel texture.


My map worked fine after that but previously it didn't, not sure why lol but textures and lighting fixed itself. Have you also done a worldspawn? That helped me too. http://wiki.modsrepository.com/index.php?title=Call_of_Duty_5:_Worldspawn_Settings (http://wiki.modsrepository.com/index.php?title=Call_of_Duty_5:_Worldspawn_Settings)
Title: Re: I have a lighting glitch
Post by: Swag_Chesse_xo1 on March 16, 2018, 09:40:28 pm
Mine never worked without doing this.. go to textures, usage, all, select the checkered default texture and draw a brush around your map (preferably larger than the map) and on the top tools bar youll see a red box, you might have to look for it but it will say hollow. Select the brush and press that button.

Go to textures, usage, sky and select a sky similar to yours. If your map is dark, select a darker texture, if its light select one that's about as light as your skyboxmodel. Or if its available use your skyboxmodel texture.




 Thank you, it finally worked!
Title: Re: I have a lighting glitch
Post by: Scobalula on March 16, 2018, 09:56:33 pm
0/10
Title: Re: I have a lighting glitch
Post by: TGMKTheII on March 16, 2018, 10:07:25 pm
Thank you, it finally worked!

;) No problem.