예제 #1
0
        private void Display3D(ObjectData 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 = TemporaryCompatUtils.GetImageUrl(mmo); // Too high res?
            //textured.url = CineastUtils.GetThumbnailUrl(mmo);
            textured.LoadImageFromWeb();
            mmoContainer.MultimediaObject = mmo;
            var geoposed = scrn.AddComponent <GeoPositioned>();
            var lat      = MetadataUtils.GetLatitude(mmo.Metadata);
            var lon      = MetadataUtils.GetLongitude(mmo.Metadata);
            var bearing  = MetadataUtils.GetBearing(mmo.Metadata);

            geoposed.GeoCoordinates = new GeoArithmetic.GeoCoordinates(lat, lon);
            geoposed.Bearing        = (float)bearing;
            arMapper.AddGeoPositioned(geoposed);
            ActiveScreens.Add(scrn);
        }
예제 #2
0
 private void SetTimeTerm(int lower, int upper)
 {
     timeComp = TemporaryCompatUtils.ConvertYearToISO8601((lower + upper) / 2);
 }