|
Post by chris857 on Jul 3, 2010 17:30:16 GMT -5
I wrote this program of the Game of Life Automaton @ sites.google.com/site/chrisprogrammingsite/basic4gl/basic4gl-program-list/life. For info on Life, go to www.bitstorm.org/gameoflife/. To use, type in the width of the 'playing field'. Then, to load a pattern, type L, hit ENTER, and then the file name without .lif extension. To not load, hit something other than L. After that, you can draw cells with left-click to turn them on, right-click to turn them off. To start the simulation, hit HOME. After drawing, hit S to save the pattern and type in a filename without extension. Life2.gb is faster than Life3.gb, but Life3 works correctly graphically on more computers (I have found Life2 works only on mine so far). Also, it looks best at 800x600.
|
|
|
Post by Adam on Jul 3, 2010 19:37:02 GMT -5
Take Life2.gb and add in GLClear(GL_COLOR_BUFFER_BIT) and that will fix the graphics issues on most computers (you werent clearing your back buffer before drawing to it again which is a bad idea)
|
|
|
Post by chris857 on Jul 4, 2010 14:34:53 GMT -5
Would the fact that Life2 works on my computer have something to do with it being ~5 years old?
|
|
|
Post by Adam on Jul 4, 2010 21:05:52 GMT -5
ehm, considering the gl rendered content is all based on the video card, it probably has a good deal to do with that. Is your video card by chance generic (or worse... Intel)?
|
|
|
Post by chris857 on Jul 4, 2010 21:19:56 GMT -5
Here are the first three lines of results from that program that checks for openGL features:
GL_VENDOR: ATI Technologies Inc. GL_RENDERER: RADEON X300 x86/SSE2 GL_VERSION: 1.5.4582 WinXP Release
After that it lists ~90 extensions.
|
|
|
Post by Adam on Jul 4, 2010 22:20:06 GMT -5
|
|
|
Post by chris857 on Jul 24, 2010 21:28:23 GMT -5
|
|