Skip to main content

Iridescence

Iridescence is a light-weight visualization library for rapid prototyping of 3D algorithms. This library is designed for accelerating personal research and development projects (mainly focuing on point-cloud-related algorithms) and is NOT intended to be a general-purpose visualization library with rich rendering capabilities.

Documentation (en), Documentation (日本語), API(C++), API(Python)

ppa PyPI - Version Build on Ubuntu 22.04 / 24.04 and Windows

Features

What this library provides:

  • An easy-to-use 3D visualization framework (inpaticular suitable for rendering point clouds)
  • Tightly integrated Dear ImGui interfaces for rapid UI design

What this library does NOT provide:

  • Realistic rendering and shading
  • Rich textured 3D mesh rendering

See documentation for details.

Dependencies

Installation

C++ : Install from PPA (Ubuntu)

# Install from PPA
sudo add-apt-repository -y ppa:koide3/iridescence
sudo apt install libiridescence-dev

Python : Install from PyPI (Ubuntu and Windows)

Note : Source installation is required for Python 3.14.

# Install from PyPI
pip install pyridescence
Install from source

C++ : Install from source (Ubuntu)

# Install dependencies
sudo apt-get install -y libglm-dev libglfw3-dev libpng-dev libjpeg-dev libeigen3-dev

# Build and install Iridescence
git clone https://github.com/koide3/iridescence --recursive
mkdir iridescence/build && cd iridescence/build
cmake ..
make -j
sudo make install

Python : Install from source

git clone https://github.com/koide3/iridescence --recursive
cd iridescence
pip install .

Usage

C++ : Use Iridescence in your cmake project

# Find package
find_package(Iridescence REQUIRED)

# Add include dirs and link libraries
add_executable(your_program
  src/your_program.cpp
)
target_link_libraries(your_program
  Iridescence::Iridescence
)

C++ : Minimum example

C++:

#include <glk/primitives/primitives.hpp>
#include <guik/viewer/light_viewer.hpp>

int main(int argc, char** argv) {
  // Create a viewer instance (global singleton)
  auto viewer = guik::LightViewer::instance();

  float angle = 0.0f;

  // Register a callback for UI rendering
  viewer->register_ui_callback("ui", [&]() {
    // In the callback, you can call ImGui commands to create your UI.
    // Here, we use "DragFloat" and "Button" to create a simple UI.
    ImGui::DragFloat("Angle", &angle, 0.01f);

    if (ImGui::Button("Close")) {
      viewer->close();
    }
  });

  // Spin the viewer until it gets closed
  while (viewer->spin_once()) {
    // Objects to be rendered are called "drawables" and managed with unique names.
    // Here, solid and wire spheres are registered to the viewer respectively with
    // the "Rainbow" and "FlatColor" coloring schemes.
    // The "Rainbow" coloring scheme encodes the height of each fragment using the
    // turbo colormap by default.
    Eigen::AngleAxisf transform(angle, Eigen::Vector3f::UnitZ());
    viewer->update_drawable("sphere", glk::Primitives::sphere(), guik::Rainbow(transform));
    viewer->update_drawable("wire_sphere", glk::Primitives::wire_sphere(), guik::FlatColor({0.1f, 0.7f, 1.0f, 1.0f}, transform));
  }

  return 0;
}

Python : Minimum example

The Python package ships a usage guide for coding agents (AGENTS.md) along with type stubs and examples in the package directory.

#!/usr/bin/python3
import numpy
from scipy.spatial.transform import Rotation

from pyridescence import *

# Create a viewer instance (global singleton)
viewer = guik.LightViewer.instance()

angle = 0.0

# Define a callback for UI rendering
def ui_callback():
  # In the callback, you can call ImGui commands to create your UI.
  # Here, we use "DragFloat" and "Button" to create a simple UI.

  global angle
  _, angle = imgui.drag_float('angle', angle, 0.01)

  if imgui.button('close'):
    viewer.close()

# Register a callback for UI rendering
viewer.register_ui_callback('ui', ui_callback)

