Displaz

A las viewer for geospatial point clouds

This project is maintained by c42f

Overview

displaz is a cross platform viewer for displaying lidar point clouds and derived artifacts such as fitted meshes. The interface was originally developed for viewing large airborne laser scans, but also works quite well for point clouds acquired using terrestrial lidar and other sources such as bathymetric sonar.

The goal is to provide a flexible and programmable technical tool for exploring large lidar point data sets and derived geometry.

  • Open point clouds up to the size of main memory. Performance remains interactive as the number of points becomes too large to draw in a single frame.
  • Create custom point visualizations. The OpenGL shader can be edited interactively. In the shader program, you automatically have access to any per-point attributes defined in the input file. Shader parameters are connected to user-defined graphical interface controls.
  • Plot interactively from your favourite programming language. Displaz interprocess communication lets you script the interface from the command line. Experimental language bindings are available for C++, python, julia and Matlab.
  • Screenshot

    Here's a screenshot showing Autzen stadium in colour. This scene contains a relatively small number of points (10,000,000) and is nicely interactive.

    Screenshot - Autzen colorized

    Usage quickstart

    Use File->Open to open a las file. Note that displaz may appear unresponsive when loading very large files - just wait for it and it should eventually finish.

    Navigation

    Point display

    To change how the points are displayed, use the controls in the box on the right hand side of the screen. Examples:

    Shader editing

    Additional point display controls may be added and configured at runtime via hints in the the shader program. While in the shader editor (accessible via the view menu), pressing Shift+Return will cause a valid shader to be recompiled and applied to the point cloud immediately.

    Supported file formats

    Point cloud input

    The primary file format is the ASPRS .las format; compressed .laz is also supported. Internally these formats are read using the laszip library (via LASlib) so any standards-conforming las file should be read correctly.

    Very basic plain text import is also supported: Each line of a .txt file will be interpreted as X Y Z ... where the trailing part of the line is ignored.

    Vector geometry

    Basic support for vector geometry (meshes and line segments) is available via the .ply file format. Any .ply file containing a header of the form

    element vertex <N>
    property float x
    property float y
    property float z
    element face <M>
    property list uchar int vertex_index
    

    will be recognised and rendered as a mesh with solid faces. When the face element is replaced with an edge element in the same format, each edge will be rendered as a set of linear segments.

    Supported Systems

    displaz is intended to be cross-platform, and runs on both windows and linux. It should also work on OSX with minimal effort, but the author doesn't have access to an OSX system for testing.

    displaz uses modern OpenGL features, so requires a reasonably up to date graphic driver. It is known to work well with recent Nvidia and ATI drivers. Some problems have been reported with older ATI and Intel drivers - these will be fixed in the future where possible.

    Acknowledgments

    The author gratefully acknowledges Fugro Roames for supporting displaz with development time and access to raw lidar data.