Skip to main content

A Python interface for POV-Ray (Persistence of Vision Raytracer)

Project description

fdray - Python Ray Tracing Interface for POV-Ray

PyPI Version Python Version Build Status Coverage Status

fdray is a Python library that provides a clean interface to POV-Ray, making it easy to create and render 3D scenes programmatically.

Features

  • Simple Scene Description: Express 3D scenes in clean, readable Python code
  • Pythonic API: Natural integration with Python's ecosystem
  • POV-Ray Integration: Seamless integration with a high-quality rendering engine
  • Jupyter Support: Interactive scene development in Jupyter notebooks

Installation

pip install fdray

Requires POV-Ray to be installed:

  • Linux: sudo apt-get install povray
  • macOS: brew install povray
  • Windows: Download from POV-Ray website

Quick Start

from fdray import Camera, Color, LightSource, Scene, Sphere

# Create a simple scene
scene = Scene(
    Camera(longitude=20, latitude=30),
    LightSource(0, Color("white")),  # 0: at camera location
    Sphere((0, 0, 0), 1, Color("red")),
)

# Render the scene
scene.render(width=800, height=600)

Documentation

For detailed documentation and examples, visit our documentation site.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

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

Acknowledgments

  • POV-Ray team for their excellent ray tracing engine
  • The Python community for inspiration and support

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

fdray-0.1.17.tar.gz (28.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fdray-0.1.17-py3-none-any.whl (35.6 kB view details)

Uploaded Python 3

File details

Details for the file fdray-0.1.17.tar.gz.

File metadata

  • Download URL: fdray-0.1.17.tar.gz
  • Upload date:
  • Size: 28.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.27 {"installer":{"name":"uv","version":"0.9.27","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for fdray-0.1.17.tar.gz
Algorithm Hash digest
SHA256 910d1423518692aeb85c66ade7b0e37b9c2b862c7e9ce0bd0cd7aa7d6444a348
MD5 1024f03be9f1b5587f9ed4ebaa14fc55
BLAKE2b-256 ea19007d65d926fa37cf6be72fe9e63f6c74677d372f0550991bdee5744d32f4

See more details on using hashes here.

File details

Details for the file fdray-0.1.17-py3-none-any.whl.

File metadata

  • Download URL: fdray-0.1.17-py3-none-any.whl
  • Upload date:
  • Size: 35.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.27 {"installer":{"name":"uv","version":"0.9.27","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for fdray-0.1.17-py3-none-any.whl
Algorithm Hash digest
SHA256 e667a9ad6667bde4877bc1c8ca5aea4e298af68a333a062d87c585b17ab39d2b
MD5 88ebee07150630ed66db3cf843a34999
BLAKE2b-256 7b9de571cdf249fefa02a8f42a76a8491fc84ef14dfa6e704418a47891cec4d5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page