You are not logged in.
Pages: 1
I downloaded some models from http://nobiax.deviantart.com/, and all textures worked, but the models are not affected by light. They have shadows, but the models are aways in fullbright... How to fix that ?
Offline
For a start you could tell us what you downloaded and how you set it up inside the game, then we might be able to tell you what's wrong.
Offline
-I downloaded this http://nobiax.deviantart.com/art/Free-P … -295981057.
-I modified the "default_map_models.cfg", so those models would appear in game.
-I created an "obj.cfg" file:
____________________________________________________________________________________
objload concrete_pillar.obj
objskin * diffuse.png specular.png
objbumpmap * normal.png
mdlscale 10
mdlcollide 1
mdlspec 100
____________________________________________________________________________________
When i loaded the map models, all textures were good, he was casting shadow, but he was in fulbright. See both images to understand...
http://hundsdorfex.deviantart.com/art/T … orfex&qo=1
http://hundsdorfex.deviantart.com/art/T … 1416750456
How to fix that ???
Offline
The problem is that you are loading a spec map where you should be loading a mask texture. In a mask texture, red is for spec value, like in a spec map, blue is for env reflections and green is for glow. Since the spec map is grey-scale, all the pixels have the green glow value and thus they glow and seem fullbright.
To fix this make the spec map red-black instead of white-black.
Last edited by Lord Kv (2014-11-23 16:17:53)
Offline
It worked, thx a lot :D
Offline
Pages: 1