OpenGL pick program
The pick2.c program demonstrates the use
of X overlay window on top of
a RGBA, Doublebuffered and depthbuffered OpenGL Window to do picking.
The program accepts two optional parameters which define the number
of polygons in the x and y directions. The default is a 10x10 grid.
The Makefile is fairly straightforward.
- RIGHTMOUSE: drag the rubberband to create a picking window. Polygons inside the picking window will be highlighted in RED.
- LEFTMOUSE: can be used to rotate the model.
- Esc: terminates the program.
The pick buffer is set to 2000 words which can pick about 600 items.
To pick a larger region, modify the pick_buffer_size #define in pick2.c.
OR, ...
Copyright © 1995, Silicon
Graphics, Inc.