2,202 reputation
411
bio website gabrielgambetta.com
location
age 33
visits member for 3 years, 7 months
seen 7 hours ago

Software Engineer at Google Zürich.

I write stuff in my website. The most popular here is the Fast-Paced Multiplayer series.

Former Founder, Director and CTO of Mystery Studio, a small independent game developer.


Jan
14
answered What is the purpose of indices in 3D rendering?
Dec
20
answered character movement data passing on server
Dec
19
awarded  Yearling
Dec
12
comment Storing a Quadtree
You can pass the current node's AABB to read_node() and compute the children's AABBs there, but unless you're short on space, why not just store them?
Dec
12
answered Storing a Quadtree
Dec
6
comment Changing the rendering resolution while maintaining the design layout
Really? What do you mean by "quality"? With the right scaling filters, I was surprised by how good the quality was when doing it like this. Are you using bilinear filtering?
Dec
5
answered Changing the rendering resolution while maintaining the design layout
Dec
5
comment Divide rectangular image into fixed number of random sized rectangles + 1 fixed size rectangle
You're welcome, happy to help :)
Dec
4
answered Divide rectangular image into fixed number of random sized rectangles + 1 fixed size rectangle
Nov
24
answered What is the difference between an API, Framework, IDE, and Game Engine?
Nov
18
comment directional lightning
incident = lightPos, then. You compute incident which is the vector from the light to the point - the direction from which the light hits the point in the surface. By definition, every ray of a directional light has the same direction (hence the name), so the incident vector at any point in the surface is the light's direction.
Nov
18
answered directional lightning
Nov
18
answered Multiplayer object interpolation
Nov
17
comment Identity matrix. Confusion. What does it really do
You're welcome! As for this question, taking a stab in the dark... could it be similar to why car wheels look like they slow down and start rotating backwards? See en.wikipedia.org/wiki/Wagon-wheel_effect, en.wikipedia.org/wiki/Stroboscopic_effect and youtube.com/watch?v=rVSh-au_9aM
Nov
17
answered Identity matrix. Confusion. What does it really do
Nov
16
answered what is order of implementation of matrix transforms?
Nov
16
answered Calculate Distance Using Lifetime, Speed, and Time Between Ticks
Nov
8
answered How do multi-platform games usually store save data?
Nov
7
answered How to syncronize two animations without delays
Nov
7
comment How does client-side prediction work?
That's an interesting question. Unfortunately, I don't have a definitive answer. I guess it depends on how critical the movements are for the game; do you just bump into someone else and nothing happens? In that case server probably doesn't care, it's seen as a prediction mistake (we've all seen it happen in choke points, right?). Do you kill the other player on contact? In that case getting it right is much more important and may be worth resimulating.Note that at some point you need to discard some packets as "too old", otherwise you'd be resimulating potentially from t=0 at any time.