posted 14 years ago

What are the main Maths/Physics subjects I need to learn for games programming(note UK style spelling of Math). Even small Java games need a certain level of understanding of Maths to get started. Im not at an advanced level and alot of the Maths that get distributed around the web is pitched so that Advanced Mathmeticians can understand. I need somewhere to at least start from but build up the level later.

Thanks

Thanks

posted 14 years ago

Hi SD,

Welcome to JavaRanch. You certainly will need basic geometry and at least a rudimentary understanding of trigonometry. Matrix algebra and Vector Analysis are definite pluses. Space analytic geometry will be helpful for 3D games.

[ May 13, 2003: Message edited by: Michael Morris ]

Welcome to JavaRanch. You certainly will need basic geometry and at least a rudimentary understanding of trigonometry. Matrix algebra and Vector Analysis are definite pluses. Space analytic geometry will be helpful for 3D games.

[ May 13, 2003: Message edited by: Michael Morris ]

*Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction.* - Ernst F. Schumacher

posted 14 years ago

Well, it depends entirely on what kind of game you wish to build. As mentioned, 3D games are probably the most math intensive since you have to know linear algebra, geometry, trigonometry and even physics. However, I would suggest you start with something a bit more simple, say Tetris, Pong, or Bricks for example. These don't take much more than some algebra and logic.

Of course, even programming in general assumes you understand some basic algebra. At least I find the similarities help me out a lot.

Of course, even programming in general assumes you understand some basic algebra. At least I find the similarities help me out a lot.

Layne Lund

Ranch Hand

Posts: 3061

posted 14 years ago

p.s. Game programming can get pretty hairy. you should really concentrate on the fundamentals first, not only the math, but also the basics of the language you wish to program in (Java, in this case). If you start getting into games where speed is a real issue, you may find that you need to move to a different language as well, such as C++.

posted 14 years ago

See RoboCode at IBM. The framework provides a gaming area, you build or modify autonomous robots that battle each other. There are good examples in the download, others all over the web, and some are extremely sophisticated. There is much math to be done - polar to grid coordinates, vectoring shots, moving with relation to walls and other bots, etc. And it's addictive fun! You can enter your bots in tournaments and forget to go to work for a week!

A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi

posted 14 years ago

Two math books for computer scientists and 3D graphics and game development getting decent reivews at Amazon:

Concrete Mathematics: A Foundation for Computer Science (2nd Edition)

3D Math Primer for Graphics and Game Development

Concrete Mathematics: A Foundation for Computer Science (2nd Edition)

3D Math Primer for Graphics and Game Development

posted 14 years ago

You may also be interested in Physics for Game Developers. Though to be fair, many games require no physics whatsoever; as Layne noted, it really depends what sort of game(s) you're interested in developing. I also agree with all the other comments I see here so far.

"I'm not back." - Bill Harding, *Twister*

SD Leech

Greenhorn

Posts: 16