File information
Created by
ApricotCroissantUploaded by
ApricotCroissantVirus scan
Mod articles
-
Converting Normal Maps to Height Maps Using Poisson Integration and Multi-Scale Enhancement
I've made a program that converts a normal map texture (DirectX DDS supported directly) into a height map image (PNG)
Here is a high-level overview of my algorithm:
Loading the Normal Map: The normal map image is loaded and converted to a floating-point representation in the range .
Preprocessing the Normal Map: The normal map is tiled into a larger map to handle boundary conditions more effectively during the processing.
Defining Subregions: The larger normal map is divided into smaller subregions to allow for parallel processing.
Computing Height Maps for Subregions: Each subregion's height map is computed using Poisson integration, which involves solving a large sparse linear system.
What is the Poisson...