"Points" Manual


The program "points" is a simple OpenGL application that I have written. It is useful for displaying three-dimensional point sets, such as results from cosmological simulations, or three-color diagrams for stars, or anything else you can imagine. It is fast, cheap, and simple to use. For instance, on a 200Mhz SGI O2000 processor, it can display up to about 2 million points with a reasonable level of interactivity. A tarred and gzipped version of points is now freely available.

The point of "points" is that you can plot your particles in three-dimensions and then navigate through them. You specify the data file and the properties of your display in an input file. When you run "points" a window with your data comes up and you can play with it. You can also output the current image to a .tiff image file. (The program imconv or xv can then translate this file to a .gif file or whatever you prefer).

Aside from point sets, "points" can also handle other things, like general polygon surfaces or vector fields. It is also designed to be easily patched to include whatever extra features you might desire. Although this design is primarily for my own benefit, anybody who knows a little OpenGL should be able to alter the program to do what they want.

Installation

  1. Download the tarball and unpack it with gzip and tar
  2. Type "./configure"
  3. Obey the instructions of the error messages configure gives you (a common one for RedHat users is that "--libdir=-L/usr/X11R6/lib" should be an argument to "configure")
  4. Type "make"
  5. If you get an error that gluTessBlagBlah is not a symbol, than you need to install a more correct version of Mesa (RedHat ships with Mesa-3.4.2, which incurs this failure). Mesa-5.0 works as of Dec 2002.
  6. Type "make install"
  7. Test the demos in the demo directories

The Input File

The call to "points" is of the form:

points [infile] [-geometry =WxH+X+Y]

where "infile" is the name of your input file. The optional "-geometry" flag will place the window where you want it. This file is processed line by line, where each line is of the form:

[tag name] [tag values]

Below we list the possible tag names and values:

The Menu

"points" provides a menu by clicking the right mouse button. The entries are explained below. You may not understand what some of the things do until you read about navigation and rotation in the next section.

Navigation and Rotation

The nice thing about "points" is that it lets you fly around in the data set. You do this by using the keyboard. Two things to remember: first, the "shift" key pressed with any other control key makes you go ten times faster; second, you can also control the movement amount by using the "Movement More" and "Movement Less" options on the menu (available by pressing the right mouse button).

To move backwards and forwards, use "a" and "z", respectively. To turn around and change your viewing angle, use "h", "j", "k", and "l." "vi" users will find this very comfortable. To move left, right, up, or down, use "y", "o", "i", or "u". That is, just move your hand up a row of keys from the standard "vi" position, and do what comes natural. That's all you need to know!

To rotate the whole data set around the center press the left and/or middle mouse buttons. Pressing the left button requires you to move the mouse left or right; pressing the middle button requires you to move the mouse backwards and forwards. You can press both buttons and rotate around both axes at the same time.

It is sometimes desirable to change the rotation center. The most useful thing to do is to use the menu option "Recenter to Front," which will move the rotation center so it is right in front of you. It will also show you a sphere representing the center. Now, as you move around, the sphere will be fixed in front of you. Put it down at the place you want to rotate around, and select "Drop Carry Recenter" to put it down. To make the sphere disappear, use "Hide Recenter Sphere." You can return the rotation center to its original point using "Recenter to Center."

Another way of moving the rotation center is by using keyboard commands. Use "Show Recenter Sphere" to show the sphere. Now, to move it left, right, up, or down, with respect to you, use "7", "8", "9", or "0". (vi lives forever!). To move it back and forth, use "w" and "2".

Often, the first view you specify in your input file is an inconvenient one, since you have specified it "blind," without knowing exactly how it would look. If you want your view to start somewhere else which is more convenient, the best way to do it is to navigate until you find a view which you like, and then press the slash ('/') key. This will output the set of commands which must go in your input file (the "center", "pos", "fvec", and "uvec" lines) to reproduce that view. Then just copy those four lines into your input file and you will be all set the next time.


Snail Mail: Michael Blanton; Email: blanton@astro.princeton.edu