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 3 of 3

Thread: Selection/Feedback

  1. #1
    Junior Member Newbie
    Join Date
    Feb 2000
    Location
    Hong Kong
    Posts
    9

    Selection/Feedback

    Can anyone give me some hints/pseudocode on how to pick/select a single object to do indiviual rotation/translation among multiple object models on the screen?
    Even I have read the red book, I still have no idea about that.
    Thx.

  2. #2
    Intern Contributor
    Join Date
    Feb 2000
    Location
    Italy
    Posts
    77

    Re: Selection/Feedback

    Forget selection. You were maybe misled by this term.
    What you are going to do, is push the modelview matrix on the stack, set it to desired rot/tran values, and draw the object. After that pop the matrix, and again do that with the next object.
    See glPushMatrix/glPopMatrix, and review the section on matrix manipulation on the specs.
    --
    Paolo M.

  3. #3
    Intern Contributor
    Join Date
    Feb 2000
    Location
    Italy
    Posts
    77

    Re: Selection/Feedback

    Ops! Sorry maybe I misundertood your request... You wanna do selection, right? so the part on rotating things is not the question...?
    Okay, enter the advanced forum, and look for some selection topic: it's already there, with the info you need.
    --
    Paolo M.

Posting Permissions

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