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.com/pranavnasrani/)

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.3.0.tar.gz (4.0 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: py-raytrace-0.3.0.tar.gz
  • Upload date:
  • Size: 4.0 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.3.0.tar.gz
Algorithm Hash digest
SHA256 d9b2e592250587c0f591cf8c3ac7dc8b942cb6029193040865b1d06cfb9f3386
MD5 c0458e61b048f1c897a1c47518acd913
BLAKE2b-256 1b1224ef4814936dd3bd8cda2bc2932bb389f5d45740dd03bf6d0fdd56050b27

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