Skip to main content

A package to easily render simple 3D scenes

Project description

Sapphire Renderer

Sapphire Renderer is a Python package that allows you to easily render simple 3D scenes. It provides a set of classes and functions to create and manipulate 3D objects, and to render them in a window.

Features

  • 3D Object Creation: Sapphire Renderer provides classes to create various 3D objects such as Torus, VertLineObject, etc. You can also create your own custom objects.

  • Camera Control: The package includes a Camera class that allows you to control the viewpoint from which the scene is rendered. You can move and rotate the camera in the 3D space.

  • Object Manipulation: You can add, remove, and update objects in the scene.

  • Rendering: The package provides a main rendering loop that continuously updates and renders the scene.

Installation

You can install Sapphire Renderer using pip:

pip install sapphire-renderer

Basic Usage

Here is a basic example of how to use Sapphire Renderer:

from sapphirerenderer import SapphireRenderer

# Create a renderer
renderer = SapphireRenderer(width=1000, height=1000, draw_axis=True)

# Add a Torus object to the scene
renderer.add_object("Torus")

# Start the rendering loop
renderer.render_loop()

In this example, we first create a SapphireRenderer instance. We then add a Torus object to the scene. Finally, we start the rendering loop which will continuously update and render the scene.

Documentation

For more detailed information on how to use Sapphire Renderer, please refer to the official documentation(WIP).

License

Sapphire Renderer is licensed under the MIT License.

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

sapphire_renderer-0.0.53.tar.gz (14.2 kB view details)

Uploaded Source

Built Distribution

sapphire_renderer-0.0.53-py3-none-any.whl (25.7 kB view details)

Uploaded Python 3

File details

Details for the file sapphire_renderer-0.0.53.tar.gz.

File metadata

  • Download URL: sapphire_renderer-0.0.53.tar.gz
  • Upload date:
  • Size: 14.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.9.19

File hashes

Hashes for sapphire_renderer-0.0.53.tar.gz
Algorithm Hash digest
SHA256 9ffd96d628e18f439445c8bdffa19f07581b17999e591de963bc799a41b334c6
MD5 1f4c8238f3685ac358e395158bfb11a1
BLAKE2b-256 87be64c5d73603be2a33e55a3bec430865f9fab70c184b85f934abfb52174c9c

See more details on using hashes here.

File details

Details for the file sapphire_renderer-0.0.53-py3-none-any.whl.

File metadata

File hashes

Hashes for sapphire_renderer-0.0.53-py3-none-any.whl
Algorithm Hash digest
SHA256 97c942c786b99858f9ab19ce07215af69da5ca79216c34b54b08072436e37d7b
MD5 de5af1992548189c3ef5291b5869f74c
BLAKE2b-256 ad82a7d70e0f580c34e8f14a9fc91cd5647afbda363beb5dece03cac95470ff1

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