View Single Post
Old 09-20-02, 11:22 PM   #6
perryd
Registered User
 
Join Date: Sep 2002
Posts: 10
Default

Well, FSAA works on my system under Linux!

I recalled that my son had written an opengl test program in C (I am attaching it.) this simple program draws a diagonal line in a window labeled "Hello". By resizing this window, you can see clearly the affect of the various values of the environment variable
__GL_FSAA_MODE
you change with
export __GL_FSAA_MODE=n
where for my GF3, n=0 and 3, there is no FSAA, and for n=1, 2, 4, and 5 there are various degrees of FSAA (see pp 51-52 in the NVIDIA pdf docs)

For some reason, FSAA is still better in FlightGear running under Cygwin and WinXP than under RH7.3 Linux. Anyone know why?

The attach won't take the .c or the make file, so I will paste them here for your use. Hope this can help someone else!

test.c

#include <stdlib.h>
#include <GL/gl.h>
#include <GL/glut.h>

static void display(void) {
glClear(GL_COLOR_BUFFER_BIT);

glColor3f(1.0, 1.0, 1.0);
glBegin(GL_LINES);
glVertex2f(0.0, 0.0);
glVertex2f(0.5, 0.3);
glEnd();
glFlush();
}

static void key(unsigned char k, int x, int y) {
switch (k) {
case 27: /* esc key */
exit(0);
break;
default:
return;
}
glutPostRedisplay();
}

void init(void) {
glClearColor(0.0, 0.0, 0.0, 0.0);

}

int main(int argc, char **argv) {
glutInit(&argc, argv);
glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB | GLUT_DEPTH);
glutCreateWindow("Hello");
init();
glutDisplayFunc(display);
glutKeyboardFunc(key);
glutMainLoop();
return 0;
}

makefile

test: test.o
gcc -Wall -Wstrict-prototyes -Wnested-externs -Wno-format -Wp,-lang-c89 test.o -lGL -lGLU -lglut -lm -o test

# -lXmu -lSM -lICE -lXt -lX11 -lXext -lm -o test

test.o: test.c
gcc -c -Wall -Wstrict-prototypes -Wnested-externs -Wno-format -Wp,-lang-c89 test.c -o test.o

clean:
rm -f test.o test















gl

Last edited by perryd; 09-21-02 at 09:48 AM.
perryd is offline   Reply With Quote