lighting a model


(zl1corvette) #1

Hi, I am new to modeling and mapping, I have built a model but it isn’t lighting correctly, if you look at the image you can see that there is portion that looks brighter than the rest. My map is just lit with the oasis sky right now. Or is this just because my model sucks?

Here’s my shader, super basic should I need to add anything to this?


models/emperor/pullman
{ 
qer_editorimage models/emperor/pullman.tga
implicitMap models/emperor/pullman.tga
}


(MadJack) #2

The initial placement if the model (in the map before it’s moved to its proper place) will dictate how it will be lit. That’s if you’re model is a script_mover. So if the model in a shade area, it’ll be lit accordingly, with shaded areas and lighted ones.

If it’s not a script_mover and you want the model to be lit in a certain way, use lightJunior around the model to light it correctly.

That’s as I remember it…

HTH


(zl1corvette) #3

I am not moving the model, I’ll try some lightJuniors to see if I can’t get it the way I want it.


(Moonkey) #4

Just to clarify… the extra bright part is the areas between the windows?

If so, it looks like the normals may be screwed. I’d try using npherno’s md3 tools to fix that (don’t have a link sorry, at work :disgust: )


(MadJack) #5

NPherno’s app can be found on my site if you want it.


(zl1corvette) #6

I tried the tool you suggested and md3fix but it didn’t help any. I placed some lightjuniors around my model but it didn’t seem to affect anything at all not even more light, my light compile

-light -fast -samples 2 -filter -patchshadows -external -lightmapsize 256 -approx 8

Why don’t the lightjuniors seem to light at all? I just rightclicked and placed one.


(Moonkey) #7

lightjuniors will only effect dynamic models - script_movers, misc_gamemodels etc.

If your model is a misc_model, its baked into the bsp and lightjuniors wont have any effect. In that case just normal lights should have an effect.