Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: Picking and Selection.

  1. #1
    Junior Member Newbie
    Join Date
    Apr 2003
    Posts
    1

    Picking and Selection.

    I am creating a 3D city. I am loading in 3ds models into the city's for buildings. I want the models to turn Red when the user clicks on it with the left mouse button. I am unsure of how to work picking and selection so that each model I create is an object that can be clicked on.

    I have found some code, but it will crash about a good portion of the time and point me the bit of code that determines if the object has been hit.

    Any ideas?

    [This message has been edited by Pezdro (edited 04-07-2003).]

  2. #2
    Senior Member OpenGL Guru
    Join Date
    Jun 2000
    Location
    Gastonia, NC, USA
    Posts
    2,070

    Re: Picking and Selection.

    This site has a good tutor on it.

    nehe.gamedev.net


    Originally posted by Pezdro:
    I am creating a 3D city. I am loading in 3ds models into the city's for buildings. I want the models to turn Red when the user clicks on it with the left mouse button. I am unsure of how to work picking and selection so that each model I create is an object that can be clicked on.

    I have found some code, but it will crash about a good portion of the time and point me the bit of code that determines if the object has been hit.

    Any ideas?

    [This message has been edited by Pezdro (edited 04-07-2003).]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •