Register to reply

Video Game Graphics and Physics

by cytochrome
Tags: game, graphics, physics, video
Share this thread:
cytochrome
#1
Oct19-13, 06:29 PM
P: 162
I was numerically solving the wave equation earlier just to produce a simple illustration of a vibrating string and my computer was working pretty hard. Then I realized how many video games nowadays have such awesome graphics with things like water, waves, motion in general, etc... Are these consoles numerically solving PDEs with obscure boundary conditions to make these animations??? If that's the case, it really makes you appreciate how powerful these consoles can be (especially when user input can alter the equations and boundary conditions and run so smoothly).


My question: Are gaming consoles numerically solving PDEs with obscure boundary conditions to make animations?
Phys.Org News Partner Physics news on Phys.org
IHEP in China has ambitions for Higgs factory
The physics of lead guitar playing
The birth of topological spintronics
willem2
#2
Oct19-13, 06:58 PM
P: 1,395
Quote Quote by cytochrome View Post


My question: Are gaming consoles numerically solving PDEs with obscure boundary conditions to make animations?
This certainly looks like it

http://www.youtube.com/watch?v=62zPjIXXSqw
Borek
#3
Oct20-13, 02:57 AM
Admin
Borek's Avatar
P: 23,363
Quote Quote by cytochrome View Post
My question: Are gaming consoles numerically solving PDEs with obscure boundary conditions to make animations?
Highly doubtful. As far as I am aware in most cases they don't simulate real water behavior, they rather use algorithms that make the surface "look good". Sophisticated cheating in other words.

See if this page: http://vterrain.org/Water/ doesn't help.

B4ssHunter
#4
Oct20-13, 03:36 AM
P: 178
Video Game Graphics and Physics

there was this video in which they used what they call " real physics engine "
i then went on to read more about this engine , it claims that it uses real-life physical computations to compute the movement of particles like dust , bullets and whatsoever , i dont remember the name of the video
but it was for one of UnReal games * no pun its just the name of the game :p *
also check this PhysX engine
to quote wikipedia
" It supports rigid body dynamics, soft body dynamics, ragdolls and character controllers, vehicle dynamics, volumetric fluid simulation and cloth simulation including tearing and pressurized cloth. "
cytochrome
#5
Oct20-13, 05:50 PM
P: 162
Quote Quote by B4ssHunter View Post
there was this video in which they used what they call " real physics engine "
i then went on to read more about this engine , it claims that it uses real-life physical computations to compute the movement of particles like dust , bullets and whatsoever , i dont remember the name of the video
but it was for one of UnReal games * no pun its just the name of the game :p *
also check this PhysX engine
to quote wikipedia
" It supports rigid body dynamics, soft body dynamics, ragdolls and character controllers, vehicle dynamics, volumetric fluid simulation and cloth simulation including tearing and pressurized cloth. "

Yes that's what I was looking for. That is truly amazing if you ask me... I wonder if physicists and engineers working in computational mechanics realize that their work is also being used in video games? LOL...
SteamKing
#6
Oct20-13, 06:10 PM
Emeritus
Sci Advisor
HW Helper
Thanks
PF Gold
P: 6,272
No, they're totally oblivious to such things.

I'm curious as to what you mean by 'PDEs with obscure boundary conditions'. Most of the PDEs describing fluid flow and such have relatively simple and quite common boundary conditions.
cytochrome
#7
Oct21-13, 08:29 PM
P: 162
Quote Quote by SteamKing View Post
No, they're totally oblivious to such things.

I'm curious as to what you mean by 'PDEs with obscure boundary conditions'. Most of the PDEs describing fluid flow and such have relatively simple and quite common boundary conditions.
Obscure was the wrong word, I meant seemingly random or a wide variety of boundary conditions. When you have user input and there's a bunch of possibilities you can get a wide array of boundary conditions. Sorry for the misuse of that word, I can't think of any boundary value problems that would arise in a videogame that aren't capable of being solved numerically...
AlephZero
#8
Oct21-13, 09:09 PM
Engineering
Sci Advisor
HW Helper
Thanks
P: 6,928
Quote Quote by SteamKing View Post
No, they're totally oblivious to such things.
Not quite oblivious. A lot of "serous" numerical computing is taking a ride on the back of the hardware developed for mass-market computer gaming (e.g. the large scale parallel processing hardware in graphics cards), and the low hardware costs that come from large production runs.

But the objectives are very different even if the hardware and even some of the numerical methods are the same. A video game animation has to look right (or at least, not look too wrong) when it is computed in real time. And if it doesn't look quite right, adding some smoke, flames, and/or sound effects can easily ihide that fact!. An engineering simulation has to be right, not just look pretty, but getting answers in real time is usually irrelevant. At work, we use simulations that run for hundreds of hours, to compute what happens to something in a few milliseconds.
cytochrome
#9
Oct22-13, 06:02 PM
P: 162
Quote Quote by AlephZero View Post
At work, we use simulations that run for hundreds of hours, to compute what happens to something in a few milliseconds.
I do the same thing with molecular dynamics simulations. It takes weeks to get a few nanoseconds in real time. I'd like to get into more classical simulations (even though molecular dynamics is primarily classical mechanics...) like fluid flow or vibrations.

Out of curiosity, what do you do?


Register to reply

Related Discussions
Video Game: The Last of Us Computing & Technology 21
Want to be in computer graphics/game programming please guide Academic Guidance 1
Computational mathematics/computational physics and the video game industry Career Guidance 11
Making an isometric game...how do i set up the graphics? Computing & Technology 0
Game graphics Computing & Technology 12