Scolring - Forum

Entraides et échanges autour de la technologie Scol - Informations and exchanges on the Scol technology

Vous pouvez changer la langue de l'interface une fois inscrit - You can change the language once registered

You are not logged in.

#1 19-Sep-2017 18:12:53

Useless
Member
Registered: 4-Oct-2016
Posts: 93

AR: how to select a single target?

Hello!
I developing another AR app for a Museum. I have multiple targets distribuited on a single image that serves as background.
The user have to "pick" one of these marker/targets to trigger the right content. But if I am not so much away from the set of images, invevitably all the targets will show in my device camera and the app will visualize me every contents attached to the triggers.
Can I in OS3D set a "interface" when a pop up says "pick your chosen target" and I have to manually tap on the screen to "activate" the trigger?
Is possible to arrange the app for each time the app recognize more than one targets, it force the user to pick manually a target and activate only that target?

Regards, Damiano

Offline

#2 20-Sep-2017 10:09:25

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 5,161
Website

Re: AR: how to select a single target?

Hello,

yes I think it's possible.

you can use a var plugit to increment / decrement the number of found markers.
and check the number to choose the behavior.

Offline

#3 20-Sep-2017 11:07:56

Useless
Member
Registered: 4-Oct-2016
Posts: 93

Re: AR: how to select a single target?

Hello!
Thank you, but I am not sure to have unterstand very well. If you have some spare time, can you post me a small example?
Best regards, Damiano

Offline

#4 20-Sep-2017 11:23:08

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 5,161
Website

Re: AR: how to select a single target?

marker1.found -> var.increment "1"
marker1.lost-> var.decrement "1"
marker2.found -> var.increment "1"
marker2.lost-> var.decrement "1"
....

var.modified -> if.superior > 1
if.true -> several markers are found
if false -> only one or less are found

Offline

#5 20-Sep-2017 11:30:02

Useless
Member
Registered: 4-Oct-2016
Posts: 93

Re: AR: how to select a single target?

Thank you! I will try!
Damiano

Offline

Board footer

Powered by FluxBB