# Spin the viewer until it gets closed
while viewer.spin_once():
  # Objects to be rendered are called "drawables" and managed with unique names.
  # Here, solid and wire spheres are registered to the viewer respectively with
  # the "Rainbow" and "FlatColor" coloring schemes.
  # The "Rainbow" coloring scheme encodes the height of each fragment using the
  # turbo colormap by default.
  transform = numpy.identity(4)
  transform[:3, :3] = Rotation.from_rotvec([0.0, 0.0, angle]).as_matrix()
  viewer.update_drawable('sphere', glk.primitives.sphere(), guik.Rainbow(transform))
  viewer.update_drawable('wire_sphere', glk.primitives.wire_sphere(), guik.FlatColor(0.1, 0.7, 1.0, 1.0, transform))

example_01

See documentation for details.

Some use examples in my academic works

ral2021 iros2022

License

This package is released under the MIT license.

Metadata

Release files for pyridescence 1.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyridescence 1.1.3
File Size Uploaded Provenance Actions
pyridescence-1.1.3.tar.gz 5.7 MB Without provenance Details for pyridescence-1.1.3.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for pyridescence 1.1.3
File Actions
pyridescence-1.1.3-cp314-cp314-win_amd64.whl CPython 3.14 CPython 3.14 Windows x86-64 Details for pyridescence-1.1.3-cp314-cp314-win_amd64.whl
pyridescence-1.1.3-cp314-cp314-manylinux_2_28_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.28+ x86-64 Details for pyridescence-1.1.3-cp314-cp314-manylinux_2_28_x86_64.whl
pyridescence-1.1.3-cp314-cp314-manylinux_2_28_aarch64.whl CPython 3.14 CPython 3.14 Linux glibc 2.28+ ARM64 Details for pyridescence-1.1.3-cp314-cp314-manylinux_2_28_aarch64.whl
pyridescence-1.1.3-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for pyridescence-1.1.3-cp313-cp313-win_amd64.whl
pyridescence-1.1.3-cp313-cp313-manylinux_2_28_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.28+ x86-64 Details for pyridescence-1.1.3-cp313-cp313-manylinux_2_28_x86_64.whl
pyridescence-1.1.3-cp313-cp313-manylinux_2_28_aarch64.whl CPython 3.13 CPython 3.13 Linux glibc 2.28+ ARM64 Details for pyridescence-1.1.3-cp313-cp313-manylinux_2_28_aarch64.whl
pyridescence-1.1.3-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for pyridescence-1.1.3-cp312-cp312-win_amd64.whl
pyridescence-1.1.3-cp312-cp312-manylinux_2_28_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.28+ x86-64 Details for pyridescence-1.1.3-cp312-cp312-manylinux_2_28_x86_64.whl
pyridescence-1.1.3-cp312-cp312-manylinux_2_28_aarch64.whl CPython 3.12 CPython 3.12 Linux glibc 2.28+ ARM64 Details for pyridescence-1.1.3-cp312-cp312-manylinux_2_28_aarch64.whl
pyridescence-1.1.3-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for pyridescence-1.1.3-cp311-cp311-win_amd64.whl
pyridescence-1.1.3-cp311-cp311-manylinux_2_28_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.28+ x86-64 Details for pyridescence-1.1.3-cp311-cp311-manylinux_2_28_x86_64.whl
pyridescence-1.1.3-cp311-cp311-manylinux_2_28_aarch64.whl CPython 3.11 CPython 3.11 Linux glibc 2.28+ ARM64 Details for pyridescence-1.1.3-cp311-cp311-manylinux_2_28_aarch64.whl
pyridescence-1.1.3-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details for pyridescence-1.1.3-cp310-cp310-win_amd64.whl
pyridescence-1.1.3-cp310-cp310-manylinux_2_28_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.28+ x86-64 Details for pyridescence-1.1.3-cp310-cp310-manylinux_2_28_x86_64.whl
pyridescence-1.1.3-cp310-cp310-manylinux_2_28_aarch64.whl CPython 3.10 CPython 3.10 Linux glibc 2.28+ ARM64 Details for pyridescence-1.1.3-cp310-cp310-manylinux_2_28_aarch64.whl

