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

Uploaded Source

Built Distribution

py_raytrace-0.4.4-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: py-raytrace-0.4.4.tar.gz
  • Upload date:
  • Size: 3.8 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.4.tar.gz
Algorithm Hash digest
SHA256 32d40d375a2044be5f2ba0256290874f5cd51a1c336f692247957404469813ef
MD5 86fb5ac8a184f5bb87763cf300f37c1e
BLAKE2b-256 86999758b5a1cc19e878a09a75de1afc4b09e78ea94ffc89bc13cff3e243de3e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: py_raytrace-0.4.4-py3-none-any.whl
  • Upload date:
  • Size: 4.3 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 e694b6a02a2b73d4610ac8effa59537c76f2952eb7c92952d89d04fc495e5e28
MD5 2e10b8c6f7bd1058875e15f5a86bec43
BLAKE2b-256 ea01eb41f95e86d182df5391ed670cb43002c6c6651818ab80eaf832664c6bd9

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