Why physics?

Started by
29 comments, last by hairycoconuts 22 years, 2 months ago
Hey guys, Why is physics important if you are interested in programming etc? i have been thinking about this and still can''t think why! Thankz guys/girls ----------------------- This space is for sale -----------------------
-----------------------This space is for sale-----------------------
Advertisement
Without going into too much detail ...

Say you're writing a flight simulator - you'll have to model aircraft physics to get a realistic flying experience.

Or maybe you want to jump off a wall in a FPS game ... you want some form of gravity to bring you down to ther ground.

I'm doing a space sim - and I'm incorporating orbital calculations and gravitational forces of planets.

How else could you go about realistically incorporating these elements into a game?

Edited by - Shag on January 16, 2002 4:55:08 PM
Games without realistic (or at least consistent) physics are not nearly as entertaining as games with well thought out and well implemented physical systems. Would you want to play a FPS where things (read...pieces of flesh) don''t fall to the ground properly? Or how about a driving game where two cars can drive right through each other? Hell, even games like Super Mario allowed the player to jump on the turtle-looking things and shoot them at her enemies. All of these things required that the designers/programmers had a fair knowledge of physics. As we get better and better at the visual side of gaming, physics and AI (and hopefully gameplay) will be the only things that seperate the good from the mediocre.

FragLegs
5 Years ago, people where happy with things like mario, arcade games, and mortal combat. They had no concept of pyhsics, all they had was a simple integer that said their current speed and decreased it every update. Today, people expect ALOT more, you look at unreal tournament, quake III, tribes (espeasically tribes), ANY current racing sim, ANY flight program be it ms flight sim 2002 or janes combat sim. ALL these games have pretty advanced physics to give the player a more imersive enviroment. Gravity is important, forces, acceleration, mass and so on. If games only simplied modeled this people would tell. It''s more or less expected, while you may not need to major in physics in college, having a very good uinderstanding of high school phyics will go along way, along with a reference, be it a college book, or reference of formulas.

Mind you, there are 2 common ways to do phyics, trigonmetry method (vectors), or calculus method (dervitaves and intergrals.)

You should learn both, vectors can be easier to setup, but certain calc methords compute faster, (not a insane amount of sin cosine calculations)

Anyways, if you intend to do anything more advanced then a 2d arcade game, you''ll need physics.
Trust me everything you need to program a game is dauting,
C/C++
OS API (win32,mac,linux)
3d API (opengl,directx,3dfx ewww!)
sound programming
file mangament
network code
input
physics
possibly asm, but current computers have the speed that you can get away without using asm at all.
then you have to learn to debug your code, organize it,and even optimize it.

Good luck in your programming

-Scott
-Scott
Bingo. So much of game programming is physics! How else will you know how a grenade will bounce and come to a stop? Or how a car should react in a wet condition while going 46.43 mph and attempting a sharp turn? People used to make it look close to right, now it has to be right. Old games used scripted physics. Such as, we''ll make this rock always behave this way. With current games it doesn''t cut it. You best be able to calculate something that at least looks right for a large and diverse game world, or you won''t be selling anything.

Alex Broadwin
A-Tronic Software & Design
-----
"if you fail in life, you were destined to fail. If you suceed in life, call me."
"The answer is out there."
"Please help, I''m using Windows!"
Alex BroadwinA-Tronic Software & Design-----"if you fail in life, you were destined to fail. If you suceed in life, call me.""The answer is out there.""Please help, I'm using Windows!"
Games are simulations of the real world. Physics describes how the real world works. How can you recreate that which you do not understand?
Games are not the only programs out there, however, even though you might not have to know any physics in order to write most office software, and other types of applications, there is more to physics than just the simulation done in games and simulators. You can also use physics to analyze things, so if you ever have to write programs that run certain types of analysis, then you may need to know a bit about physics in order to know how the analysis is supposed to work so that you can implement it in your code. My work deals with this particular aspect. I still do not understand the physics behind everything that we do, since my primary studies have not been in optics, but I have a basic understanding of some of the principles behind it, and that helps me when I have to work on the analysis.

J.W.
My god you guys are smart, you sure no how to explain things!

I hope you don''t mind me hitting you with another question?

Anyhow,

Say i want to design a virus scanner that uses graphics. When i say graphics i mean a total graphics layout, how would i go about doing it? Without the ugly DOS layout?

Can i do it in just C++, without OpenGL?


Thankz for all the input!



-----------------------
This space is for sale
-----------------------
-----------------------This space is for sale-----------------------
A virus-scanner with nice graphics? Now that''d be original. And since it is original, you''ll have to come up with your own graphics for it. But OpenGL doesn''t seem like a good choice for that to me, although you can use it of course. I think you''d better make some simple 2D-graphics engine with just the Windows GDI.

But now I''ve got a question : Where''d you use the graphics in a virus-scanner? Of course, I can imagine that you want to place some nice icon or so next to a "virus found" message or at the very most make a nice skin for it, but really like a game or so graphics for a scanner? Seems weird to me...
Newbie programmers think programming is hard.Amature programmers think programming is easy.Professional programmers know programming is hard.
It would be like virus scan, the skin and creating a window of some sort in the graphics skin? How is it possible to incorporate simple graphics into a C++ program and getting rid of the DOS window layout?

Thanks for all the help!



-----------------------
This space is for sale
-----------------------
-----------------------This space is for sale-----------------------

This topic is closed to new replies.

Advertisement