Skip to main content

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)

screenshot

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)

Uploaded Source

Built Distribution

simple_camera-0.3.0-py3.8-linux-x86_64.egg (263.1 kB view hashes)

Uploaded Source

Supported by

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