UGX-Mods

Call of Duty 5: World at War => Help Desk => Topic started by: fanmagic on July 22, 2019, 11:22:06 am

Title: Lightning issues on models
Post by: fanmagic on July 22, 2019, 11:22:06 am
Hey guys,
I am working on an Orignis styled map since some months now and I decided to port over some models from BO2. Unfortuanally I have some issues with them. I've ported them with Wraith and converted them with AssMan to WaW and everything worked fine. But when I look at them ingame they don't work with the light correctly. Maybe I did a mistake while converting and I hope one of u guys know how to fix it.

(https://i.imgur.com/KRcDeqN.jpg)

The model gets fully lights out and the light don't fade on the model.

(https://i.imgur.com/xQfKuIJ.jpg)

It happens to all of my ported models like these sandbags.

(https://i.imgur.com/PLgkFnr.jpg)
Model settings

(https://i.imgur.com/XAJCrPC.jpg)
Material settings

In Radiant I set up my worldspawn corecctly, the sun is working. I placed the lightgrid and lightgrid sky volumes, I placed a skybox model and reflection probes and the map is fully surrounded by a caulk box with a sky texture. I switched the ported models to stock WaW models and it works fine, so I think it is a problem with the converted models. Any help or advise is greatly appreciated. Thanks :)
Title: Re: Lightning issues on models
Post by: codmoddd1234 on July 22, 2019, 04:26:25 pm

Add a specular map.
Make the spec map darker if it looks wet ingame.
Check "berlin_wood_beam" xmodel spec map for an example of darkness.
Title: Re: Lightning issues on models
Post by: johndoe on July 23, 2019, 11:29:41 am
In WaW's engine, models are lit relative to their origin point (the blue box you can see in the 3d/2d panels). If they go through a brush, the light they receive will come directly from the skybox, so they won't look as bright or dark as the other objects around them. In order to fix that problem, you should avoid making them go through brushes in any direction possible. If you feel like you have to place a model in that fashion, you need to cover the origin of the model with some brushes so it won't receive any light from the outside of the map at all.

Bad practice
(https://i.gyazo.com/114f37b2bb13decd4f8558c67acdcdf0.png)

Good practice
(https://i.gyazo.com/e5780d9cd6a08005cb17d13fc7e0cedd.png)