Example #1
0
        private void rotationValueY_ValueChanged(object sender, EventArgs e)
        {
            g.Clear(Color.White);
            g1.Clear(Color.White);

            p.RotateY(rotationValueY.Value);
            p.Draw(g);
            DrawCameraFigure();
        }
Example #2
0
        private void DrawCameraFigure()
        {
            g1.Clear(Color.White);
            cam_p = p.DeepCopy();

            cam_p.Move((float)camTranslationX.Value, (float)camTranslationY.Value, (float)camTranslationZ.Value);
            cam_p.RotateX(-(float)camRotationX.Value);
            cam_p.RotateY(-(float)camRotationY.Value);
            cam_p.RotateZ(-(float)camRotationZ.Value);

            cam_p.Draw(g1);

            //cam_p.RotateZ((float)camRotationZ.Value);
            //cam_p.RotateY((float)camRotationY.Value);
            //cam_p.RotateX((float)camRotationX.Value);
            //cam_p.Move(-(float)camTranslationX.Value, -(float)camTranslationY.Value, -(float)camTranslationZ.Value);
        }