views:

398

answers:

3

I'm trying to make a bowling game simulation for college. Any ideas where to find a decent tutorial in DirectX9, using ode-0.9 and c++?

A: 

Take a look at http://msdn.microsoft.com/en-us/library/bb384840.aspx This is a tutorial on writing games using Direct X and C++

Philip Schlump
+1  A: 

Toymaker has a great series of Direct X tutorials. DirectXTutorials is also a good resource, though it's become a premium site, so just the intro tutorials are free now.

On the ODE site there's this tutorial linked.

Finally, there's a ton of samples and tutorials available in the DirectX SDK.

Good luck!

Kyle Walsh
+1  A: 

Your best bet is to start off with the tutorials in the DirectX SDK. It will get you used to directX programming.

After that start looking at the ODE examples. Its probably best to start off with a cylinder sphere collision on a plane. Get your rendering looking right by position your bowling ball and pin according to the ODE simulation. Once you have 1 pin and the ball working then you need to start working with the 10 pins. It should be a bit easier to extend it by this point as you'll be far more familiar with DirectX and ODE. NMow you just need to constrain the edges of your plane and you, pretty much, have a bowling simulator. All you need beyond that is information regarding the direction, position and initial force applied to the ball.

Its also worth bearing in mind that the bowling alley itself is slightly curved so a small segment of a very big cylinder would give you a better simulation of the alley.

At this point you have a nice simulation of bowling.

To make it look nicer you can then start using .x files to provide you with your bowling alley background and slightly nicer looking balls and pins.

Good luck!

Goz