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.
Metadata
Release files for sapphire-renderer 0.0.53
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sapphire_renderer-0.0.53.tar.gz | 14.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sapphire_renderer-0.0.53-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 40.0 kB
Release files / sapphire_renderer-0.0.53.tar.gz
| Download URL | sapphire_renderer-0.0.53.tar.gz |
|---|---|
| Size | 14.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9ffd96d628e18f439445c8bdffa19f07581b17999e591de963bc799a41b334c6
|
|
BLAKE2b-256 checksum How to use checksums |
87be64c5d73603be2a33e55a3bec430865f9fab70c184b85f934abfb52174c9c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.9.19
|
Release files / sapphire_renderer-0.0.53-py3-none-any.whl
| Download URL | sapphire_renderer-0.0.53-py3-none-any.whl |
|---|---|
| Size | 25.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
97c942c786b99858f9ab19ce07215af69da5ca79216c34b54b08072436e37d7b
|
|
BLAKE2b-256 checksum How to use checksums |
ad82a7d70e0f580c34e8f14a9fc91cd5647afbda363beb5dece03cac95470ff1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.9.19
|