playermodel all dark under water (pics added) SOLVED


(]UBC[ McNite) #1

Hey guys,

today its another problem: my playermodel has lighting issues. (I remember there were threads about this on here, but I didn’t find them again.)

So what i get is: whenever my playermodels is going for a swim it gets completely black. In almost all other parts of the map its lit well, only in the water its pitch black.
I had a similiar problem earlier in the same map, where the playermodel was totally black in some spots (e.g. in a cave or somewhere in the terrain). But that problem disappeared without me doing anything about it (which I didnt mind).

So these are my worldspawn settings:
_mingridlight 48
gridsize 128 128 64
ambient 12 (and, yea i use a _color too)
(no _cs and _rs set)

The water is one/ several large brushes with common/nodraw_water with a watershader on the surface:

textures/t/water //works fine as a thin layer on top, but no light on models below it
{
	qer_editorimage textures/t/water_ei.jpg
	qer_trans 0.9

	cull disable // "back" is no good idea
	surfaceparm water
	q3map_tcMod scale 0.5 0.5
	implicitMap textures/t/water_02_d03.tga
}

So… I d be really grateful for any ideas about how to solve this.


(SCDS_reyalP) #2

you probably want surfaceparm trans as well.


(]UBC[ McNite) #3

me = mapping noob

I deleted the trans cuz i thought it was responsible for the green objective-mark showing up through the water-surface of The River II which was like a bulls eye on the docs carrier… seems to work though with this shader. At least I can’t see the green thingy when I use cg_thirdperson while swimming with the docs…

thx a lot


(]UBC[ McNite) #4

erm… sorry but the surfaceparm trans doesn’t solve this problem… have a look for yourself:

This is in the big water area… model is pitch black when swimming and as long as its not out of the water. The water area consists of about 20 large blocks of water, all larger n 1024x1024 in X x Y.

This is in the 2nd part of the map in a smaller area of water. Its 1 brush of app. 8000 x 1500 units. As you can see the lighting of the model changes depending on where u swim. That might be due to shadows casted from the surrounding mountains, I m not sure about that.

Shader is as above, only added surfaceparm trans. What now?


(SCDS_reyalP) #5

Search for lightgrid problems or similar. There are various possible causes, and there have been a few threads about this in the past. Since it works in some parts of the water, I would say that in itself isn’t the cause of your problem.


(CooperHawkes) #6

did you already try to add some light juniors?


(]UBC[ McNite) #7

Ok… I was able to get the playermodel lit properly in the water.

What I did is:

  • removed the _mingridlight 48 in the worldspawn
  • removed the lots of 1024x1024 waterbrushes and made 1 real big brush 9600x4800 X x Y of common/nodraw_water with my watershader on the surface for the water area
  • made a lightgrid brush that is around HALF of the big waterbrush… wanted to test whether the model will be lit in the part inside of the lightgrid brush… but now its lit in the whole water.

Conclusion: problem solved… but we dunno why and how LOL