Log in or register to post comments

Help! Creating a simple AR

October 13, 2016 - 3:17am #1


I want to make a simple AR functionality in unity. Like standard marker-based detection and augmentation. But with a slightly different approach.

So, this is what I want to do : 

  1.  A Camera scans the marker.
  2. The marker gets detected.
  3. The marker gets detected but there should be no augmentation
  4. But when user clicks/fire event (Button) the augmentation should start, but in a split second, tho. So that the augmentation on camera is captured and saved as an images, and then get deactivated/hidden/no augmentated. So that no one could see the augmentation on a visible scale, but we can able to see augmentation in a marker in the image.


I not able to figure it how, I did simple activation and deactivation of the object's render component but it doesn't seems to work as I wanted. Also for taking screenshot I'm testing with this :

IEnumerator Capture() 
   yield return new WaitForEndOfFrame();

But I'm not able to get it what to do in DefaultTrackableEventHandler.cs to achieve what I want.

Any Help would be appreciated.


Help! Creating a simple AR

October 15, 2016 - 12:28pm #2

could you explain in more detail of what happened when you enabled the render component? If you were unable to see the render in the image then you might have to use Time.frameCount to let the render stay on for a few frames before calling tracking lost. 

Log in or register to post comments