Skip to content

Add Text Node #25

Answered by CariusLars
Doppelklick asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Doppelklick,

I'm not 100% sure what you mean with dynamic text, but here are some ideas:

  • If you want to "measure" the distance from the camera to the object and display that as a text in your app, you can use the getCameraPose() in the ARSessionManager and calculate the distance between the camera and your object using the returned pose and the world position of your respective object. You can then add a text widget in your flutter app that displays the result, dynamic updates could be achieved by e.g. calling the method in each new frame and updating the widget using stateful widgets or the provider pattern. Please note that the getCameraPose() method is not on the main branch yet, …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by CariusLars
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants