Ejemplo n.º 1
0
    public void Present(MultimediaObject mmo, bool loadInRange = true)
    {
        Debug.Log("Presenting " + mmo.id);
        //panelSwitcher.SwitchToDisplay();

        panelManager.ShowPanel("display");

        presenter.LoadImage(CineastUtils.GetImageUrl(mmo));
        logger.Debug("URL: " + CineastUtils.GetImageUrl(mmo));


        alphaController.SetAlpha(0.5f);

        if (controller.GetHeading(mmo) != -1)
        {
            headingDisplay.targetHeading = controller.GetHeading(mmo);
        }

        infoText.text = string.Format("Index: {0}\nDate: {1}", mmo.resultIndex, FormatDate(mmo));
        activeMmo     = mmo;

        if (loadInRange)
        {
            Debug.Log("LOAD IN RANGE");
            List <MultimediaObject> inRangeList = controller.GetInRange(activeMmo);
            temporalSlider.Setup(inRangeList, activeMmo); // ArgumentNull in DatetimeParser, parameter name s
        }

        controller.StopLocationServices();
        // TODO Remove activeMMO and restart location service
    }
Ejemplo n.º 2
0
        private void Display3D(MultimediaObject mmo)
        {
            logger.Debug("Displaying AR style! " + mmo.id);
            var scrn         = Instantiate(ScreenPrefab);
            var mmoContainer = scrn.AddComponent <MMOContainer>();
            var textured     = scrn.GetComponentInChildren <WebTextured>();

            if (textured == null)
            {
                textured = scrn.AddComponent <WebTextured>();
            }
            textured.url = CineastUtils.GetImageUrl(mmo); // Too high res?
            //textured.url = CineastUtils.GetThumbnailUrl(mmo);
            textured.LoadImageFromWeb();
            mmoContainer.MultimediaObject = mmo;
            var geoposed = scrn.AddComponent <GeoPositioned>();

            geoposed.GeoCoordinates = new GeoArithmetic.GeoCoordinates(mmo.latitude, mmo.longitude);
            geoposed.Bearing        = (float)mmo.bearing;
            arMapper.AddGeoPositioned(geoposed);
            ActiveScreens.Add(scrn);
        }