Lightmap problems with terrain -1 reply

Please wait...

DarthStevenus

GF is my bext friend *hugs GF*

50 XP

18th December 2009

0 Uploads

909 Posts

0 Threads

#1 8 years ago

I noticed the other day that some terrain brushes in a map of mine (which use a specularity shader) were not lighted quite like they should be. It was almost like the specular map on certain brushes was brighter than it should be or was not...in line with the other brushes I guess. If that makes sense. So I compiled it again with -border and -normalmap in the light phase and this is what I got:

shot0056.jpgshot0054.jpgshot0052.jpgshot0057.jpg

Now some of those are patches, like the one in the third shot I believe, because I couldn't use quadsoups or trisoups for that particular area (all sorts of vertex issues). But anyway, does anyone know how to fix this???




Didz

Ten seconds flat.

50 XP

3rd April 2009

0 Uploads

288 Posts

0 Threads

#2 8 years ago

What's the problem? Could you show us the proper lighting and label the incorrect areas?




Raz0r

Worse than most terrible

50 XP

27th September 2006

0 Uploads

6,737 Posts

0 Threads

#3 8 years ago

..Really Didz? I don't think the red is supposed to be there =p




Didz

Ten seconds flat.

50 XP

3rd April 2009

0 Uploads

288 Posts

0 Threads

#4 8 years ago

He used -border in the command line for the red borders, it's a debug switch. He stated in the first post he used that so I'm guessing he knows why the red borders are there. Just take off -border and voila, but I'm guessing that's not his problem cause... putting that in the command line was intentional.




DarthStevenus

GF is my bext friend *hugs GF*

50 XP

18th December 2009

0 Uploads

909 Posts

0 Threads

#5 8 years ago

That was intentional, but only to more easily show the problem. I'll put up a few more pics of the problem areas without -border so you can see what I mean.




DarthStevenus

GF is my bext friend *hugs GF*

50 XP

18th December 2009

0 Uploads

909 Posts

0 Threads

#6 8 years ago

Here's what I was talking about:

shot0090-1.jpgshot0089.jpg




Didz

Ten seconds flat.

50 XP

3rd April 2009

0 Uploads

288 Posts

0 Threads

#7 8 years ago

Try fiddling with q3map_shadeangle in your terrain's shader, and make sure you have q3map_nonplanar set in it. Also try q3map_splotchfix, only after messing with the first ones though.

Patches get lighting calculated slightly different to regular brushes so I'd avoid mixing both types of terrain as there's a good chance they won't match up.