Total release size: 62.9 MB

Release files / pyridescence-1.1.3.tar.gz

Download URL pyridescence-1.1.3.tar.gz
Size 5.7 MB
Tags Source
SHA-256 checksum
How to use checksums
c64fd2b5ec1f807b7979bc93845e9d86076cd1813006f20f5965b41e1f174e2b
BLAKE2b-256 checksum
How to use checksums
dfc90411c9b6dab0383ba474188d4d3267cb87fae3cd2cf2b842d0d31a7ee9ce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / pyridescence-1.1.3-cp314-cp314-win_amd64.whl

Download URL pyridescence-1.1.3-cp314-cp314-win_amd64.whl
Size 3.0 MB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
0e439989320528a60eccfce87a9967ddfe58ddf34054c38b4570b93531f152eb
BLAKE2b-256 checksum
How to use checksums
f42db0beacdd395a8f64d62842f7dbf661dee37c1b5132c822782b1c9c497d85
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / pyridescence-1.1.3-cp314-cp314-manylinux_2_28_x86_64.whl

Download URL pyridescence-1.1.3-cp314-cp314-manylinux_2_28_x86_64.whl
Size 4.4 MB
Tags CPython 3.14 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
7dcd7e0aa96b356f4d47c5b6d772a03c52093a337a62a8284082f6d2941b1ece
BLAKE2b-256 checksum
How to use checksums
4b3256a0343778b2576e4001bf377961ef40738d4392392caf46f63cb16f3f8e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / pyridescence-1.1.3-cp314-cp314-manylinux_2_28_aarch64.whl

Download URL pyridescence-1.1.3-cp314-cp314-manylinux_2_28_aarch64.whl
Size 4.1 MB
Tags CPython 3.14 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
b951db7d57f61aa0ca86974086cf7e3afaa2be40f6684345c41fb07dd1bd1954
BLAKE2b-256 checksum
How to use checksums
6844de1d2869485ae8fbe72d4409a83b74ba4bea30d70a6d70935dc8497de114
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / pyridescence-1.1.3-cp313-cp313-win_amd64.whl

Download URL pyridescence-1.1.3-cp313-cp313-win_amd64.whl
Size 2.9 MB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
f3033c15779aee0fe71ff482ed81dead731b039ce3f7167b21ae25a0f3758618
BLAKE2b-256 checksum
How to use checksums
d5d1ad163afb8fc4885457ab30a9db4059bfee1d65adb944b78735909d5c71dc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / pyridescence-1.1.3-cp313-cp313-manylinux_2_28_x86_64.whl

Download URL pyridescence-1.1.3-cp313-cp313-manylinux_2_28_x86_64.whl
Size 4.4 MB
Tags CPython 3.13 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
5488136d30c5b0e80d2a0f1055c2ebf4d8ef100f7fc1807ed8816c7077368623
BLAKE2b-256 checksum
How to use checksums
9f0f88661f712a1a083f0c576ee6ce9bdd9aac57694b4eee2a3dc8f7ff7c7a72
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / pyridescence-1.1.3-cp313-cp313-manylinux_2_28_aarch64.whl

Download URL pyridescence-1.1.3-cp313-cp313-manylinux_2_28_aarch64.whl
Size 4.1 MB
Tags CPython 3.13 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
e694f54a2da1dc80e97b89c8bc6967960c7436953cd851494efb18ff1aadb868
BLAKE2b-256 checksum
How to use checksums
7ec7e944cf1718e3931309bd20bd946305f9662b137cf91b770e0f6f85adc98a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / pyridescence-1.1.3-cp312-cp312-win_amd64.whl

Download URL pyridescence-1.1.3-cp312-cp312-win_amd64.whl
Size 2.9 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
572469f84fcd175fe9a4591e8e76d9caa943a392bc6a1519ae5416a5cf60cd1c
BLAKE2b-256 checksum
How to use checksums
176f3e642f3f5224a89f6bdf2e058a2ff10deb293bed6d57efe75a761b260314
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / pyridescence-1.1.3-cp312-cp312-manylinux_2_28_x86_64.whl

