Hi all,
I cannot seem to figure out how to override the default marker behaviour.
What I want is this:
- on losing the marker -> interpolate camera to a position close to the object being tracked
- on finding the marker -> interpolate camera back to the tracked position.
So basically I would like to find out what the transformation matrix of the camera should be when a marker is detected, without updating the camera itself.
best,
Hans
Hi Pierre,
no I am using a framemarker at the moment. Although using the image marker with extended tracking is also an option, with both marker types it is possible to lose track of the marker at some point.
My question is about what I would like to do when that happens.
What I have now:
on losing marker track: interpolate camera smoothly to an upclose view of the model that should be on the marker
What I would like to add is:
on regaining marker track: interpolate camera smoothly back to accurately tracking the object on the marker.
In the end I used onTrackersUpdated() (or something similar) to do what I want, then it turned out to be a crappy solution game play wise, so now I ditched the interpolation all together and just show some static special effects when the marker is lost :).
best
Hans