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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Egg

File details

Details for the file simple_camera-0.3.0.tar.gz.

File metadata

  • Download URL: simple_camera-0.3.0.tar.gz
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/50.3.2 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.5

File hashes

Hashes for simple_camera-0.3.0.tar.gz
Algorithm Hash digest
SHA256 47c6f63767d4b68d29f2c1c7ea2c87754ec4251845c79070283bf0665818c0d6
MD5 bd8f4673b5eb340c39f0c1ad972e6ccd
BLAKE2b-256 6a823bcb7f533946430dc4a6f79b67d56554da376c68a7a47a469ca05f20f59e

See more details on using hashes here.

File details

Details for the file simple_camera-0.3.0-py3.8-linux-x86_64.egg.

File metadata

  • Download URL: simple_camera-0.3.0-py3.8-linux-x86_64.egg
  • Upload date:
  • Size: 263.1 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/50.3.2 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.5

File hashes

Hashes for simple_camera-0.3.0-py3.8-linux-x86_64.egg
Algorithm Hash digest
SHA256 f9e6ba24d960f67d338c297698f24cdb03212089f47ec2dfea8e757e776b4f30
MD5 666b31e25140b4debb80812337311956
BLAKE2b-256 8b0fd908f5f817e8ff0c5521f50abf9f96efa669eabb2e9f2427d5ebf49578b8

See more details on using hashes here.

Supported by

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