private string getSceneName(TUTORIALS tutorial)
    {
        switch (tutorial)
        {
        case TUTORIALS.HELLO_WORLD:
            return("HelloWorld");

        case TUTORIALS.CONTENT_TYPES:
            return("ContentTypes");

        case TUTORIALS.TRACKING_SAMPLES:
            return("TrackingSamples");

        case TUTORIALS.DYNAMIC_MODELS:
            return("DynamicModels");

        case TUTORIALS.LOCATION_BASED_AR:
            return("LocationBasedAR");

        case TUTORIALS.INSTANT_TRACKING:
            return("InstantTracking");

        case TUTORIALS.EDGE_BASED_INITIALIZATION:
            return("EdgeBasedInitialization");

        case TUTORIALS.FACE_TRACKING:
            return("FaceTracking");

        case TUTORIALS.INTERACTIVE_FURNITURE:
            return("InteractiveFurniture");

        case TUTORIALS.VISUAL_SEARCH:
            return("VisualSearch");

        case TUTORIALS.STEREO_RENDERING:
            return("StereoRendering");

        case TUTORIALS.UNITY_PHYSICS:
            return("UnityPhysics");

        case TUTORIALS.QR_CODE_READER:
            return("QRCodeReader");
        }

        return("");
    }
    private string getKeyMethods(TUTORIALS tutorial)
    {
        switch (tutorial)
        {
        case TUTORIALS.HELLO_WORLD:
            return("");

        case TUTORIALS.CONTENT_TYPES:
            return("startMovieTexture()\nIMetaioSDK::loadEnvironmentMap()");

        case TUTORIALS.TRACKING_SAMPLES:
            return("IMetaioSDK::setTrackingConfiguration()\nIMetaioSDK::setCoordinateSystemID()");

        case TUTORIALS.DYNAMIC_MODELS:
            return("IMetaioSDK::getTrackingValues()");

        case TUTORIALS.LOCATION_BASED_AR:
            return("setTranslationLLA()");

        case TUTORIALS.INSTANT_TRACKING:
            return("IMetaioSDK::startInstantTracking()\nonInstantTrackingEvent()");

        case TUTORIALS.EDGE_BASED_INITIALIZATION:
            return("IMetaioSDK::setTrackingConfiguration()\nIMetaioSDK::sensorCommand()");

        case TUTORIALS.FACE_TRACKING:
            return("IMetaioSDK::setTrackingConfiguration");

        case TUTORIALS.INTERACTIVE_FURNITURE:
            return("");

        case TUTORIALS.VISUAL_SEARCH:
            return("requestVisualSearch()\nregisterVisualSearchCallback()\nonVisualSearchResult()\nonVisualSearchStatusChanged()");

        case TUTORIALS.STEREO_RENDERING:
            return("setStereoRendering()\nsetSeeThrough()\nsetSeeThroughColor()\nsetHandEyeCalibration()");

        case TUTORIALS.UNITY_PHYSICS:
            return("Learn how to use Unity's physics engine.");

        case TUTORIALS.QR_CODE_READER:
            return("IMetaioSDK::setTrackingConfiguration()\nIMetaioSDKCallback::onTrackingEvent()\nTrackingValues::getAdditionalValues()");
        }

        return("name not defined");
    }
    private GUIStyle getTutorialIcon(TUTORIALS tutorial)
    {
        switch (tutorial)
        {
        case TUTORIALS.HELLO_WORLD:
            return(TutorialHelloWorldPreview);

        case TUTORIALS.CONTENT_TYPES:
            return(TutorialContentTypesPreview);

        case TUTORIALS.TRACKING_SAMPLES:
            return(TutorialTrackingSamplesPreview);

        case TUTORIALS.DYNAMIC_MODELS:
            return(TutorialDynamicModelsPreview);

        case TUTORIALS.LOCATION_BASED_AR:
            return(TutorialLocationBasedARPreview);

        case TUTORIALS.INSTANT_TRACKING:
            return(TutorialInstantTrackingPreview);

        case TUTORIALS.EDGE_BASED_INITIALIZATION:
            return(TutorialEdgeBasedInitializationPreview);

        case TUTORIALS.FACE_TRACKING:
            return(TutorialFaceTrackingPreview);

        case TUTORIALS.INTERACTIVE_FURNITURE:
            return(TutorialInteractiveFurniturePreview);

        case TUTORIALS.VISUAL_SEARCH:
            return(TutorialVisualSearchPreview);

        case TUTORIALS.STEREO_RENDERING:
            return(TutorialStereoRenderingPreview);

        case TUTORIALS.UNITY_PHYSICS:
            return(TutorialUnityPhysicsPreview);

        case TUTORIALS.QR_CODE_READER:
            return(TutorialQRCodeReaderPreview);
        }

        return(TutorialHelloWorldPreview);
    }
    private string getLearn(TUTORIALS tutorial)
    {
        switch (tutorial)
        {
        case TUTORIALS.HELLO_WORLD:
            return("How to place 3D model to the scene and apply model transformations.");

        case TUTORIALS.CONTENT_TYPES:
            return("How to place image and video as a content. Load environment map to a 3D model. Controlling playback of the movie.");

        case TUTORIALS.TRACKING_SAMPLES:
            return("How to use ID and picture marker, markerless tracking technique. Assign multiple tracking references in one configuration file.");

        case TUTORIALS.DYNAMIC_MODELS:
            return("Starting model animation. Handling touch events. Getting tracking values of the scene.");

        case TUTORIALS.LOCATION_BASED_AR:
            return("Load POI to the scene. Create custom graphics to billboards. How to use non-optical tracking technology. Add radar into your scene.");

        case TUTORIALS.INSTANT_TRACKING:
            return("Instant 2D and 3D (SLAM) tracking techniques. Rectify a camera image so that an object is displayed correctly on a flat surface. For instant 3D tracking we recommend to move around the scene like on the picture below to create a map.");

        case TUTORIALS.EDGE_BASED_INITIALIZATION:
            return("Use a 3D model for initial camera registration and continue with Markerless 3D tracking in a real world scale. Loading and configuring models for Edge Based Initialization. For indoor or outdoor applications and with fixed or freely navigable view");

        case TUTORIALS.FACE_TRACKING:
            return("How to perform face tracking (beta)");

        case TUTORIALS.INTERACTIVE_FURNITURE:
            return("Currently unavailable.");

        case TUTORIALS.VISUAL_SEARCH:
            return("Request a visual search. Register visual search callback to monitor the status of visual search and perform tracking if successful.");

        case TUTORIALS.STEREO_RENDERING:
            return("How to enable and configure stereo rendering and see-through mode.");

        case TUTORIALS.UNITY_PHYSICS:
            return("Learn how to use Unity's physics engine.");

        case TUTORIALS.QR_CODE_READER:
            return("How to implement QR Code reader");
        }

        return("name not defined");
    }
 public void goToTutorial(TUTORIALS tutorial)
 {
     state           = STATES.TUTORIAL;
     currentTutorial = tutorial;
 }
