google-ar / arcore-unity-sdk

ARCore SDK for Unity
https://developers.google.com/ar
Other
1.4k stars 402 forks source link

Augmented Images Question: Multiple Images for Same Visualizer #564

Open dreyZZ opened 5 years ago

dreyZZ commented 5 years ago

Hi, is it possible to use multiple images for the same model? For example; i have a 3D room model and two images(A and B) in the image database. When the image A is detected, the door area should be shown, and when the image B is detected, the window area should be shown.

I have tried this a little, positioning is fine but a model created for each image. Can i change this behaviour or creating a new visualizer for every image is a must?

vjleo commented 5 years ago

Hi @dreyZZ

Try loading the model based on the index of the detected image.

I couldn't understand the "but a model created for each image." part.

NTrixner commented 5 years ago

We solved this by creating anchors for each image once they're tracked, calculating an average transform from the transforms of those anchors, and then creating (or updating) an anchor with that average transform.

garayco commented 5 years ago

@NTrixner Hello, can you go deeper into how to configure the database so that with two images you can see the same content from their respective perspective?