Doom3 Relief Mapping
====================


This modifcation will not damage your Doom3 installation. It will just extract some textures from the game data pack and modify them to include depth information. All original files are mantained and you can quickly get back to original Doom3 by deleting the extracted files.


I implemented it just to test my relief mapping shader with nice quality game art. Some geometry will not look correct with relief mapping as the art for the game was not created for this effect. For correct use of the technique the edges of scene polygons should have no depth (depth=white). But as the depth maps wore created from the game normal maps this is not garranteeded.


For details about how relief mapping works refer to my shader contest submission at:

demo  -> http://www.shadertech.com/contest/#reliefmapping
paper -> http://doi.acm.org/10.1145/1053427.1053453


To install this modification:

- from your Doom3 instalation path create folder doom3\base\glprogs\

- copy file interaction.vfp to folder doom3\base\glprogs\

- drag and drop file doom3\base\pak004.pk4 into the tool normal2depth.exe

- wait for processing of all normal maps ( this will create folder doom3\base\textures )


To remove the modification and get back to original Doom3:

- delete the file doom3\base\glprogs\interaction.vfp
- delete the folder doom3\base\textures


You must select ULTRA QUALITY mode in order to have the calculated depth maps loaded (or else you will see no relief at all).

Relief mapping is much slower than standard normal mapping... recommend going down to 640x480 in order to get better FPS. In lower resolutions it is possible to play at resonable FPS.


Enjoy,
FPO (fpo021@hotmail.com)