Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Game programming question - 3D to 2D formula ?
Message
 
À
Tous
Information générale
Forum:
Visual Basic
Catégorie:
Autre
Titre:
Game programming question - 3D to 2D formula ?
Divers
Thread ID:
00814964
Message ID:
00814964
Vues:
50
Hello everyone!

I am wrestling with a problem that I was wondering if anyone might have an answer to...

I am trying to write a formula for a ball bouncing in a room.

The values I feel necessary are...

Ball_X, Ball_Y, Ball_Z (current location of ball in 3Dimensional room.)
Screen_ball_X, Screen_ball_Y (actual location of ball on screen)

Assuming room is 20 ft high, 20 ft wide, and 40 feet long (or perhaps better to say 240 by 240 by 480 inches) how would I transpose this three dimensional model into a two dimensional visual representation on the screen.

I also recognize I need variables such as gravity, resistance (eg. ball rolling on floor), velocity and direction but right now I am just trying to figure out a simple formula for translating 3D ballX, BallY, and BallZ to 2D BallX and BallY.

Any thoughts would be greatly appreciated!

Thanks!
Kevin Scott
kehvn@carolina.rr.com


Hey! It's not my fault. It's some General named Protection!
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform