Solved

OpenGL object picking and dragging

Posted on 2009-07-06
2
1,570 Views
Last Modified: 2015-01-05
How do I write OpenGL code that displays 3D objects (like Cubes) in which I can pick one or more objects and drag them to change their position?  I would prefer this solution to be in Java & SWT.  Code in C++ is also ok.
0
Comment
Question by:sankartadi
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 25

Accepted Solution

by:
InteractiveMind earned 500 total points
ID: 24790117
NeHe has great OpenGL tutorials which include drawing a cube (these are easily adapted to JoGL):
http://nehe.gamedev.net/lesson.asp?index=01

And for picking objects, see
http://www.opengl.org/resources/faq/technical/selection.htm

(To get the mouse_x and mouse_y coordinates, just add an AWT mouse listener to your canvas)
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Artificial Intelligence comes in many forms, and for game developers, Path-Finding is an important ability for making an NPC (Non-Playable Character) maneuver through terrain.  A* is a particularly easy way to approach it.  I’ll start with the algor…
Recently, in one of the tech-blogs I usually read, I saw a post about the best-selling video games through history. The first place in the list is for the classic, extremely addictive Tetris. Well, a long time ago, in a galaxy far far away, I was…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question