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 & HelpOpenGL and 3D Libraries › Clicking on a button in OPENGL
Page Index Toggle Pages: 1
Clicking on a button in OPENGL (Read 1725 times)
Clicking on a button in OPENGL
Oct 24th, 2007, 5:50am
 
Hey,

not quite sure where to post this one.

What I'm trying to do is developing an application where the user can navigate in a 3D interface.

For example, you have different paragraphs of text on the screen each at a different z index. Users may zoom in, zoom out the z index read the text that is far away... users can also rotate around them. To do this, is pretty simple.  

My problem is, let's say I want to add a button (probably with a library) below each paragraph and when the user clicks on it calls some function. I tried different libraries but none of them seem to support OPENGL or a z index. If it's a 2D environment, great they work perfectly, but when they're in a 3D world, they don't when where the button has gone to.

Any ideas how I would to this? I'm guessing it's possible since some 3D games offer the possibility of clicking somewhere and reacting to that click.

Any input is very appreciated!
Cheers
Re: Clicking on a button in OPENGL
Reply #1 - Oct 24th, 2007, 9:24am
 
see johns answer at the end:

http://processing.org/discourse/yabb_beta/YaBB.cgi?board=Syntax;action=display;num=1192166420;start=7#7

Re: Clicking on a button in OPENGL
Reply #2 - Oct 24th, 2007, 3:51pm
 
or you can use the new
hint(DISABLE_DEPTH_TEST)
Re: Clicking on a button in OPENGL
Reply #3 - Oct 24th, 2007, 6:55pm
 
I'll try that.
Thanks alot guys!
Page Index Toggle Pages: 1