Calculate mouse position in opengl

Member
Posts: 21
Joined: 2004.11
Post: #1
Hi
I'm having trouble with convert a clicked position into opengl 3d coordinates.
How do I do that?

I will be using it for dragging objects, not opengl picking.
The camera can be rotated, and thats where the hard part is.
When the user drag the mouse horizontal, I want the object to be dragged with the mouse.

tnx
Quote this message in a reply
Moderator
Posts: 1,140
Joined: 2005.07
Post: #2
Check out gluProject and gluUnProject.
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  new position with vector pander007 3 3,590 Oct 13, 2007 11:49 AM
Last Post: Nevada
  Best way to calculate framerate ferum 18 17,236 Sep 7, 2006 11:05 AM
Last Post: TomorrowPlusX
  geting window position marko 2 2,660 Jul 24, 2005 02:32 AM
Last Post: marko
  Mouse events for an openGL window majestik666 5 7,250 Jul 5, 2005 06:15 PM
Last Post: majestik666
  Cocoa - Reset Mouse Position to center of View CactusJack 6 6,102 Dec 11, 2002 08:51 PM
Last Post: CactusJack