how to bump map


(3tehakanyuksel) #1

:bump: Is there a tutorial for bumpmapping with q3map2? Or can anyone send a shader example using bumpmap feature?


(cloudscapes) #2

You’ll need to do two things. Convert a bumpmap using nvidia’s normal-map plugin (free):

http://developer.nvidia.com/view.asp?IO=ps_texture_compression_plugin

It generates splashes of pink/blue out of your grayscale bumpmap image but that’s normal. :slight_smile: Afterwords add the q3map_normalimage [image] key in your shader. A smaller q3map_lightmapsamplesize also helps to get details too. It’s generated during lightmap stage, non-realtime. :moo:

ydnar: was that bump example map I made specifically for a tutorial or just an example? :slight_smile:

Oh and btw, hello everyone I’m new here. :smiley: :smiley: :smiley:

-Etienne
www.cloudscapes.tk


(3tehakanyuksel) #3

textures/bump/shd_bump_01
{
qer_editorimage textures/metal/metal_30.tga
q3map_normalimage textures/bump/bump_30.tga
q3map_lightmapsamplesize 4
q3map_lightmapSize 512 512

{
    	      map $lightmap
     	      rgbGen identity
	}
{
       map textures/3te_metal/metal_30.tga
       blendfunc filter
       rgbGen identitylighting
}

}

I use this shader for bumpmapping. When i enter q3 I see a black plane.
my q3 version is 1.31
my light process uses these swithches:
-light -fast -fastgrid -super 2 -filter -patchshadows
my q3map vesion is q3map_2.3.33

what is the problem here?