Solved

OpenGL object picking and dragging

Posted on 2009-07-06
2
1,554 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
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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Are major League gaming events walk on tournaments? 7 601
How to make 2D games with custom graphics? 3 300
Need a nodal sequencing tool 3 93
How Complex Is This Java Course ? 11 113
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…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

773 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