Skip to main content
Participant
July 28, 2016

Camera jitter in Unity 5

We're working on a new build of End Space and we've been noticing this weird camera jitter showing up sometimes. It consistently shows up at the end of a level when the level end GUI pops up and causes all the GUI elements and the cockpit to shake. It also appears at other seemingly times but then usually just on GUI elements. I recorded a video to show you what I mean: https://youtu.be/nhgLI8nai_0

Has anyone else experienced the 'jitter bug' (now you've got this stuck in your head, right?) or does anyone know what is causing it? It's present in Unity 5.3.5p7 and 5.4.0f3 on Rift and Gear VR

2 replies

eljaydubAuthor
Participant
August 1, 2016
Turns out this problem is due to Floating Point Imprecision as we move to large values of X,Y,Z on the WarpIn and WarpOut events in the scene.

You can read more about it and find some possible solutions in this paper:
http://scottbilas.com/files/2003/gdc_san_jose/continuous_world_paper.pdf

And in this youtube video:
https://youtu.be/mXTxQko-JH0?t=4m7s
Inspiring
August 1, 2016
Cool. Moving this to the Developer section. You can switch to the Developer section using the drop-down menu on the top right. Thanks.
AMD Ryzen 7 1800X | MSI X370 Titanium | G.Skill 16GB DDR4 3200 | EVGA SuperNOVA 1000 | Corsair Hydro H110i Gigabyte RX Vega 64 x2 | Samsung 960 Evo M.2 500GB | Seagate FireCuda SSHD 2TB | Phanteks ENTHOO EVOLV