Hi David,
you could write a plugin for the Wikitude SDK. Plugins have a hook (Plugin::update(...)) you can implement which is called before any rendering is done. Inside this method you can again make a call into JS using the `-callJavaScript:` method of WTArchitectView or `addToJavaScriptQueue(const std::string& js)` from Plugin.h.
Best regards,
Andreas
Thanks! That sounds great
Hi David,
I'm changing the status to resolved but don't hesitate to ask follow up questions.
Best regards,
Andreas
David Hakim
In the iOS javascript API, is there a way to get a callback prior to an AR frame being rendered ?
I'm interested in re-positioning some drawables ahead of each frame (kind of like in a game loop) in ways that would be complex to do with PropertyAnimations and AnimationGroups alone, but would be very easy if I could just set the position / rotation of the drawable myself every frame.
I realize this would probably be easier if I weren't using the Javascript API :)