Problems with normalmaps


(LordDaimos) #1

I can’t get my normalmaps to work. This is the shader and the textures i’m using:


textures/letgo_bump/red
{ 
	qer_editorimage textures/letgo/red.tga 
	q3map_normalimage textures/letgo/dot3.tga 

	{ 
		map $lightmap 
		rgbGen identity 
	} 
	{ 
		map textures/letgo/red.tga 
		blendFunc GL_DST_COLOR GL_ZERO 
		rgbgen identity 
	} 
}


I’m using the latest version of Q3Map2 but i haven’t found any documentation on how this really works so i’m quite sure that i’ve missed something. Both images are TGA32.

/LordDaimos


(ydnar) #2

Crank up the lightmap resolution with _lightmapscale 0.125 or so.

y


(LordDaimos) #3

I had _lightmapscale 0.1 but it still doesn’t work. Here is a picture of my testmap:

I’ve made normalmaps and shaders for all three textures. The right boxes are with the shader and the left ones are just the texture without a shader.

/LordDaimos


(ydnar) #4

Try just an r_lightmap shot.

Your texture has light/shading in it already, which could be masking the bump effect.

y


(Emon) #5

It looks like it may be working. Notice the green and red highlights.