Jump to content

  • Log In with Google      Sign In   
  • Create Account


Ionware Tetris Tutorial questions/problems


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 lehthanis   Members   -  Reputation: 113

Like
0Likes
Like

Posted 04 June 2012 - 12:48 PM

Hi all,

I've been going through IonWare's Tetris tutorial over at http://openglgui.sou.../tutorials.html and I'm having some oddities.

First of all, the screen is VERY flickery when the game is running with the provided source code. It seems to respond to my move commands quite well, but the animations seem to be goign super slow, and eliminating full lines seems to be slow also.

I'm also having trouble with loading blocks. It only seems to want to give me the square block...so I can't tell if block rotation is working or anything.

I ended up commenting out all the includes for glaux.h and the sample code compiled with minimal changes (I had to add the int declaration in front of several i=0 statements in the parentheses portions of for loops). Does anyone know how to contact the author of those tutorials and whether or not he intends to finish the series?

Edited by lehthanis, 04 June 2012 - 12:50 PM.

I work with X-Plane

Sponsor:

#2 Goran Milovanovic   Members   -  Reputation: 1103

Like
1Likes
Like

Posted 06 June 2012 - 01:01 AM

Flickering tends to occur when your application is single buffered, instead of double buffered.

Also, that tutorial seems to be out of date, judging by the calls to glVertex. Modern OpenGL tutorials are shader based; Immediate mode is obsolete.

... I think OpenGL is great, but I don't think it's a good place for beginners to start.

+---------------------------------------------------------------------+

| Need a programmer?        ->   http://www.nilunder.com/protoblend   |

| Want to become one?       ->   http://www.nilunder.com/tutoring     |
| Game Dev video tutorials  ->   http://www.youtube.com/goranmilovano |
+---------------------------------------------------------------------+

#3 larspensjo   Members   -  Reputation: 1526

Like
1Likes
Like

Posted 06 June 2012 - 03:52 AM

You would get a much better tutorial on OpenGL and 3D programming if you look at http://www.arcsynthesis.org/gltut/. But as Goran says, OpenGL is no easy thing to start with.
Current project: Ephenation.
Sharing OpenGL experiences: http://ephenationopengl.blogspot.com/




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS