3 ms·
Nice. Looking at this decades after it was written, I'd suggest that a modern book needs more on how light behaves and what physically based rendering is tryin
by Animats 6y ago
Nice.
Looking at this decades after it was written, I'd suggest that a modern book needs more on how light behaves and what physically based rendering is trying to do. Because today you write shaders.
On the other hand, game physics is such a specialized area that it may be worth omitting entirely. Nobody writes their own physics engine any more. Send people to "Physics for Game Developers" for that.
- bruce343434 6y ago> Nobody writes their own physics engine any more Citation needed
- deleted 6y ago[deleted]
- lasagnaphil 6y agoThe scope of the physics engine matters. Every indie dev who’s written a well-made 2D platformer has written their own physics code (you can’t just get the snappiness of platformers with plugging in a general-purpose physics engine.) You can say it’s just fake “pseudo”-physics, but it’s still legitimate to me. On the other hand, if you’re going on a journey to write a general-purpose rigid body physics engine like PhysX for your games (without using any middleware), it’s a lot harder but still doable. For example, Overwatch has its own specialized physics engine (although probably possible because Erin Catto is there...) Roblox also has its own physics engine, and their GDC talks about it are pretty interesting.
- meheleventyone 6y agoUsing a physics engine still requires understanding how to calculate the forces you want to apply which requires a fair understanding of basic mechanics at the very least. There are also definitely people writing their own physics. I did so myself not that long ago for a project. For our constrained problem it only took a week to get going. Then you have the case where you want to write a controller that has physics like behaviour that isn’t readily achievable with middleware easily. A good understanding of the principles behind physics engines helps a lot here. For example the ship motion here is a rigidbody sim I wrote from scratch: https://www.youtube.com/watch?v=bs1p22oI_V4 https://www.youtube.com/watch?v=bs1p22oI_V4 Whereas all the locomotion of individual players including them jetpacking around is hand written behaviour with a simpler Euler integrator for linear motion only. You can try that directly: https://dotbigbang.com/game/3772901474b3423fa21e20bdf0a84cf4/thrust-heroes?mp=hnews https://dotbigbang.com/game/3772901474b3423fa21e20bdf0a84cf4... Then the good old damped spring is an amazingly versatile tool to have available in all sorts of weird places.
- deleted 6y ago[deleted]
- lasagnaphil 6y agoWriting a general-purpose rigid-body physics engine like PhysX or Havok is probably overkill for most games (unless you’re a big enough company like Blizzard who can recruit developers specialized in physics). The Newtonian physics itself isn’t really that hard (unless you’re doing robotics-style articulated bodies), but detecting collisions and resolving contact and friction forces is where most of the difficulty lies in. But a lot of simpler, specialized stuff is perfectly doable even for indie devs. For example, if you’re writing a platformer, chances are that you don’t need to go full-realism and only need “pseudo”-physics with lots of assuptions. Maybe all of your objects only need box or sphere colliders so you can greatly simplify your collision detection. Or maybe you just need physics for some effects (such as ropes or cloth), which you can code easily with minimal research. Remember, when you’re writing games, you don’t need to go full realism, you can probably “fake” a lot of things!