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.

Source Distribution

height2obj-0.9.0.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

height2obj-0.9.0-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file height2obj-0.9.0.tar.gz.

File metadata

  • Download URL: height2obj-0.9.0.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0

File hashes

Hashes for height2obj-0.9.0.tar.gz
Algorithm Hash digest
SHA256 a6b48fe1d5b906e3ef95ec3a97414880bbe0e57a43fa2b123bbdb85fd3440938
MD5 91db123efe8124a3aa98aaa96a44debf
BLAKE2b-256 8adce1edb58cdb3a627470280bb5633dfc78f86e7bc8c181d9ddc9f602b48922

See more details on using hashes here.

File details

Details for the file height2obj-0.9.0-py3-none-any.whl.

File metadata

  • Download URL: height2obj-0.9.0-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0

File hashes

Hashes for height2obj-0.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0fe90933ce76bd65a722498ca96ce8636f0a53e6183e98a988e0332eb6bc8398
MD5 fc609d982eebbbeda007de8995eb3b01
BLAKE2b-256 d3eef8a2c97ff554345bca4729b885c09eaf61cda24e04da56c0fa6b5507bd56

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page