Jump to content

View more

Image of the Day

The night is still, but the invasion brings chaos. #screenshotsaturday #hanako #indiegame #gameart #ue4 #samurai https://t.co/cgILXuokoS
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Selection Tool..

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
1 reply to this topic

#1 HellRiZZer   Members   

308
Like
Likes
Like

Posted 30 November 2001 - 12:01 AM

What basic steps I should go to implement a selection tool, you know , the rectangle with mouse (drag mouse from one pos to another in explorer and you select all items within rectangle) for OpenGL? Is it simply going through all points and determining if they are inside the projected to far plane parellelogram? E.g I got a camera at 30 degrees on x axis, I create 6 surfaces (left/right, top/bottom, far/near) and look if point is in between that parallelogram? Please help. Thanks.

#2 Fruny   Moderators   

1658
Like
Likes
Like

Posted 30 November 2001 - 03:41 AM

There is a whole chapter dedicated to selection and feedback in the Red Book (chapter 13).

Read up on the following functions :
- glSelectBuffer(), glRenderMode()
- glInitNames(), glPushName(), glPopName(), glLoadName()
- gluPickMatrix()




Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.