Hello, i have a 3D bar and i would like to make it clickable. I’ve created the 3d bar using pushmatrix() function and i would like to know how i can make it to display message once its clicked.
here is an example with screenX, screenY - see reference
The cursor changes to hand when near the bar
you can also use get to detect the color underneath the cursor when your bars are of different colors (or use an offscreen buffer). The whole thing is called picking, you can search it in the forum
I managed to make it work but as i have more than one 3d bar i want each of them to display a different message when clicked on. So my question is when i keep re using the if statement you created under each pushMatrix() function it doesnt allow me to hover over the first 3d bar but allows me to hover over the 2nd one without the cursor hand being displayed.