Rafael R
12-21-2011, 07:04 AM
Hi everyone! My first post here.
So, I have written my first program using openGL. It plots the Mandelbrot set, and allows you to zoom on a specific region of it by pointing the cursor to it, and pressing z/x to zoom in/out.
The problem is, sometimes I get vertical and/or horizontal black lines all over the plot. Here are some images of it:
http://www.2shared.com/photo/Tre1PRf6/screenshot1.html
http://www.2shared.com/photo/8IDi9DkF/screenshot2.html
And here is the source code of the program: http://pastebin.com/smXvRgfD
I am compiling it under Debian Linux, using gcc with the flags '-lGL -lGLU -lglut -lm'.
Am I doing something wrong? Any idea of what is going on is appreciated!
So, I have written my first program using openGL. It plots the Mandelbrot set, and allows you to zoom on a specific region of it by pointing the cursor to it, and pressing z/x to zoom in/out.
The problem is, sometimes I get vertical and/or horizontal black lines all over the plot. Here are some images of it:
http://www.2shared.com/photo/Tre1PRf6/screenshot1.html
http://www.2shared.com/photo/8IDi9DkF/screenshot2.html
And here is the source code of the program: http://pastebin.com/smXvRgfD
I am compiling it under Debian Linux, using gcc with the flags '-lGL -lGLU -lglut -lm'.
Am I doing something wrong? Any idea of what is going on is appreciated!