Skip to main content

A simple ray tracing application

Project description

Raytrace

Py-Raytrace is a simple ray tracing application that creates realistic images by simulating the behavior of light rays in a virtual scene.

Installation

You can install Raytrace using pip:

pip install py-raytrace
Usage
After installation, you can run Py-Raytrace from the command line:
ray

or

raytrace

or

py-raytrace

This command will launch the ray tracing process and generate a rendered image based on the provided scene and camera parameters.

Configuration

Raytrace allows you to configure the scene and camera parameters in the raytrace.py script. You can customize the positions and properties of spheres, lighting, and the floor to create different scenes.

Additionally, the script provides a graphical interface using matplotlib with sliders to adjust the camera angles interactively.

Dependencies

Py-Raytrace depends on the following Python packages:

numpy
Pillow (PIL)
tqdm
matplotlib

These dependencies will be automatically installed when you install Py-Raytrace using pip.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Author

Pranav A: Github

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

py-raytrace-0.4.3.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

py_raytrace-0.4.3-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file py-raytrace-0.4.3.tar.gz.

File metadata

  • Download URL: py-raytrace-0.4.3.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for py-raytrace-0.4.3.tar.gz
Algorithm Hash digest
SHA256 4144f2f14347fe6bf45f523d2aae24b983041d6985b6904a94ab4d7d170e35f6
MD5 851ac23833baa94fedcf7ecac543c8ce
BLAKE2b-256 acc0c32683f4c8b01abd8457293060eae209c9cab19ca1790f046a11f0d0054a

See more details on using hashes here.

File details

Details for the file py_raytrace-0.4.3-py3-none-any.whl.

File metadata

  • Download URL: py_raytrace-0.4.3-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for py_raytrace-0.4.3-py3-none-any.whl
Algorithm Hash digest
SHA256 954e1c49ae7f4f59c4f3c629fd9b6c390053295a0d047cfefc11e7c265c7dcdb
MD5 e6457ca6bc270d4d1c2cf1b2820ec1b3
BLAKE2b-256 2ab03b51cff70dc904552537852f1584064416a9db1f9fa6cac7b211846790a6

See more details on using hashes here.

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