Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ build: $(BINARIES)

$(BINARIES):
@echo "*** $@"
@cd cmd/$@ && go build $(LDFLAGS) -trimpath -o ../../bin/$@
@cd cmd/$@ && CGO_LDFLAGS="-Wl,-no_warn_duplicate_libraries" go build $(LDFLAGS) -trimpath -o ../../bin/$@

run:
@echo "*** $@"
@go run cmd/

test:
@echo "*** $@"
@go test ./...
@CGO_LDFLAGS="-Wl,-no_warn_duplicate_libraries" go test ./...

bench:
@echo "*** $@"
Expand Down
16 changes: 13 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,22 @@
# Point Cloud Viewer

![Gopher](images/gopher-small.png)
A simple point cloud viewer built with [Fyne](https://fyne.io/). This repository primarily offers a Fyne widget for viewing point clouds, but it also contains a standalone viewer. The standalone viewer

Reads PLY, PCD, PTS, and XYZ files and renders them as interactive 3D point clouds with mouse-controlled rotation and zoom.

[![Go Reference](https://pkg.go.dev/badge/github.com/borud/pointcloud.svg)](https://pkg.go.dev/github.com/borud/pointcloud)

A simple point cloud viewer built with [Fyne](https://fyne.io/) and OpenGL. Reads PLY, PCD, PTS, and XYZ files and renders them as interactive 3D point clouds with mouse-controlled rotation and zoom.
![Gopher](images/gopher-small.png)

## Examples

Viewing 970k point goat scull from from [Artec 3D](https://www.artec3d.com/).

![Screenshot](images/goat.png)

Simulated seabed from `_examples/seabed`.

![Screenshot](images/screenshot.png)
![Screenshot](images/seabed.png)

## Features

Expand Down
18 changes: 18 additions & 0 deletions _examples/seabed/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# seabed

Procedurally generated seabed terrain with bathymetric depth coloring.

go run .

Layered noise produces hills, a trench, scattered rocks, and sand ripples.
Color goes from dark blue in the deep parts to sandy tan at the peaks.
Every regeneration uses a new random seed so you get a different landscape
each time.

## controls

- Height -- adjusts terrain relief without regenerating. Crank it down
for a nearly flat ocean floor or up for exaggerated peaks.
- Points -- log-scale slider from 100K to 50M. Set the value and hit
Regenerate to rebuild at the new resolution.
- Regenerate -- new random terrain at the current point count.
Loading
Loading