Download URL pyridescence-1.1.3-cp312-cp312-manylinux_2_28_x86_64.whl
Size 4.4 MB
Tags CPython 3.12 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
187e9d20167f1cf3c43ebe0ac92ee92be64c8bd1ac1a65027a5185043863e67b
BLAKE2b-256 checksum
How to use checksums
ddc24dd268f6c1a58be7ca5bfd653a1bd1fd3707f06ef327ffcf1be1df0d73dd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / pyridescence-1.1.3-cp312-cp312-manylinux_2_28_aarch64.whl

Download URL pyridescence-1.1.3-cp312-cp312-manylinux_2_28_aarch64.whl
Size 4.1 MB
Tags CPython 3.12 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
682bdb8dd9b5aadb4dd0abf3ac69f7faf7020ace4b674d239cc90a130be37b88
BLAKE2b-256 checksum
How to use checksums
b474473cb81534633976f79025b775afc6d58d5b33ffc008428184e106f4a91d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / pyridescence-1.1.3-cp311-cp311-win_amd64.whl

Download URL pyridescence-1.1.3-cp311-cp311-win_amd64.whl
Size 2.9 MB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
557e8f21b3d7ef16389a5700d0b8b5c3e36dd6f3d4dc4b7923f010cd0af88ee5
BLAKE2b-256 checksum
How to use checksums
a2ef5ddfe2f5c0985885c1e4c5975a108dd4ffa2de5798bfdc27128a59d75a12
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / pyridescence-1.1.3-cp311-cp311-manylinux_2_28_x86_64.whl

Download URL pyridescence-1.1.3-cp311-cp311-manylinux_2_28_x86_64.whl
Size 4.4 MB
Tags CPython 3.11 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
4eab967caec64d436e3d73cab6224587e8d891a2a822af78ae0b236c2d11c4b9
BLAKE2b-256 checksum
How to use checksums
cdbb332056d44fcb39fb9677a5c9dd2906d625a3a604932e004b5b0d52c2a9d3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / pyridescence-1.1.3-cp311-cp311-manylinux_2_28_aarch64.whl

Download URL pyridescence-1.1.3-cp311-cp311-manylinux_2_28_aarch64.whl
Size 4.1 MB
Tags CPython 3.11 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
30745fd858e67a9084ebaba305891cf67e723143e1f422a935c9e262f12e9e0e
BLAKE2b-256 checksum
How to use checksums
174563c8bd0b14802a4a9ed81cb7c1bc7827b204f8defcf981343f1b1124c7aa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / pyridescence-1.1.3-cp310-cp310-win_amd64.whl

Download URL pyridescence-1.1.3-cp310-cp310-win_amd64.whl
Size 2.9 MB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
d9372c396e3a21c02314590aaf2b7d2497287f1e8bc22f361964084344c7ba5b
BLAKE2b-256 checksum
How to use checksums
4c47024649db13ba405d5a27b25f0e223394c4fdd61f355d4b6fc3e9acb22bf9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / pyridescence-1.1.3-cp310-cp310-manylinux_2_28_x86_64.whl

Download URL pyridescence-1.1.3-cp310-cp310-manylinux_2_28_x86_64.whl
Size 4.4 MB
Tags CPython 3.10 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
06269df354ee809ba8ea36801dd8777bab46518a5b961b907dd0a57fde2e5fe3
BLAKE2b-256 checksum
How to use checksums
a126afe2a52c10e601b4a648e09c6b465c26cb15b07766974aef7376a8aed746
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / pyridescence-1.1.3-cp310-cp310-manylinux_2_28_aarch64.whl

Download URL pyridescence-1.1.3-cp310-cp310-manylinux_2_28_aarch64.whl
Size 4.1 MB
Tags CPython 3.10 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
db0c1532875af7d5346a85d48119378e85062fbc21ab07f67ec2a9a490e0e804
BLAKE2b-256 checksum
How to use checksums
a3e4aaacb5a2bb63b953efead5d8025d95a7193deda573ad10a2e4ee0f6a2580
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for pyridescence 1.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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