banner



How To Detect If An Object Is Outside Of The Camera Unity

Vuforia Play Mode in Unity

Vuforia Play Mode is fully integrated in Unity and information technology is the quickest way to examination your projects during development right at your PC or Mac. Use the Webcam or Simulator play Fashion that is distributed with the Vuforia Engine SDK for Unity to fast-track your development process.

Unity'south Play Mode supports all target types from Vuforia, and it is controlled past using Unity'sPlay, Break,and Pacebuttons. Nosotros present ii Play Modes which enables you lot to apace test your build and targets.

Vuforia Play Modes

  • Webcam
  • Simulator

The two modes can be institute in theVuforia Configuration. From a dropdown menu you can select between them. To enable Vuforia Engine in Unity, please refer to this guide.

Webcam Play Fashion

The Webcam Play Mode uses a webcam to simulate tracking of Vuforia targets at your desk. It requires yous to apply your in-built Webcam in your laptop or connect 1 via USB (External Camera) to your PC. The Vuforia Engine volition automatically detect if a Webcam is available that tin exist chosen from the dropdown menuCamera Device if you have multiple connected.

Testing Targets Types with WEBCAM

Webcam play fashion supports all Vuforia target types except Expanse Targets which is supported just in Simulator Manner. In one case in play mode, the webcam will simulate detection and tracking of your target. Test your target and your content equally you lot would if you had built the Unity Project to your device.

Annotation that device tracking is non equally good on a webcam as information technology would be on your device given that your webcam does not come with any sensors.

Vuforia Ground Plane emulation

To test Vuforia Ground Plane with a Webcam, it is necessary to utilize an Image Target as the basis. A webcam cannot detect and track the ground on its own, then we volition instead emulate the ground with an Paradigm Target. If you are using the Vuforia Cadre Samples, theEmulatorGroundPlane.pdf can be institute inPackages\VuforiaEngineAR\Vuforia\Databases\ForPrint\Emulator or inPackages\com.ptc.vuforia.engine\Vuforia\Database\ForPrint\Emulator

For more than information, delight refer to Introduction to Footing Airplane in Unity.

Simulator Play Mode

This Play Style is purely simulating tracking and detection of your Vuforia targets. When enabled, the simulator mode volition create a virtual space that you lot can move the ARCamera around in and the feature is especially intended for testing Area Targets. That existence said, you tin use other target types independently or simultaneously in the simulator style if you, for instance, practise not have your target nearby or information technology is too large to test with a webcam.

Go toVuforia Configuration and ready the Play mode type toSIMULATOR. The simulator mode allows you to adjust the virtual walking speed as well equally detection distance for simulated tracking and the key bindings for moving effectually. (See beneath Epitome).

Testing Target Types with SIMULATOR

To test one or more of your Vuforia Targets in your build simply add the Vuforia Engine GameObjects in your scene and set them upwardly with the appropriate targets or databases. Upon pressingPlay y'all volition be able to navigate within the space starting at the origin of the ARCamera GameObject.

Target detection in simulation style

Simulator fashion is helpful for positioning and testing your content in relation to scanned areas and other target types.
Starting with Vuforia Engine 9.i, targets will exist reported every bit tracked equally shortly as they come into the virtual photographic camera view and closer than the detection distance divers in theVuforia Configuration.
If the Device Tracker is started, they volition be reported as extended tracked equally soon as they leave the camera view.
This allows rapid prototyping of your application's scripts if they react to targets being detected or out of view, fifty-fifty if you do not have access to the physical targets.

Note:That this imitation detection does not actually use computer vision and therefore does non replace testing the actual detection and tracking quality of your real targets on mobile devices.

Recording Play Mode

Unity'due south Editor Play Mode tin can also be used with video recordings from the Session Recorder API. It is a convenient addition to help yous continuing authoring with your Vuforia Targets even when the target is non available or in vicinity to you. Using a recording in Play Manner requires a video recording made with the Session Recorder API. Run across Recordings and Playback for more than information on creating recordings.

Prepare a Vuforia enabled scene with theARCamera GameObject,and a Vuforia target that was captured in the recording yous previously created.

  1. In theVuforia Configuration,fix the Play Way blazon to – RECORDING.
  2. Scan to the directory of your recording(s) and select one of the session folders.
  3. Change oradd content to your Vuforia target and printingPlay.This will play dorsum the video recording of your Vuforia target and present content according to your scene build.

The work can so continue with exchanging content on the Vuforia target and test it in the recorded sessions and scenarios. We encourage y'all to integrate this feature into your evolution procedure and use recordings to conform your AR app to specific scenarios, environments, Vuforia targets, and even lighting settings, and use the versatile possibilities that a recording tin can offering.

Source: http://library.vuforia.com/articles/Solution/vuforia-play-mode-in-unity.html

Posted by: monroebleenter.blogspot.com

0 Response to "How To Detect If An Object Is Outside Of The Camera Unity"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel