Skip to content
A point cloud visualisation and analysis library for Processing.
Java Shell GLSL
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples
gradle/wrapper
lib
readme
shader
src
.gitignore
.travis.yml
README.md
appveyor.yml
build.gradle
gradlew
gradlew.bat
library.properties
release.sh
settings.gradle

README.md

Point Cloud for Processing Build Status Build status

A point cloud visualisation and analysis library for the Processing framework.

Example

Figure 1: 50'270'180 points with 50 FPS rendered on a Nvidia 1080ti

Idea

This framework allows you to display millions of points within your Processing sketch. The idea was to build a simple, although a performant framework, which can load, display, and even analyze point cloud data.

Speed

PShape can display points with the point shader, but because processing tessellates each point on the CPU, manipulations to the point cloud data are slow, plus there is overhead because even more vertices are allocated then needed on modern graphic systems. This pipeline uses the OpenGL commands to generate the billboarding & tessellation directly on the graphics card, which leads to a faster drawing and simple one-to-one vertex indexing.

Attributes

With the original PShape, it was possible to add custom vertex attributes to a mesh. However, in POINTS mode, the tessellation would not care about these additional custom vertex attributes, as shown here. Instead, this library offers you the full potential of vertex attributes for point vertices.

Library Modules

The plan is to have three modules to work with point clouds. The most important is the visualization module, which contains an advanced OpenGL renderer for point clouds.

  • I/O 🐙
    • read PLY files
  • Visualize 🎆
    • OpenGL renderer
  • Analyze 🧮
    • Show cloud statistics
      • dimensions
      • pointcount

Example

I have added some very basic examples, because people were asking me about it.

Currently there are two problems you have to deal with ⚡️:

  1. I can not get processing to redraw, if nothing in the scene is drawn by processing. This is why I've added a simple line to the output while rendering.
  2. The library is far away from being finished. This is a work in progress thing and I am happy if you contribute your findings back to me.

Basic Cloud Example

This example just loads random coordinates into a vertex buffer and displays them. At the moment this crashes on a Windows with 1080ti, but runs smoothly on a MacBook Pro with a Radeon.

examples/BasicPointCloud

Simple Load Example

Loads a PLY file and displays it. This examples runs on Mac and Windows.

examples/BasicPointCloud

About

Written by myself in my freetime. No license yet, but will be open source.

You can’t perform that action at this time.