Example #1
0
        public Object3DCommon()
        {
            this.rotationMatrix    = Matrix.Identity;
            this.scalingMatrix     = Matrix.Identity;
            this.translationMatrix = Matrix.Identity;

            translation = new AxisValue();
            rotation    = new AxisValue();
            scaling     = new AxisValue();

            pivotPoint = new AxisValue();

            material = new Midget.Materials.MidgetMaterial();

            dynamicsList = new ArrayList();

            scaling.X = 1;
            scaling.Y = 1;
            scaling.Z = 1;

            lastFrameInterpolated = -1;

            selected = false;

            selectedMaterial          = new Midget.Materials.MidgetMaterial();
            selectedMaterial.Emissive = System.Drawing.Color.Snow;
            selectedMaterial.Diffuse  = System.Drawing.Color.White;
        }
Example #2
0
        private void LoadMaterial(Midget.Materials.MidgetMaterial material)
        {
            currentMaterial = material;

            picAmbient.BackColor  = (Color)currentMaterial.Ambient;
            picDiffuse.BackColor  = (Color)currentMaterial.Diffuse;
            picEmissive.BackColor = (Color)currentMaterial.Emissive;
            picSpecular.BackColor = (Color)currentMaterial.Specular;

            if (currentMaterial.TexturePath.Length != 0)
            {
                picTexture.Image = Image.FromFile(currentMaterial.TexturePath);
            }
        }
Example #3
0
        public Object3DCommon()
        {
            this.rotationMatrix = Matrix.Identity;
            this.scalingMatrix = Matrix.Identity;
            this.translationMatrix = Matrix.Identity;

            translation = new AxisValue();
            rotation = new AxisValue();
            scaling = new AxisValue();

            pivotPoint = new AxisValue();

            material = new Midget.Materials.MidgetMaterial();

            dynamicsList = new ArrayList();

            scaling.X = 1;
            scaling.Y = 1;
            scaling.Z = 1;

            lastFrameInterpolated = -1;

            selected = false;

            selectedMaterial = new Midget.Materials.MidgetMaterial();
            selectedMaterial.Emissive = System.Drawing.Color.Snow;
            selectedMaterial.Diffuse = System.Drawing.Color.White;
        }
Example #4
0
        private void LoadMaterial(Midget.Materials.MidgetMaterial material)
        {
            currentMaterial = material;

            picAmbient.BackColor = (Color)currentMaterial.Ambient;
            picDiffuse.BackColor = (Color)currentMaterial.Diffuse;
            picEmissive.BackColor = (Color)currentMaterial.Emissive;
            picSpecular.BackColor = (Color)currentMaterial.Specular;

            if(currentMaterial.TexturePath.Length != 0)
            {
                picTexture.Image = Image.FromFile(currentMaterial.TexturePath);
            }
        }