RayRender is a tool for creating 2D images from ray cloud data using various viewpoints and rendering styles. It supports multiple output formats and can generate georeferenced images for GIS applications.
rayrender <raycloud_file> <viewpoint> <style> [options]
<raycloud_file>: Input ray cloud file (.ply)<viewpoint>: Camera viewing direction<style>: Rendering style for the visualization
Plan view rendering from above:
rayrender scan.ply top ends
Side view facing negative X axis:
rayrender scan.ply left density
Side view facing positive X axis:
rayrender scan.ply right height
Side view facing negative Y axis:
rayrender scan.ply front rays
Side view facing positive Y axis:
rayrender scan.ply back starts
Renders ray endpoint locations (default):
rayrender scan.ply top ends
Renders ray start points (sensor positions):
rayrender scan.ply top starts
Renders complete rays from start to end:
rayrender scan.ply left rays
Average color values along the viewing axis:
rayrender scan.ply top mean
Sum of color values (globally scaled):
rayrender scan.ply top sum
Maximum heights in the view direction:
rayrender scan.ply top height
Shading based on estimated point density:
rayrender scan.ply top density
Color-coded density (red→green→blue):
rayrender scan.ply top density_rgb
--resolution <pixels>or-r <pixels>: Long axis resolution (default: 512)--pixel_width <meters>or-p <meters>: Specify pixel width instead of resolution--grid_width <meters>or-g <meters>: Align to grid with cell center at origin
--output <filename>or-o <filename>: Custom output filename--mark_origin: Place magenta pixel at coordinate origin--output_transform <file>or-t <file>: Generate YAML transform file (top view only)
--georeference <proj_file>: Create georeferenced TIFF with projection file
- PNG: Default format for most visualizations
- TIF: Required for georeferenced outputs
- TGA: Targa image format
- HDR: High dynamic range format
- JPG: JPEG compressed format
- BMP: Bitmap format
Create plan view density visualization:
rayrender forest_scan.ply top density --resolution 1024
Generate georeferenced overview image:
rayrender survey.ply top ends --georeference survey.proj --output overview.tif
Create side profile with custom pixel width:
rayrender building.ply left height --pixel_width 0.05
Render ray trajectories with origin marker:
rayrender trajectory.ply top starts --mark_origin
Generate high-resolution plan view:
rayrender scan.ply top density_rgb --resolution 2048 --output high_res.png
For georeferenced outputs:
- Requires build with
WITH_TIFFflag enabled - Output must be in TIFF format (
.tif) - Only works with top view
- Projection file defines coordinate system and location
- Default output filename is
<input>_<viewpoint>_<style>.png - Grid width option ensures alignment with survey grids
- Transform files provide pixel-to-world coordinate mappings
- For more detailed information on rendering algorithms, refer to the
RayRendersource code atraycloudtools/rayrender/rayrender.cpp.