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 30-May-2012 09:53:04

dhika11march
Member
From: Indonesia
Registered: 30-Mar-2012
Posts: 227

making interaction between flash interface with marker

hello,
I want to make an interaction between marker and flash interface.
the case is like this:

when the marker touch the flash interface on the screen, then appear an object.

thanks!

Last edited by dhika11march (30-May-2012 09:54:28)

Offline

#2 15-Jun-2012 05:20:37

dhika11march
Member
From: Indonesia
Registered: 30-Mar-2012
Posts: 227

Re: making interaction between flash interface with marker

helloWWW??

Offline

#3 15-Jun-2012 18:47:49

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

Re: making interaction between flash interface with marker

sorry I don't understand
can you illustrate with a sketch or something

Offline

#4 15-Jun-2012 20:13:13

dhika11march
Member
From: Indonesia
Registered: 30-Mar-2012
Posts: 227

Re: making interaction between flash interface with marker

ok!
I put a flash interface plugIT. I set this interface in the right-center  of screen. I also set the size 30 x 30.
then, I put the ARmarker1 and there is a sphere  object within this marker.
when the marker1 detected by camera, then the sphere object appear on screen.

If the sphere object touch or contact with flash interface, then I want it can caused the event occured. for example showing the image.

ok, I hope you understand what I mean.
thanks!

Offline

#5 15-Jun-2012 22:41:19

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

Re: making interaction between flash interface with marker

ok !!! yes I think I understand better, your flash interface is on the screen as an overlay not on an another marker in 3D.

hmm so to detect the position of the marker against the position of the 2D interface you'll need to calculate the marker 2D position on the screen.
you can get the marker pixel position from the pixel position event of the marker. but this is the position on the webcam picture, so it depend of the webcam resolution.

maybe that you could check the position like this with an math get vector and if plugITs :
marker.pixel position->get vector.in
get vector.X->if1.superior or equal(400)
if1.true -> if2.inferior or equal(500)
...

yes the ifs are a little complicated ^^

Offline

Board footer

Powered by FluxBB