Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3599846
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T20:25:08+00:00 2026-05-18T20:25:08+00:00

hi guys i am in trouble with add picking object in a JOGL project.

  • 0

hi guys
i am in trouble with add picking object in a JOGL project.
i know that this could be done with pick buffer.. but i can’t find examples
anyone?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T20:25:09+00:00Added an answer on May 18, 2026 at 8:25 pm

    In general, as you are probably aware, JOGL code translates directly from any other OpenGL examples you might see on the web.

    GL_SELECT based picking seems to be very much out of favour these days; deprecated in the spec and poorly implemented by drivers.

    Alternatives you can use are:

    • Rendering each object with a unique color (and all lighting / fog etc disabled) so you can determine which object the mouse is over via glReadPixels. (Clearing buffers after the picking stage so that you can then render your normal graphics). This approach is explained by the top rated answer in OpenGL GL_SELECT or manual collision detection? for example.

    • Ray-casting into your geometry (see the selection FAQ link below). This also means that you don’t have to have an active gl context in the thread you call the code from, fwiw.

    I’ve used both of these methods in the same application, currently having good results with the latter, but since most of the objects in that application are spheres it is a lot cheaper than it might be with arbitrary models.

    http://www.opengl.org/resources/faq/technical/selection.htm

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

hi guys i am in trouble with add picking object in a JOGL project.
Hey guys, i'm having some trouble with this: In the object consumer i need
Hey guys I am having a lot of trouble trying to understand this and
hay guys, i'm having all sorts of mod_rewirte trouble in snow leopard. Anyone know
Hey guys Im attempting to sort a linked list and having trouble with this
Hi Guys I am having trouble on fetching object please see my code below.
Hey guys, I'm having trouble understanding a Rails construct. I'm using Rails 3 but
Hey guys, I'm getting a little trouble here. I have a view that makes
Hey guys i want to execute my SQL statement but im having synatx trouble,
This might be a stupid question, but I'm having trouble thinking this through. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.