Пример #1
0
 public Linterna(Vector3 Direccion1, Vector3 Posicion1)
 {
     this.init();
     this.Direccion    = Direccion1;
     this.Posicion     = Posicion1;
     this.SpotAngle    = 20f;
     this.SpotExponent = 40f;
     this.Intensity    = VALORMAXIMOINTENSIDAD;
     this.Encendida    = false;
     this.color        = Color.White;
     this.Attenuation  = 0.1f;
     this.SpecularEx   = 9f;
     barra             = new Barra();
 }
Пример #2
0
        override public void init()
        {
            tipo           = Tipo.Vela;
            this.Encendida = true;
            var loader = new TgcSceneLoader();

            vela1 = loader.loadSceneFromFile(GuiController.Instance.ExamplesMediaDir + "MeshCreator\\Meshes\\Objetos\\Vela\\Vela-TgcScene.xml");
            vela1.Meshes[0].Scale    = new Vector3(2f, 2f, 2f);
            vela1.Meshes[0].Position = GuiController.Instance.CurrentCamera.getPosition() + new Vector3(-30f, -20f, 60f);
            vela1.Meshes[0].Rotation = new Vector3(Geometry.DegreeToRadian(-5f), Geometry.DegreeToRadian(-14f), Geometry.DegreeToRadian(0f));
            barra       = new Barra();
            Intensity   = VALORMAXIMOINTENSIDAD;
            Attenuation = 0.7f;
            this.color  = Color.White;
            Encendida   = false;
        }
Пример #3
0
        override public void init()
        {
            tipo           = Tipo.Farol;
            text2          = new TgcText2d();
            text2.Text     = "100%";
            text2.Color    = Color.DarkSalmon;
            text2.Align    = TgcText2d.TextAlign.RIGHT;
            text2.Position = new Point(950, 700);
            text2.Size     = new Size(300, 100);
            text2.changeFont(new System.Drawing.Font("TimesNewRoman", 25, FontStyle.Bold | FontStyle.Italic));
            string alumnoMediaFolder = GuiController.Instance.AlumnoEjemplosDir;
            var    loader            = new TgcSceneLoader();

            farol = loader.loadSceneFromFile(alumnoMediaFolder + "CucarachaJugosita\\Media\\FaroleteRecarga-TgcScene.xml");
            farol.Meshes[0].Scale    = new Vector3(0.8f, 0.8f, 0.8f);
            farol.Meshes[0].Position = Posicion + new Vector3(-10f, -20f, 17f);
            Intensity   = VALORMAXIMOINTENSIDAD;
            Attenuation = 0.3f;
            this.color  = Color.Yellow;
            barra       = new Barra();
            Encendida   = true;
        }