GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - JohnLeber/HGT-To-Normal: CUDA code to create normal maps from 1 arc-second resolution HGT/SRTM1 files using the GPU.

BranchesTags
Open more actions menu

Latest commit

 

History

41 Commits
41 Commits

Folders and files

NameName
Last commit message
Last commit date
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
DepthToNormal.sln
DepthToNormal.sln
 
 
DepthToNormal.vcxproj
DepthToNormal.vcxproj
 
 
License
License
 
 
NormalMapCUDA.jpg
NormalMapCUDA.jpg
 
 
NormalMapCUDA2.jpg
NormalMapCUDA2.jpg
 
 
README.md
README.md
 
 
ReliefMap.jpg
ReliefMap.jpg
 
 
ReliefMap2.jpg
ReliefMap2.jpg
 
 
kernel.cu
kernel.cu
 
 

Repository files navigation

HGT-To-Normal

Sample CUDA code to create a normal map from a high resolution HGT file.

The normal map can be used to help create relief maps (bottom image). The code expects a high resolution HGT file ( 1 arc-second ). These files are 3601 by 3601 and contain the height in meters stored as a 16 bit value. The output file is a 3600 by 3600 bitmap file containing the normals in tangent space. For more information about HGT files see my other project.

The code should be reasonably easy to adapt to height maps and depth maps of different sizes.

For a CPU based approach to creating normal maps from HGT files, see my other HGT Relief Map project.

The images below show a normal map and relief map (top and bottom images respectively) of the S44E170.hgt file (West Coast/Southern Alps of New Zealand).

alt text alt text

More samples, in this case Tongariro National Park S40E175.hgt

alt text alt text

About

CUDA code to create normal maps from 1 arc-second resolution HGT/SRTM1 files using the GPU.

Topics

cudahgtsrtm-datasrtm1

Resources

Readme
CC0-1.0 license
Activity

Stars

1 star

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.