Ejemplo n.º 1
2
        public CubeMap2Form()
        {
            this.textures = new[]
                            {
                                left, right,
                                bottom, top,
                                front, back
                            };
            this.rotates = new []
                           {
                           	Matrix4F.RotateY( -90 ), Matrix4F.RotateY( +90 ),
                           	Matrix4F.RotateX( -90 ), Matrix4F.RotateX( +90 ),
                           	Matrix4F.RotateZ(   0 ), Matrix4F.RotateY( +180 ),
                           };

            this.skybox = new Skybox( 1000, 1000, 1000, back, front, left, right, bottom, top );

            Renderer.Near = 1;
            Renderer.Far = 3000;

            camera.Position.Set( 0, 0, 200 );
        }
        public EnviromentCubeMapForm()
        {
            this.skybox = new Skybox( 300, 300, 300, this.back1, this.front1, this.left1, this.right1, this.bottom1, this.top1 );
            this.camera.Position.Set( 0, 0, 50 );

            this.currentDrawObject = this.cube;
        }
        public NormalizeCubeMapForm()
        {
            this.skybox = new Skybox( 300, 300, 300, this.back1, front1, left1, right1, bottom1, top1 );
            camera.Position.Set( 0, 0, 50 );

            currentDrawObject = cube;
        }
Ejemplo n.º 4
0
        public SkyBoxSampleForm()
        {
            this.skybox1 = new Skybox( 200, 200, 200, this.back1, this.front1, this.left1, this.right1, this.bottom1, this.top1 );
            this.skybox2 = new Skybox( 200, 200, 200, this.back2, this.front2, this.left2, this.right2, this.bottom2, this.top2 );

            this.currentSkybox = this.skybox1;

            WindowSize = new Size( 640, 480 );

            this.RegisterPressed( Keys.D1, elapsed => currentSkybox = skybox1 );
            this.RegisterPressed( Keys.D2, elapsed => currentSkybox = skybox2 );
        }