OpenGL Tips & Tricks

OpenGL Tips & Tricks

This VMK series uses the 3D OpenGL Game Engine to present different tips and tricks that you can use when creating your own computer games.

0: Introduction
Introduction
A brief description of what is to come in this VMK series.
VMK 0: Introduction
1ab: Sprites
Sprites
I show how to setup the game engine and how to prepare the texture image which I'll be using to render snowflake sprites. Then I present a way to randomly generate and move the snowflakes so that it appears as if it is snowing.
VMK 1ab: Sprites Download VMK 1ab Resources
1cd: Car Sprite Control
Car Sprite Control
I demonstrate how to create a sprite class that can be used to both control and render sprite objects to the screen. Then I demonstrate how to create a sprite class that can be used to both control and render sprite objects to the screen.
VMK 1cd: Car Sprite Control Download VMK 1cd Resources
1ef: Animated Sprites
Animated Sprites
I demonstrate how to animate a police car sprite. Using the space bar you'll be able to turn the car's lights on or make them flash. Then I demonstrate how to animate a running man sprite. All the animation parameters are explained so that you can make him run faster or slower.
VMK 1ef: Animated Sprites Download VMK 1ef Resources
2: PNG Textures
PNG Textures
The code written in C++ VMK 24 PNG Loader is carried forward into this VMK where the texture manager is expanded to include the ability to use PNG texture files in the game engine.
VMK 2: PNG Textures Download VMK 2 Resources
X