Random black blob on terrain lightmaps [fix'd]

Discussion for Level editing, modeling, programming, or any of the other technical aspects of Quake
Post Reply
KittenIgnition
Posts: 252
Joined: Sun Nov 06, 2011 11:11 pm

Random black blob on terrain lightmaps [fix'd]

Post by KittenIgnition »

I've been messing around in Radiant again recently, and got back to my little test map. I don't remember ever having this issue before, but that doesn't matter as I have it now. There's a huge black spot over my terrain, and the same thing on a few other brushes in the same terrain cluster (I have a few terrain brushes func_group'd for more detailed shadows).

The shader for the grass is really basic:

Code: Select all

textures/landscape/fielddirtgrass01
{
//	q3map_surfacemodel models/landscape/grass/fallforestgrassobj01.obj 96 .3 1.5 0.5 0 360 1
	q3map_lightmapSize 2048 2048
	q3map_lightmapBrightness 2.0
	q3map_lightmapMergable
	surfaceparm alphashadow
	surfaceparm slick
	{
		tcgen lightmap
		map $lightmap
		rgbGen identity
	}
	{
		map textures/landscape/fielddirtgrass01.tga
		blendfunc filter
	}
}
and I'm using Lunaran's ridiculous skybox from lun3dm5, but it happens also with more standard skyboxes. I dunno where to look for a solution, as this is the first time I've ever seen this that I can recall.
Last edited by KittenIgnition on Tue Mar 31, 2015 12:09 am, edited 1 time in total.
KittenIgnition
Posts: 252
Joined: Sun Nov 06, 2011 11:11 pm

Re: Random black blob on terrain lightmaps

Post by KittenIgnition »

I'm, uh, really unlucky with these kinds of things. I don't know why "surfaceparm alphashadow" is there, and I don't know why I didn't check it earlier... but somehow that was the cause. And I found it within 30 seconds if making this topic, after having the issue for 3 days.

FML
AEon
Posts: 1816
Joined: Sun Apr 20, 2003 7:00 am

Re: Random black blob on terrain lightmaps [fix'd]

Post by AEon »

I noted that the act of trying to analyse and explain an issue to others usually helps to focus the own mind. Had that happen to me several times as well in the past few years... :)
KittenIgnition
Posts: 252
Joined: Sun Nov 06, 2011 11:11 pm

Re: Random black blob on terrain lightmaps [fix'd]

Post by KittenIgnition »

It also happens to me really often, but I don't catch it until I already send my message or make my post, thus causing some embarrassment. Not that it really matters, it's a bit annoying though.

Seriously though, why the hell does alphashadow cause this? It's friggin' weird. I know it shouldn't have been there, and its presence in the shader was an accident, but this basically means alphashadow casts its own shadow on itself, right? That's weird. And potentially cool.
User avatar
Eraser
Posts: 19174
Joined: Fri Dec 01, 2000 8:00 am

Re: Random black blob on terrain lightmaps [fix'd]

Post by Eraser »

Same thing with programming. Sometimes you stare at an unsolvable issues for hours and then you ask someone to take a look at it and while you explain what's happening, you suddenly note your parentheses are incorrect :)
User avatar
MKJ
Posts: 32581
Joined: Fri Nov 24, 2000 8:00 am

Re: Random black blob on terrain lightmaps [fix'd]

Post by MKJ »

it's called Rubber Ducking.
User avatar
mrd
Posts: 4289
Joined: Sat Mar 25, 2000 8:00 am

Re: Random black blob on terrain lightmaps [fix'd]

Post by mrd »

It's actually called a new pair of eyes.
User avatar
Eraser
Posts: 19174
Joined: Fri Dec 01, 2000 8:00 am

Re: Random black blob on terrain lightmaps [fix'd]

Post by Eraser »

mrd wrote:It's actually called a new pair of eyes.
Nah, because it's your own eyes spotting the mistake without any input from the other person.
User avatar
MKJ
Posts: 32581
Joined: Fri Nov 24, 2000 8:00 am

Re: Random black blob on terrain lightmaps [fix'd]

Post by MKJ »

Indeed, it's forcing yourself to go through it step by step.
User avatar
mrd
Posts: 4289
Joined: Sat Mar 25, 2000 8:00 am

Re: Random black blob on terrain lightmaps [fix'd]

Post by mrd »

Apparently I need a new pair of eyes.
KittenIgnition
Posts: 252
Joined: Sun Nov 06, 2011 11:11 pm

Re: Random black blob on terrain lightmaps [fix'd]

Post by KittenIgnition »

here is pic A of the map in its working stage and pic B, if anyone was interested =D

If you aren't actually playing on the map, it really isn't that special to look at. It's not amazing even if you are on it though... It's just for experimenting and learning mainly.

lightmap ver of pic A and pic B.
Post Reply