for you, and anyone else who comes looking it's pretty simple
go to
https://gist.github.com/jankolkmeier/8543156
download the gist,
drop files into assets folder in unity editor
Drag smoothcamera.cs onto the ARcamera in your scene.
Set smooth amount in inspector.
However!
You may need to make a few tweaks if you're using 4.+ This code throws some showstopping errors, below is how I figured out how to get it working.
You need to edit SmootCamera.CS,
Firstly add Vuforia. to QCARBehaviour and ITrackerEventHandler like below
From
[RequireComponent(typeof (QCARBehaviour))]
public class SmoothCamera : MonoBehaviour,ITrackerEventHandler {
public int smoothingFrames = 10;
private QCARBehaviour qcarBehavior;
to
[RequireComponent(typeof (Vuforia.QCARBehaviour))]
public class SmoothCamera : MonoBehaviour, Vuforia.ITrackerEventHandler {
public int smoothingFrames = 10;
private Vuforia.QCARBehaviour qcarBehavior;
also in void start remove the 'true' at the end
from
// Use this for initialization
void Start () {
rotations = new Queue<Quaternion>(smoothingFrames);
positions = new Queue<Vector3>(smoothingFrames);
qcarBehavior = GetComponent<Vuforia.QCARBehaviour>();
qcarBehavior.RegisterTrackerEventHandler(this, true);
}
To
// Use this for initialization
void Start () {
rotations = new Queue<Quaternion>(smoothingFrames);
positions = new Queue<Vector3>(smoothingFrames);
qcarBehavior = GetComponent<Vuforia.QCARBehaviour>();
qcarBehavior.RegisterTrackerEventHandler(this);
}
hopefully this gets addressed in coming releases, but this is an acceptable solution to camera judder for now
thanks to jank below for code
If I use Math3d.cs and SmoothCamera.cs, will it make a difference what the World Center Mode is? What about enabling Extended Tracking? Using Vuforia 8.5