Skip to main content

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)

Source distribution for sapphire-renderer 0.0.53
File Size Uploaded
sapphire_renderer-0.0.53.tar.gz 14.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sapphire-renderer 0.0.53
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.0.53 This release

2 release files

0.0.52

2 release files

0.0.51

2 release files

0.0.49

2 release files

0.0.48

2 release files

0.0.47

2 release files

0.0.46

2 release files

0.0.45

2 release files

0.0.44

2 release files

0.0.43

2 release files

0.0.42

2 release files

0.0.41

2 release files

0.0.40

2 release files

0.0.39

2 release files

0.0.38

2 release files

0.0.37

2 release files

0.0.36

2 release files

0.0.35

2 release files

0.0.34

2 release files

0.0.33

2 release files

0.0.32

2 release files

0.0.31

2 release files

0.0.30

2 release files

0.0.29

2 release files

0.0.28

2 release files

0.0.27

2 release files

0.0.26

2 release files

0.0.17

2 release files

0.0.16

2 release files

0.0.15

2 release files

0.0.14

2 release files

0.0.13

2 release files

0.0.12

2 release files

0.0.11

2 release files

0.0.10

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page