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

Uploaded Source

Built Distribution

py_raytrace-0.4.6-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: py-raytrace-0.4.6.tar.gz
  • Upload date:
  • Size: 3.9 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.6.tar.gz
Algorithm Hash digest
SHA256 9723ebdeffab79945bed55aaf04f176a06a1b4ba7f8dba498ab354c40d931044
MD5 fb0c65e416deda1f24597b863f0cbb60
BLAKE2b-256 42504e0cff347eaef9cc3c02762c84aa999143e1ac3395a601692bf2bfc2e3f6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: py_raytrace-0.4.6-py3-none-any.whl
  • Upload date:
  • Size: 4.4 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 094ba10aabd4a27c419848d30f7f940e67df5ba35d4b772048e2b7d67cd68807
MD5 d18935b62ef934c42d8d84434df4a748
BLAKE2b-256 db936c3edb471951282f9737458d466a6480372a54470fc754235f0f5a269173

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