Howto:Use the normal map effect in aircraft: Difference between revisions

Add information about inverting Y axis for proper OpenGL normal maps
(Add information about inverting Y axis for proper OpenGL normal maps)
Line 21: Line 21:
# Once you are satisfied with your height map, delete the background layer, increase the opacity back to 100% and save it as a new file.
# Once you are satisfied with your height map, delete the background layer, increase the opacity back to 100% and save it as a new file.
# Now we need to convert the height map to a normal map. To do this, use Filters->Map->Normalmap. If this is not present, you haven't installed the normalmap plugin as described above.
# Now we need to convert the height map to a normal map. To do this, use Filters->Map->Normalmap. If this is not present, you haven't installed the normalmap plugin as described above.
# The default options will work fine. However, the author of the plugin recommends the Prewitt 5x5 filter. Once you are happy with the options, press OK, and your image should turn generally blue, but with some strange colours around the areas that you coloured white. This is the normal map.
# The default options will work fine, except that you should invert the Y axis (as OpenGL vectors origin is the bottom left rather than top left). However, the author of the plugin recommends the Prewitt 5x5 filter. Once you are happy with the options, press OK, and your image should turn generally blue, but with some strange colours around the areas that you coloured white. This is the normal map.
# Save off the normal map as a new png file in your aircraft directory, remembering the correct path.
# Save off the normal map as a new png file in your aircraft directory, remembering the correct path.