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 & HelpOther Libraries › Gestalt: mouse position to 3d
Page Index Toggle Pages: 1
Gestalt: mouse position to 3d (Read 1039 times)
Gestalt: mouse position to 3d
Nov 14th, 2006, 4:34am
 
Hi,

I'm currently using the Gestalt GL lib and just have no idea how to convert the mouse xy-position into a xyz-position of my camera.. without using the Picking objects.
Anyone done something like that before?
Re: Gestalt: mouse position to 3d
Reply #1 - Nov 14th, 2006, 11:04am
 
Yes, but it's not easy.

http://www.hardcorepawn.com/CoOrds/

Taht will find the mouse position, in 3D coords on a surface.

I'd suggest using some sort of bounding box for your objects, rather than testing every triabngle though, as it's likely to get quite slow.
Page Index Toggle Pages: 1