Create button in three.js

how to create these two buttons and add them to the game as shown below

1 Like

There are several approaches. Personally, I’d go with <div> tags with transparent background and semitransparent image. The tags should be placed over the canvas. For capturing clicks there is no need for raycasting, as pointer/mouse events will work just fine.

2 Likes

Maybe you can use some of it?
Circular control used for walkable areas control

1 Like

I would use THREE.Mesh

I’m not very good at css. can you give me an example?

Here you go:

https://codepen.io/boytchev/full/OJBKNWW

image

2 Likes