An open API service indexing awesome lists of open source software.

https://github.com/cansik/pymesh2depthmap

A simple tool to create depth-maps out of 3d meshes.
https://github.com/cansik/pymesh2depthmap

Last synced: about 1 month ago
JSON representation

A simple tool to create depth-maps out of 3d meshes.

Awesome Lists containing this project

README

        

# pymesh2depthmap
A simple tool to create depth-maps out of 3d meshes by using raytracing.

![mesh](output/color.png "Mesh") ![depth](output/depth.png "Depth")

### Installation

#### Conda
Conda is recommended to install pyembree (speeds up rendering).

```
conda create -n venv_pym2d python=3.7
conda activate venv_pym2d

# for linux
conda config --add channels conda-forge
conda install -c conda-forge pyembree

# manuall install for windows
git clone https://github.com/scopatz/pyembree.git
cd pyembree
conda install cython numpy
conda install -c conda-forge embree
set INCLUDE=%CONDA_PREFIX%\Library\include
set LIB=%CONDA_PREFIX%\Library\lib
python setup.py install --prefix=%CONDA_PREFIX%
```

And install the necessary pip packages as described following.

#### PIP

It's also possible to just install the pip packages.

```
pip install -r requirements.txt
```

### Using

For now this was just a quick demo. Parameter parsing and so on will be added later.