Log in or register to post comments

Combine 2 image target to show one 3D object.

September 13, 2017 - 10:45pm #1

Hi everyone,

I would like to do a project as below:

Image marker 1 = 3D object 1

Image marker 2 = 3D object 2

Image marker 1 + Image marker 2  = 3D object 4

I have done to create 16 single image marker with 3D model, animation, and sound. However, I am stuck at image marker combination.

thanks,,

Combine 2 image target to show one 3D object.

February 22, 2019 - 8:04am #6

How would a script look for the 2 images to = 1 3d object? 

Combine 2 image target to show one 3D object.

January 29, 2018 - 7:14pm #5

thanks...I'll try the below suggestion. :)

Combine 2 image target to show one 3D object.

September 18, 2017 - 5:11pm #4


In the code you have there, you are checking if the same trackable is both "t" and "apple."  What you'll need in order to get this functioning is to have code in a more central place keep track of which trackables are found and then augment the 3D object when the correct combination is found.

A short example would be:

if (mTrackableBehaviour.TrackableName == "t")
{
    // set flag on external object
}
else if (mTrackableBehaviour.TrackableName == "apple")
{
    // set separate flag on external object
}

Then have your other object check when both of these flags are set and augment the correct 3D object.

Thanks,

-Vuforia Support

 

Combine 2 image target to show one 3D object.

September 15, 2017 - 6:15pm #3

i wrote this code and i got nothing 

if (mTrackableBehaviour.TrackableName == "t" && mTrackableBehaviour.TrackableName == "apple")

            {

                GameObject.Find("congCube").SetActive(true);

            }

i added this code

on private void OnTrackingFound()

please tell me where can i write this code

Combine 2 image target to show one 3D object.

September 14, 2017 - 9:32am #2

Hello hayssam1,

I can think of two different approaches to this.

The first is to set the max number of simultaneous images tracked to a value greater than 1 in the Vuforia configuration. Now you'll be able to track multiple images and you can write code to display a different model if a combination of images are detected.

The second is you could create additional image targets that are two of the other image targets combined and thus a different detection would happen if they were seen together.

Let me know if you have further questions.

Thanks,

-Vuforia Support

Log in or register to post comments