No project description provided
Project description
Simple Camera
Minimum dependencies library for fast rendering of triangle meshes.
Setup
Install with pip:
foo@bar:~$ pip install simple-camera
or manually:
Inside cloned repository run the following:
foo@bar:~$ pip install -r requirements.txt
foo@bar:~$ python setup.py install
Usage
from simple_camera import render_perspective_camera
img = render_perspective_camera(vertices, faces,
width=256, height=256,
angles=[0,0,0], translation=[0,0,0],
scale=0.75)
Image.fromarray(img)
Acknowledgements
- This library is based on Face3D code.
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
simple_camera-0.3.0.tar.gz
(10.1 kB
view hashes)
Built Distribution
Close
Hashes for simple_camera-0.3.0-py3.8-linux-x86_64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | f9e6ba24d960f67d338c297698f24cdb03212089f47ec2dfea8e757e776b4f30 |
|
MD5 | 666b31e25140b4debb80812337311956 |
|
BLAKE2b-256 | 8b0fd908f5f817e8ff0c5521f50abf9f96efa669eabb2e9f2427d5ebf49578b8 |