home *** CD-ROM | disk | FTP | other *** search
/ GameStar Special 2004 September / GSSH0904CD2.iso / Doom3 / Mods / parallaxmappingmod / parallaxmappingmod.exe / tutorial.txt < prev   
Text File  |  2004-08-14  |  4KB  |  114 lines

  1. ================================================
  2.  
  3.           Parallax Mapping Mod v1.0
  4.  
  5.  Custom Parallax Mapped Level Textures Tutorial
  6.  
  7. ================================================
  8. by Junkguy
  9.  
  10.  
  11. Parallax mapping requires the use of height maps to determine how
  12. much offset is applied to different parts of a texture.  Since most 
  13. of Doom3's textures do not have any height maps, this mod uses the
  14. bump maps (or "normal maps") for height information.  
  15.  
  16. In this mod, the red and green color channels in the normal maps are still 
  17. used for regular bump mapping, but the mod uses the inverse of the 
  18. blue channel as a heightmap.
  19.  
  20. With the default normal maps in Doom3, this technique will cause angled 
  21. parts of the normal map to be bumped out, while the flat parts remain low.  
  22. This is what I call simulated parallax mapping. It looks great for most 
  23. surfaces, and it is all handled by the mod's pixel shader code.
  24.  
  25. True parallax mapping occurs when you put the actual correct heightmap 
  26. into the blue channel of the normal map.  However, ensure that you invert 
  27. it.  The low elevations in the blue channel's heightmap will then be almost 
  28. white, while the higher parts will be dark.
  29.  
  30. This is what you should do if you want your level's custom textures to 
  31. take advantage of this mod's parallax mapping.  Please note, however, 
  32. that doing this will require the player to be using this mod, otherwise 
  33. the custom textures will be incorrectly lit.
  34.  
  35. If you don't want to make your own height maps for your textures, the 
  36. mod will automatically apply simulated parallax mapping.
  37.  
  38.  
  39. So now that you understand how the mod works, you can make your level's 
  40. textures take advantage of true parallax mapping.  The following explains 
  41. how to put a heightmap into the normal map's blue channel if you don't 
  42. know how.
  43.  
  44. --------------------------------------------------------------------
  45.  
  46. See http://www.doom3world.org/phpbb2/viewtopic.php?t=2659 for basic
  47. tutorials on how to make regular textures and bump maps for Doom 3.
  48.  
  49. 1. 
  50. Make a greyscale height map for your texture.  For a regular height 
  51. map like this, dark is low elevation and white is high elevation.  Make 
  52. sure that the height map isn't too extreme (like pure white and pure 
  53. black), otherwise it may look strange in game.
  54.  
  55. ---------
  56.  
  57. NOTE
  58.  
  59. If you have a normal map, and want to create the heightmap for 
  60. it, you can use the Normal Map plugin from step 2, and 
  61. use its "Convert to Height" option with the Scale setting of around 1.
  62. If the heightmap looks correct, go to step 3.  If the heightmap looks
  63. already inverted, go to step 4 instead.  If the heightmap looks 
  64. completely messed up, go back to the normal map do the following:
  65.  
  66. You can use the default blue channel of the normal map, invert it 
  67. so its mostly black, and manually fill in brighter greys for the 
  68. higher elevations.  Re-invert its colors again, and you're done!
  69. You can then skip the rest of this tutorial.
  70.  
  71. ----------
  72.  
  73. 2. 
  74. If you don't already have a normal map, create the normal map from the 
  75. height map using Nvidia's Normal Map Filter plugin for Photoshop 
  76. (get it at http://developer.nvidia.com/object/nv_texture_tools.html ).
  77. You might need to use a large Scale setting of 100 or 1000.  
  78. Don't lose the original height map!
  79.  
  80. 3. 
  81. Invert the colors of the original heightmap, so that white is low 
  82. elevation and dark is high elevation
  83.  
  84. 4. 
  85. Copy the contents of the inverted heightmap (Using Photoshop, 
  86. select all and copy)
  87.  
  88. 5. 
  89. In the normal map, go to the blue color channel (Using Photoshop, click 
  90. Window -> Channels, and click the Blue channel in the channels window)
  91.  
  92. 6. 
  93. Paste the inverted heightmap into the blue channel of the normal map
  94.  
  95. 7. 
  96. Save the normal map
  97.  
  98.  
  99. That's it! Now you can use your new normalmap/heightmap in your level,
  100. and it will have a nice parallax effect when you use this mod! Please
  101. note that you may not include this mod's shader in your level without
  102. my permission.  Remember that players MUST use this mod for the custom 
  103. textures to appear correctly, so make sure you mention this fact in the 
  104. level's description. I would appreciate it if you email me at 
  105. junkguy@gmail.com to tell me about it, so I can take a look! :)
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.