o
odinpkg.dev
packages / app / Peek3D

Peek3D

peek-3d-release-win-v1.1app

Peek3D is a simple standalone application for visualisation of 3D data copied from clipboard.

Zlib · updated 3 months ago

Peek3D

Peek3D is a simple standalone application for visualisation of 3D data copied from clipboard.

Ever found yourself debugging a 3D application like game or physics simulation and needed to make sense out of debug data? With Peek3D you can just copy values from debug watch and paste into the visualiser. When pasting, the app is trying to parse the clipboard text into points, vectors, edges or triangles.

How to use

Put breakpoint in your code and then:

  • Find the points data (an array of vec3f) and copy values.
  • Go to Peek 3D and paste by CTRL + V (vertices).
  • Do the same for normals (CTRL + N), edges (CTRL + E) and triangles (CTRL + T).

Here's example data for points:

{1.0, 0.0, 0.0}
{0.0, 1.0, 0.0}
{0.0, 0.0, 1.0}

Normals:

{0.577350259, 0.577350259, 0.577350259}
{0.577350259, 0.577350259, 0.577350259}
{0.577350259, 0.577350259, 0.577350259}

Edges:

{0, 1}
{1, 2}
{2, 0}

Triangles:

{0, 1, 2}

Here's result in Peek 3D: peek3d-screenshot-01

You can rotate and zoom the camera with right mouse button and scroll.

Formats

Here are example formats of points:

{1.0, 2.0, 3.0}
{x=1.0 y=2.0 z=3.0}
{x=1.0 y=2.0 z=3.0 ...}
{0x000002561a451288 {0.0752591267, 0.107697450, 1.30111766} ...}

Of edges and triangles:

{1, 2}
{1, 2, 3}
{x=1 y=2}
{x=1 y=2 z=3}
{x=1 y=2 ...}
{x=1 y=2 z=3 ...}

Whatever comes before or after this pattern is ignored.

How to build

Peek 3D is written in Odin Programming Language with RayLib as drawing backend. All you need is to download Odin compiler as it comes with batteries included (like RayLib).

Go to folder with Peek3D and use this command: Odin build .