Exemplo n.º 1
0
        public void LoadContent(ContentManager content, string modelName, string videoName)
        {
            Model = content.Load<Model>(modelName);
            //VideoElementType = modelName;
            BoundingBox = new BoundingBox();
            //  scale = new Vector3();
            //   transformMatrix = new Matrix();
            //  bb_size_min = GetBoundingBoxSize(Model, transformMatrix).Min;
            //  bb_size_max = GetBoundingBoxSize(Model, transformMatrix).Max;

            Position = new Vector3(0, 12, 0);
            Rotation = new Vector3(0, 0, 0);
            scale = new Vector3(1.0f, 1.0f, 1.0f);
            bb_size = new Vector3(16, 9, 0.02f);

            // Load a video, and initialize a player
            video = content.Load<Video>(videoName);
            player = new VideoPlayer();
            player.IsLooped = true;

            //videoElementIsActive = false;
            //videoElementIsOnFront = false;

            //gestureScaleAccelerationFactor = 1.0f;
            gestureScaleIncrement = 0.004f;

            timer = new Timer();
        }
Exemplo n.º 2
0
        public void LoadContent(ContentManager content, string modelName, string pictureName)
        {
            Model = content.Load<Model>(modelName);
            PictureWindowType = modelName;
            BoundingBox = new BoundingBox();
            //  scale = new Vector3();
            //   transformMatrix = new Matrix();
            //  bb_size_min = GetBoundingBoxSize(Model, transformMatrix).Min;
            //  bb_size_max = GetBoundingBoxSize(Model, transformMatrix).Max;

            Position = new Vector3(0, 12, 0);
            Rotation = new Vector3(0, 0, 0);
            scale = new Vector3(1.0f, 1.0f, 1.0f);
            bb_size = new Vector3(8, 6, 0.02f);

            // Load a picture
            mediaSources = MediaSource.GetAvailableMediaSources();
            mediaLib = new MediaLibrary();
            picCollection = mediaLib.Pictures;

            currentPic = 1;
            //pic = Texture2D.FromStream(GraphicsDevice, picCollection[currentPic].GetImage());
            pic = content.Load<Texture2D>(pictureName);

            //pictureWindowIsActive = false;
            //pictureWindowIsOnFront = false;

            //gestureScaleAccelerationFactor = 1.0f;
            gestureScaleIncrement = 0.004f;

            timer = new Timer();
        }
Exemplo n.º 3
0
        public void LoadContent(ContentManager content, string modelName)
        {
            Model = content.Load<Model>(modelName);
            InterfaceBoxType = modelName;
            BoundingBox = new BoundingBox();
            //   transformMatrix = new Matrix();
            bb_size_min = new Vector3();
            bb_size_max = new Vector3();
            //  bb_size_min = GetBoundingBoxSize(Model, transformMatrix).Min;
            //  bb_size_max = GetBoundingBoxSize(Model, transformMatrix).Max;

            boundingBoxTranslate = new Vector3(0.5f, 1.0f, 0.125f);
            //bb_size = new Vector3(4f, 3f, 1f);
            boundingBoxPositionFix = new Vector3(0f, 1.5f, 0f);

            debugDraw = new DebugDraw(Game.GraphicsDevice);

            timer = new Timer();
        }