Beispiel #6
0
 public void goToTutorial(TUTORIALS tutorial)
 {
     state = STATES.TUTORIAL;
     currentTutorial = tutorial;
 }
Beispiel #7
0
    private string getTutorialName(TUTORIALS tutorial)
    {
        switch (tutorial) {

        case TUTORIALS.HELLO_WORLD:
            return "Hello, World!";
        case TUTORIALS.ADVANCE_TRACKING:
            return "Tracking samples";
        case TUTORIALS.DEGREES_360:
            return "360 Degrees";
        case TUTORIALS.LOCATION_BASED:
            return "Location based AR";
        case TUTORIALS.MOVING_OBJ_OR_CAM:
            return "Moving the Camera";
        case TUTORIALS.SLAM_3D:
            return "Instant tracking";
        }

        return "name not defined";
    }
Beispiel #8
0
    private GUIStyle getTutorialIcon(TUTORIALS tutorial)
    {
        switch (tutorial) {

        case TUTORIALS.HELLO_WORLD:
            return helloWorldPreview;
        case TUTORIALS.ADVANCE_TRACKING:
            return AdvancedTrackingPreview;
        case TUTORIALS.DEGREES_360:
            return Degrees360Preview;
        case TUTORIALS.LOCATION_BASED:
            return LocationBasedPreview;
        case TUTORIALS.MOVING_OBJ_OR_CAM:
            return MovingCamPreview;
        case TUTORIALS.SLAM_3D:
            return InstantTrackingPreview;
        }

        return helloWorldPreview;
    }
Beispiel #9
0
    private string getTutorialDescription(TUTORIALS tutorial)
    {
        switch (tutorial) {

        case TUTORIALS.HELLO_WORLD:
            return "Here you will learn how to assign content to tracking reference.";
        case TUTORIALS.ADVANCE_TRACKING:
            return "Learn different tracking reference types.";
        case TUTORIALS.DEGREES_360:
            return "Learn how to position the objects around you.";
        case TUTORIALS.LOCATION_BASED:
            return "Learn about LLA coordinates and POI.";
        case TUTORIALS.MOVING_OBJ_OR_CAM:
            return "Moving the Camera to be able to use unity's physics engine.";
        case TUTORIALS.SLAM_3D:
            return "Introduction to instant 2D and 3D tracking.";
        }

        return "name not defined";
    }
Beispiel #10
0
    private string getSceneName(TUTORIALS tutorial)
    {
        switch (tutorial) {

        case TUTORIALS.HELLO_WORLD:
            return "HelloWorld";
        case TUTORIALS.ADVANCE_TRACKING:
            return "AdvancedTracking";
        case TUTORIALS.DEGREES_360:
            return "360Degrees";
        case TUTORIALS.LOCATION_BASED:
            return "LocationBasedTracking";
        case TUTORIALS.MOVING_OBJ_OR_CAM:
            return "MovingCamera";
        case TUTORIALS.SLAM_3D:
            return "Slam3D";
        }

        return "";
    }