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.13.tar.gz (6.4 MB 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.13-py3-none-any.whl (35.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fdray-0.1.13.tar.gz
  • Upload date:
  • Size: 6.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.7.3

File hashes

Hashes for fdray-0.1.13.tar.gz
Algorithm Hash digest
SHA256 076860e32f8faf9bad993070d7ff37f37b7a11ad94606498e00144bcda57d6df
MD5 8b3b1269459d4e5e6cd24b84e2a0924d
BLAKE2b-256 d3547bd9f639fdf840c798aad0d0b95333d20b050357d3aa1b6b0c06e9ef7981

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fdray-0.1.13-py3-none-any.whl
  • Upload date:
  • Size: 35.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.7.3

File hashes

Hashes for fdray-0.1.13-py3-none-any.whl
Algorithm Hash digest
SHA256 a882266598fa9008ff7e2969f8863e923f73e799da073a2cbc3b74486af19366
MD5 bdfdc2ebfca8c63f58149e2087f56946
BLAKE2b-256 91418bb796fe77a7bc8d9991c1918b4d60e2ee8bd97db8f4b8904b1539b80a88

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