Skip to content

Generating normal maps using both 'photometric stereo' and 'height map to normal map' methods

License

Notifications You must be signed in to change notification settings

mofthedev/photoscan-normalmap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Photoscan for normalmap

Generating normal maps using both 'photometric stereo' and 'height map to normal map' methods

This Python code converts photometric stereo images like these:

up down right left

to normal map textures like this:

normalmap

You can use just hm2nm(img) function to create a normal map from a single RGB image, or just ps2nm(imgU, imgD, imgR, imgL) to create more realistic normal maps, or combine them together to create normal maps with much more detailed edges.

Also overlay blend mode is implemented to combine two normal maps.

References

I was able to code these Python functions thanks to Ryan Clark who wrote Normal Map Photography.

About

Generating normal maps using both 'photometric stereo' and 'height map to normal map' methods

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages