Exemplo n.º 1
0
        public Robot(string id, Vector3 position, int rotation)
            : base(id)
        {
            cam = new TargetCamera("Camera1", new Vector3(0, 0, -15), Vector3.Zero, 0.1f, 100000);
            AddComponent(cam);

            BasicLPPModel model = new BasicLPPModel(id + "Model", "Models/Robot/Robot", position);

            AddComponent(model);

            new PointLight(id + "p1", Color.White.ToVector4(),
                           1, new Vector3(0, 0, 0), 100);

            new PointLight(id + "p2", Color.Red.ToVector4(),
                           1f, new Vector3(0, 0, 2), 12);

            Transform *= Matrix.CreateRotationZ(MathHelper.ToRadians(rotation))
                         * Matrix.CreateTranslation(position);
        }
Exemplo n.º 2
0
        public EngineText(string id)
            : base(id)
        {
            BasicLPPModel model = new BasicLPPModel(id + "Model", "Models/Text/Text", Vector3.Zero);

            AddComponent(model);

            cam = new TargetCamera("Camera", new Vector3(0, 0, -15), Vector3.Zero, 0.1f, 100000);
            AddComponent(cam);

            p2 = new PointLight(id + "p2", Color.OrangeRed.ToVector4(),
                                0.5f, new Vector3(-2, 3, -6), 20);

            p1 = new PointLight(id + "p1", Color.White.ToVector4(),
                                1, new Vector3(0, 0, -9), 12);

            p3 = new PointLight(id + "p3", Color.DarkRed.ToVector4(),
                                0.5f, new Vector3(0, 0, -6), 30);

            Transform *= Matrix.CreateTranslation(6, -7, 0);

            BasicLPPModel model2 = new BasicLPPModel(id + "Model1", "Models/Text/Text", new Vector3(0, -4, -5));
        }