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.16.tar.gz (28.4 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.16-py3-none-any.whl (35.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fdray-0.1.16.tar.gz
  • Upload date:
  • Size: 28.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.7

File hashes

Hashes for fdray-0.1.16.tar.gz
Algorithm Hash digest
SHA256 5bbd08136ee437dcb97aa8e00c0cb3e7de0f83791d0e65561bb38b8816335403
MD5 5d6ab1a8d669574d82dc142d31f73466
BLAKE2b-256 387b4df82af4df07f0ccd50ba5bf617fd8bae48601b6694ed602dc2cf56587f5

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for fdray-0.1.16-py3-none-any.whl
Algorithm Hash digest
SHA256 927c238b0241809d600dc7ccf5254bf7a63d7fa8402d37fc75540f13da0d842a
MD5 35214c7e05835b028e0f26a05302d2fa
BLAKE2b-256 65bc8d8fbe02115be88f6d0a9417327cac49ff0ce2847ae5ceaa6d888fa97589

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