-Surface's Bump Mapping Tutorial
-Q3A Shader Manual
-Joe Kari's external highrest lightmap tutorial
In this tutorial I'll be using the GIMP (I'm using v2.4.5) with the the GIMP normal Map Plugin (I'm using v1.2.0 from Ubuntu Repos), in addition to normal smoking guns mapping tools (I'm using Zero Radiant & the SG modified q3map2).
- Open up your Smokin' Guns texture directory, and create a folder named bump
note: The texture folder is commonly C:\Program Files\Smokin' Guns\smokinguns\textures\ on windows or ~/SmokinGuns/smokinguns/textures on linux
- Save this texture, named archedwalk_tex.jpg, in your new bump folder:
- Open archedwalk_tex.jpg in the Gimp
- Turn the image to a greyscale image by navigating the menus:
Image > Mode > Greyscale
The image should now look like this:
- Adjust the brightness and contrast of image
Colours > Brightness-Contrast...
- Set to 35 Brightness, 105 Contrast. The image should now look like this:
- Turn the image back into RGB
Image > Mode > RGB
- Apply the Normalmap Filter:
Filter > Map > Normalmap
note: if Normalmap is grey you haven't turned your image back into RGB mode
- In the new window set Filter to 5x5. and scale to 10.0:
- Hit ok and wait well GIMP applys the filter. When it finishes the image should look like this:
- Save the image as archedwalk_map.jpg in the \texture\bump\ folder.
note: you can create a shader following the surface instructions, but I think it looks alot prettier if you use joe kari's external lightmap like in this tutorial.
- Create an a file in your scripts folder named bump.shader
note: The scripts folder is commonly C:\Program Files\Smokin' Guns\smokinguns\scripts\ on windows or ~/SmokinGuns/smokinguns/scripts on linux
- Put the following into bump.shader file:
- Code: Select all
q3map_lightmapSize 512 512
note: the line blendFunc filter, can use alot of other settings depending on how you've made your normalmap & texture. See Quake III Arena Shader Manual Section 6.2 Blend Functions for more information.
- There is now a new texture group in your map editor called bump, make sure you select "archwalk' if you want the bump mapped version, as others are just the plain image files.
- The Finished work in use on a very simple map. Click to enlarge.
-The script i used to compile was:
- Code: Select all
wine ~/SmokinGuns/smokinguns/compiler/q3map2.exe -meta -v -fs_basepath "E:\SmokinGuns" "E:\SmokinGuns\smokinguns\maps\bump.map"
wine ~/SmokinGuns/smokinguns/compiler/q3map2.exe -vis -v -fs_basepath "E:\SmokinGuns" "E:\SmokinGuns\smokinguns\maps\bump.map"
wine ~/SmokinGuns/smokinguns/compiler/q3map2.exe -light -v -fs_basepath "E:\SmokinGuns" "E:\SmokinGuns\smokinguns\maps\bump.map"
Important note: Please see Joe Kari's tutorial about external lightmaps Located here or you probably won't be able to correctly package your map when your finished.
Important note: Originally when I was writing this using tga files, q3map would flip the normalmap in the light compile. The only way I could correct this was to manually flip the normalmap image, outlined as follows.
Optional steps for problems (see note above)
- Invert the image horizontally & vertically.
Image > Transform > Flip Horizontally
Image > Transform > Flip Vertically
- The image should now look like this:
The 5 texture images ( 1, 2, 3, 4, & 5 ) and all text used in this post are licensed under Creative Commons Attribution 2.5 Canada