#1 2014-11-22 22:47:38

hunds
Member

Fullbright models

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

#2 2014-11-23 13:29:17

RaZgRiZ
Moderator

Re: Fullbright models

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

#3 2014-11-23 13:50:07

hunds
Member

Re: Fullbright models

-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

#4 2014-11-23 16:15:48

Lord Kv
Member

Re: Fullbright models

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

#5 2014-11-25 15:24:38

hunds
Member

Re: Fullbright models

It worked, thx a lot :D

Offline

Board footer