Skip to content

Make custom buttons (rect) and trigger when clicked #630

Discussion options

You must be logged in to vote

there are many ways to make things interactive.
every one has its pros and cons

  • for 2d stuff i would always try to use html elements (pro: independant rendering and handling by the browser and css)

https://dev.cables.gl/op/Ops.Html.DivElement_v3

  • intersect ops (performant way for simple 3d volumes)

https://cables.gl/op/Ops.Graphics.Intersection.IntersectWorld
https://www.youtube.com/watch?v=lNbfCp0T55c

  • interactive recatangle, you found that already

picking by rendering specific colors into a texture:
https://www.youtube.com/watch?v=WQM37Jr_NHI

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by peterpranger
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants