Questions tagged [interpolation]

The practice of estimating a result (usually numeric) based on a set of known results.

Filter by
Sorted by
Tagged with
0
votes
1answer
95 views

Unity3D - Camera Jitters When Displacing and Rotating Smoothly

DISCLAIMER: I am using Unity 5.6.5f1 for this code, I honestly don't know if there would be API updates on later versions, though I don't think so. I tried to make a simple Third Person Camera that ...
5
votes
1answer
128 views

Interpolating between positions unfeasible at 30 frames per second?

I am working on a 3D platformer in Unity and I am targeting Android devices. The game consists of a lot of objects smoothly interpolating from the bottom of the screen to the top. This whole time I'...
0
votes
0answers
49 views

Help understanding Accidental Noise Gradient function

Background: I am trying to create a set of functions to manipulate noise, similar to Libnoise, Fastnoise and the Accidental Noise Library. The end goal is to produce terrain. As recommended by ...
4
votes
1answer
172 views

Fixed Timestep with Interpolation | Blurry & Choppy

I've been implementing a game loop with a fixed timestep which uses interpolation as described in the (legendary as I have come to find out as it is referenced in almost every post I have read trying ...
0
votes
0answers
45 views

client state interpolation with authoritative game server

I am making a simple 2d real-time browser online game with an authoritative server (like any other .io game). I receive game state snapshots roughly every 50 (40 - ...
0
votes
0answers
12 views

Smoothing noises with different amplitudes (Part 2)

Well, I'm continuing this question without answer (Smoothing random noises with different amplitudes) and I have another question. I have opted to use the contour/shadow of a shape (https://...
0
votes
1answer
93 views

Can you decompose a rotation into a rotation around an axis and a quaternion?

I have a rotation represented by a quaternion and I want to get a rotation angle around the forward axis together with another quaternion which will together represent the original rotation. The ...
2
votes
3answers
635 views

Godot 3.0 Constant 2D Angular Velocity

I am making a Top-Down shooter in Godot 3.0 on Linux. I would like to have my character rotate to face the mouse-pointer at a constant speed, and have rotation speed power-ups that allow the player ...
1
vote
0answers
116 views

Linear Interpolation Implementation

I'm trying to implement entity interpolation into my game. The structure is as follows: Send the keypress states from the client to the server Process the inputs and make calculations based on them ...
1
vote
1answer
41 views

Aim/Scope Oscillation Algorithm

I have been struggling to find an algorithm to implement something that will make a direction oscillate within a cone constraint, in a helix-shaped fashion as in photo (it will always go back to the ...
3
votes
2answers
84 views

Suitable interpolation for animating explosions

Is there a standard interpolation function for animating explosions? Like there is with smoothstep or smootherstep for walking animations or cars going from point A to B. I'm assuming the explosion ...
1
vote
0answers
99 views

How should I implement lag compensation in my racing game?

I've looked around and I see a lot of discussion about lag compensation for FPS's, but none for racing games. I know Mario Kart uses some sort of interpolation for other racers, but it doesn't ...
0
votes
0answers
194 views

Prevent keyframe interpolation in imported model animation in Unity

I made first person model in blender. It also has animations in it. Most of animation works fine, but in some cases, Unity's keyframe interpolation makes wrong result. Note that animation was made ...
0
votes
1answer
129 views

Acceleration in Unity

I am trying to emulate acceleration and deceleration in Unity. I have written to code to generate a track in Unity and place an object at a specific location on the track based on time. The result ...
0
votes
1answer
231 views

Can't figure out what's making the player teleport back to spawn

I've been working on a multiplayer game that uses pathfinding and I'm really confused over this one weird bug. On your screen, the other player glitches between the spawn point and his current ...
1
vote
1answer
147 views

How to smooth rotations?

I have a semi-regularly (15fps to 60fps) sampled source of position and orientation to which I am using dead reckoning to fill in gaps. However, I would like to smooth it further to eliminate any ...
3
votes
0answers
283 views

How to handle increased/decreased latency in client side entity interpolation?

Edit After reading some more questions on this board, I've come up with this potential scheme. Feel free to give any suggestions / criticisms on the scheme I show in the box below. ...
0
votes
1answer
286 views

Smooth Rotate Object While Orbiting

I am working on a 3D game where you can control an object that orbits a sphere with an on-screen virtual joystick. So far I have that part working, but the object follows the joystick angle perfectly ...
1
vote
1answer
261 views

Fixed timestep updates with a variable timestep update

Many suggest that a game loop looks something like this. See: http://gameprogrammingpatterns.com/game-loop.html http://www.koonsolo.com/news/dewitters-gameloop/ https://gafferongames.com/post/...
1
vote
2answers
722 views

Why do my sprites jitter when moving diagonally?

I am working on an low resolution, isometric, pixel game in which several objects move from tile to tile. I do this with this simple interpolation: ...
1
vote
2answers
490 views

OpenGL object movement is not smooth and vibrating

In my android NDK OpenGL C++ project, I have a render method which executes every frame on draw event so this is the algorithm: ...
11
votes
3answers
3k views

Why use Time.deltaTime in Lerping functions?

To my understanding, a Lerp function interpolates between two values (a and b) using a third value (...
1
vote
1answer
157 views

Calculating t value to use with Hermite interpolation

I'm developing an FPS in Unity using Photon for networking. The Photon-provided interpolation is very basic so I decided to roll out my own using the Hermite spline. It works good and is ...
0
votes
1answer
33 views

The difference between shading and data interpolation

Using methods like Phong you can make mesh look smooth and real. However you can do the same interpolation at the data level creating a surface (for example B-Spline surface). What is the difference ...
1
vote
0answers
26 views

Interpolating bent textrues

I am currently making a pressure heat map that will be overlaid on a bent shape (let's say cylinder). I am using a 2d texture that is mapped to the object. The pressure points are also mapped to the ...
0
votes
0answers
567 views

Do I need to make network game fully deterministic to achieve a non-exploitable MOBA/RTS?

First of all - I know some networking concepts and I coded couple games with GDX/Kryonet/...
1
vote
1answer
734 views

Delayed linear interpolation for networking

I'm trying to implement the delayed snapshot interpolation presented at Valve's article and also Gambetta's. My current implementation is almost identical as described in the 'Multiplayer object ...
-1
votes
1answer
104 views

How to smooth viewport panning when using minimap (in typical RTS)?

Let's take typical modern RTS game which features a large map (say 256x256 tiles). There's also a minimap in the GUI, typically up to 256x256 pixels in size. (Let's take these numbers for upcoming ...
1
vote
1answer
811 views

Unity multiplayer with custom server - interpolation jumping

I've built a Server / Client environment for my Unity game which is pretty simple. It is written in C# with asynchronous sockets. To keep it simple, the player sends his input data and the server ...
3
votes
0answers
288 views

HTML5 multiplayer game - how to handle a variable interpolation?

To learn about online game development, I did a HTML5 real-time multiplayer game with NodeJS (server-side), like Agar.io/Slither.io. Server and client updates 60 times/s, but server broadcast packets ...
3
votes
0answers
249 views

networking - how to deal with serverside packet arrival delay?

Let's assume each client sends a packet every 0.05 seconds. (rate = 20) Server update tickrate is 60 and it sends data back to client every 1 / 30 seconds. Now client A has 50ms ping time and it ...
4
votes
1answer
785 views

GLSL “varying” interpolation: component-wise? Reference in the spec?

Probably a dumb question, but I can't find (or am not understanding) a conclusive answer in the spec or in other questions (e.g., this one). For smoothly-interpolated varying ...
0
votes
1answer
53 views

Interpolate object collision stuck in Unity

I am working on a very basic test in 2D. The problem I am having is that, when my sprite collides with the ground, it is checking the event too frequently. The sprite stays in limbo, as it doesn't ...
1
vote
0answers
36 views

Still players keep moving on the clients

With UNET, despite Interpolation is set to None in the NetworkTransform, I've noticed that ...
0
votes
0answers
31 views

Approximating a fourth point with a weighted average between three points?

Given three points, how would one approximate the best positive weights (u, v, w) such that u+v+w = 1, and that the distance ...
2
votes
2answers
1k views

Implementing “Fix Your Time Step”

So far I have this implementation of "FYTS". However I am facing several problems. ...
1
vote
1answer
35 views

Interpolation UNITY taking longer than expected

I'm trying to do multiplayer interpolations with the lidgren network (UDP) but the interpolation is taking longer than expected and the message queue is getting full. It's been a week and I still can'...
3
votes
1answer
456 views

Clientside interpolation - update rate fixed to client framerate

I am trying to implement client side prediction as in this article http://www.gabrielgambetta.com/fpm2.html Currently I'm doing it like this: the game runs at 60 FPS. 60 times per frame I check if an ...
0
votes
1answer
1k views

Box2d Fixed Timestep and Interpolation

I am using libGDX and I have problems implementing the box2d fixed timestep with interpolation. This is my code: ...
1
vote
2answers
1k views

Parametric form of a cubic function

After researching about curves in computer graphics (splines in my case), I have come across something I did not know: Explicit functions like: y=x^2+2 are not the best way to interpolate between ...
1
vote
2answers
418 views

Why aren't regular quadratic and cubic splines used much in games?

After investigating a bit about splines and reading a bunch of docs, I have noticed regular quadratic and cubic splines are not used very much in games. Splines using quadratic/cubic Bézier curves, ...
0
votes
1answer
924 views

real-time multiplayer server, interpolation and prediction validation

I'm building a HTML5 / Websockets based multiplayer canvas game for Facebook and I've been working on the server code for a few days now. While the games pretty simple with a 2d top down, WSAD ...
4
votes
2answers
655 views

Fixed timestep with interpolation & rounding draw positions: jerky animation when the character is not moving

I've implemented a deterministic, fixed timestep system from here: http://gafferongames.com/game-physics/fix-your-timestep/ Everything works fine, output is the same with each step but there's one ...
2
votes
1answer
800 views

Multiplayer game server sync

I am building a 2d multiplayer game with no physics and my own authoritative server. Already have all players getting synced each with other but their movement isn't so smooth yet. Here is the ...
0
votes
1answer
84 views

Evaluate 2D point in a 3D triangle?

Given three points, (x1, y1, z1) (x2, y2, z2) (x3, y3, z3) and given a point "A" at (x, y), how would I find "A'", at (x, y, z)?
0
votes
1answer
142 views

Network interpolation wont work for local player

im currently developing a little duengon crawler. It should have lan multiplayer and it works great but i think im sending to much packets. Should i send packets over network, when a player moves in ...
3
votes
1answer
880 views

Resolving prediction error from client side prediction and server reconciliation

I am writing a network game based on Gabriel Gambetta's articles on client-side prediction/server reconciliation. I have client-side prediction down (using Box2D for prediction) as well as server ...
1
vote
1answer
2k views

Image Interpolaton for Rotation

I am building a 2D game in Java in which I use trig operations for rotation. I know Java offers an excellent graphics library but I intend to make my own code just for learning purposes. Now the ...
1
vote
2answers
2k views

Smooth mesh from voxel grid

Im trying to implement smooth voxel grid meshing using marching cubes algorithm but I dont quite understand how to do the interpolating (I understand that this would solve the problem) to achieve the ...
3
votes
0answers
231 views

How to smooth low-res sampling of noise for voxel terrain

I am attempting to create a new terrain generator as part of a minecraft mod, which works very well if it samples at the full terrain resolution (16x256x16 voxels per terrain chunk). This is extremely ...