WireTool for Lens Studio

July 2024

Flowers Augmented Reality

WireTool can render realtime trails in Lens Studio!
Give it any points, and it will create a highly customizable 3D mesh.

(Or contact me for an agency license.)

What Is WireTool?

 

 

WireTool creates continuous 3D geometry, based on world positions.
Useful for trails, streaks, lines and other unique visuals!

How To Use WireTool?

 

Call WireTool from anywhere in your project, and give it some world-space points to generate a wire mesh!
It takes just a couple lines of code, and there are lots of optional features to use.

Make sure to check out the examples that come with the download, and
click here for the full documentation (GitHub)!

What Can It Do?

 

WireTool has lots of customizations and features, for example:
  • Points/length limits
  • Segment count (like 2 for a flat card or 4 for a square tube)
  • Normals, UVs (along length and arc length)
  • Custom Color attribute (for use in shader)
  • Per-point radius, with custom shader attribute
  • Automatic line resampling
  • ‘Previewing’ (showing the newest point for smoothness, even if not passed the resampler yet)
  • End caps

 

A generated wire can return useful info, like:
  • getLength returns the total wire length
  • getPartLength returns the length of the currently rendered wire part
  • getClosestPoint returns the point and direction on the wire closest to the given world position

Lens Studio WireTool Features

 

WireTool Lens Studio

Featured on the home screen of Lens Studio!

(Contact me for an agency license.)