WireTool for Lens Studio
WireTool
WireTool renders realtime trails in Lens Studio!
Give it any points and it will create a highly customizable 3D mesh.
- Intuitive to use
- Optimized and customizable
- Useful for trails, streaks, lines and other unique visuals!
- Works for both mobile devices🤳 and Spectacles🕶️
Video
All examples shown in video are included in the download!
WireTool has many customization options 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
For full documentation, see this link:
Full documentation (GitHub)!Legal stuff
- You have permission to use this code within your Lens Studio projects.
- Redistribution of the WireTool code itself is not permitted.
- You don't have to credit me (but I'd love to see your creations!)
Agencies / Studios
For agency use (permission to share this code with other developers within your company), contact me to buy with appropriate license.
Liability
The software is provided “as is”, without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. In no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort, or otherwise, arising from, out of, or in connection with the software or the use or other dealings in the software.