Skip to main content

Converts heightmap to 3d mesh.

Project description

hight2obj

Converts a heightmap to a 3d mesh.

Usage

hight2obj SOURCE DESTINATION SCALE

Parameters

  • SOURCE: Filename of the source hightmap. This must be a 8 bpp greyscale bitmap-type image. PNG is tested an recommended.
  • DESTINATION: Filename of the destination file into which the 3d data is written.
  • SCALE: Scale factor for the z-coordinate. This value is the maximum height of the resulting mesh relative to the short side side of the SOURCE image.

Remarks

This script uses the pillow library to load the image. Output format Wavefront OBJ.

This only creates a 3d surface, no solid block.

Make shure to install this package via pip to allow comfortable use in console.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for height2obj, version 0.9.0
Filename, size File type Python version Upload date Hashes
Filename, size height2obj-0.9.0-py3-none-any.whl (3.4 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size height2obj-0.9.0.tar.gz (2.8 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page