We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSyntax Questions › MouseOver in 3D sketch
Page Index Toggle Pages: 1
MouseOver in 3D sketch (Read 325 times)
MouseOver in 3D sketch
Nov 20th, 2009, 2:40am
 
Hello, I'm having some issues with my 3D scene. I have some ellipses and a mouse over function of this type:


Code:

if(mouseX<=(aziende[i].x+(aziende[i].diameter)/2) && mouseX>=(aziende[i].x-(aziende[i].diameter)/2) && mouseY>=(aziende[i].y-(aziende[i].diameter)/2) && mouseY<=(aziende[i].y+(aziende[i].diameter)/2)){
aziende[i].name();
aziende[i].over=true;

Azienda azienda = getAziendaByName(records[i].name);
if(azienda!=null) {
linea[i].over = true;
}
}



Probabily the issue is that in 3D (i'm using only a zoom in and a pan camera) I need to use the projections of the ellipses on the screen for the mouseOver.  But i don't know how to do that. Any help?

Thanks

Lorenzo
Page Index Toggle Pages: 1