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 | RSS feed
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 hashes)
Built Distribution
Close
Hashes for height2obj-0.9.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0fe90933ce76bd65a722498ca96ce8636f0a53e6183e98a988e0332eb6bc8398 |
|
MD5 | fc609d982eebbbeda007de8995eb3b01 |
|
BLAKE2b-256 | d3eef8a2c97ff554345bca4729b885c09eaf61cda24e04da56c0fa6b5507bd56 |