Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

OpenGL object picking and dragging

Posted on 2009-07-06
2
Medium Priority
?
1,585 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 2000 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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

What is RenderMan: RenderMan is a not any particular piece of software. RenderMan is an industry standard, defining set of rules that any rendering software should use, to be RenderMan-compliant. Pixar's RenderMan is a flagship implementation of …
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…

636 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