| Introduction |
|
|
| I give you a brief overview of what I have planned for the physics engine VMK series. The VMK's will be using the OpenGL Game Engine to build on top of, so if you haven't gone through those VMK's I would recommend you look at them first. If you want to skip over the OpenGL Game Engine VMK's and start right in with the Physics one, you can do so with the complete Game Engine source code found here |
|
|
|
| VMK 1a Disable Vertical Synchronization |
|
|
| I explain the inner workings of the vertical synchronization feature built into a computer's video card and monitor. I then show you how to disable it so that we can get the game engine running at more than the standard 60 fps. |
|
|
|
| VMK 1b VSync GUI Checkbox Part 1/2 |
|
VMK 1a
|
|
| In this two part VMK, I demonstrate how to add a check box to the Options Menu that will allow you to turn vertical synchronization on and off, while the game engine is running. |
|
|
|
| VMK 1c VSync GUI Checkbox Part 2/2 |
|
VMK 1b
|
|
| In this two part VMK, I demonstrate how to add a check box to the Options Menu that will allow you to turn vertical synchronization on and off, while the game engine is running. |
|
|
|
| VMK 2a Sphere Geometry Part 1/2 |
|
VMK 1c
|
|
| This is part 1 of a two part VMK. I show you how to generate the vertices and normals for a general sphere shape. The sphere object builds on top of the existing game engine framework. |
|
|
|
| VMK 2b Sphere Geometry Part 2/2 |
|
VMK 2a
|
|
| This is part 2 of a two part VMK. I show you how to generate the vertices and normals for a general sphere shape. The sphere object builds on top of the existing game engine framework. |
|
|
|
| VMK 2c Texturing Sphere Part 1/2 |
|
VMK 2b
|
|
| This is part 1 of a two part VMK. I add texture coordinates to the GeometrySphere class so that we will be able to apply a texture over top of the shape. |
|
|
|
| VMK 2d Texturing Sphere Part 2/2 | 
more screen shots here
|
VMK 2c
|
|
| This is part 2 of a two part VMK. Included with this VMK are two TGA file textures that I used to test the texture coordinates. I also show you how to update the lvl file parser so that we can add spheres to our game without having to go into the c++ code to do it. An updated pdf file containing the lvl file specification is also included |
|
|
|
| VMK 3a Position, Velocity, Acceleration Part 1/2 |
|
VMK 2d
|
|
| I goes through the process of showing how position, velocity and acceleration are related to one another. You will see how to use the derivative to get the velocity and acceleation from a position graph. I will also go backwards and integrate acceleration to get velocity and position. |
|
|
|
| VMK 3b Position, Velocity, Acceleration Part 2/2 |
|
VMK 3a
|
|
| I goes through the process of showing how position, velocity and acceleration are related to one another. You will see how to use the derivative to get the velocity and acceleation from a position graph. I will also go backwards and integrate acceleration to get velocity and position. |
|
|
|
| VMK 4a Cannon Control |
|
VMK 3b
|
|
| I add a cannon to the scene and assign some keyboard control keys to allow us to change the direction and pitch of the cannon. A bug fix in the texture manager is also shown. |
|
|
|
| VMK 4b Cannon Ball Part 1/2 |
|
VMK 4a
|
|
| A cannon ball is added to the scene which we can load into the cannon, aim and fire! No gravity in the simulation .... that's coming next. |
|
|
|
| VMK 4c Cannon Ball Part 2/2 |
|
VMK 4b
|
|
| A cannon ball is added to the scene which we can load into the cannon, aim and fire! No gravity in the simulation .... that's coming next. |
|
|
|
| VMK 4d Gravity |
|
VMK 4c
|
|
| I add gravity to the motion of the cannon ball so that it falls back down to the ground after we shoot it. I also show you how to implement simple collision detection with the ground. |
|
|
|
| VMK 5a Laws of Motion |
|
VMK 4d
|
|
| There are three laws of motion developed by Newton's that we take a look at in this VMK. |
|
|
|
| VMK 5b Types of Forces Part 1/2 | 
more screen shots here
|
VMK 5a
|
|
| I describe how to calculate three types of forces in this VMK. Gravitational, Spring and Damper forces are covered. |
|
|
|
| VMK 5c Types of Forces Part 2/2 | 
more screen shots here
|
VMK 5b
|
|
| Three more types of forces are described in this VMK. Friction, Buoyancy and Drag forces are covered. |
|
|
|
| VMK 5d Wind Force |
|
VMK 5c
|
|
| In this VMK I show you how to derive the equations of motion for the cannon ball when wind is blowing in our scene. |
|
|
|
| VMK 5e Wind Code part 1/2 |
|
VMK 5d
|
|
| A 3D model of a chicken is loaded into our scene to represent the direction of the wind and the cannon ball properties are all grouped into a separate class. |
|
|
|
| VMK 5f Wind Code part 2/2 |
|
VMK 5e
|
|
| Keyboard input from the number pad is added to allow us to change the direction of the wind, change the speed of the wind and the mass of the cannon ball. Finally the equations of motion are also implemented. |
|
|
|