Mouse Draw Spline Example

               
by

Published Feb 15, 2018 at 19:06
Open In Editor


Using the ScreenPosTo3d op we can convert the mouse coordinates to 3D coordinates. For this you need to disable the Flip Y port of the Mouse op. Using the ArrayPushValue3X op we add the (converted) x and z coordinates (together with z=0) to the array and draw it with the SimpleSpline op.


Example for ops:
Ops.Devices.Mouse.Mouse_v3 Ops.Gl.Matrix.ScreenPosTo3d_v3 Ops.Trigger.TriggerExtender 

Licence: Public Domain Dedication

Commercial use ok, freely remix, reuse this work without restriction, please credit the author.
 



More patches made by cables users





what is cables?


Cables is a tool for creating beautiful interactive content. With an easy to navigate interface and real time visuals, it allows for rapid prototyping and fast adjustments.

cables is free to use!

Register