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


Release history Release notifications

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
height2obj-0.9.0-py3-none-any.whl (3.4 kB) Copy SHA256 hash SHA256 Wheel py3 Sep 18, 2018
height2obj-0.9.0.tar.gz (2.8 kB) Copy SHA256 hash SHA256 Source None Sep 18, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page