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

Uploaded Source

Built Distribution

py_raytrace-0.5.1-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: py-raytrace-0.5.1.tar.gz
  • Upload date:
  • Size: 4.3 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.5.1.tar.gz
Algorithm Hash digest
SHA256 4a1d7f8460679c27e7360feb520e54d2dbfcb28d82f74a25244e25e8d3de2d84
MD5 f2a1784ab32cb3687d1b19dc05c76f9d
BLAKE2b-256 f76a329028109a81e108aa13157e73f7824fa4e6191c89fcdc325586307fa57c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: py_raytrace-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 4.9 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.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 46da072fb697405d13b09df969717c4d13a262682b7fabba601c23ae6890c806
MD5 9fb81afe94470c388d3117b614dd2475
BLAKE2b-256 bd0f9c1f3fea3b55f2fe6813558d3212c27265ce5c03f7c6d1e00d5062cfc580

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