Example #1
0
        public Form1()
        {
            InitializeComponent();

            pictureBox1.Image  = BitmapEcran.Init(pictureBox1.Width, pictureBox1.Height);
            this.textBox1.Text = RenderSing.getCurrentRender().getResolutionX().ToString();
            this.textBox2.Text = RenderSing.getCurrentRender().getResolutionY().ToString();
            this.textBox3.Text = RenderSing.getCurrentRender().getEyesPosition().y.ToString();
            this.textBox4.Text = "0,5";
            this.textBox5.Text = "0,5";
            this.textBox6.Text = "0,5";

            this.listBox1.Items.Add(new form.Rectangle(new V3(-50f, 0f, -10f),
                                                       new V3(100f, 0f, 0f),
                                                       new V3(0, 100f, 0f),
                                                       new Texture("brick01.jpg"),
                                                       new Texture("lead_bump.jpg")));

            this.listBox1.Items.Add(new form.Rectangle(new V3(-20.0f, 50f, 10f),
                                                       new V3(20f, 20f, 10f),
                                                       new V3(0, 0, 20f),
                                                       new Texture("lead.jpg"),
                                                       new Texture("lead_bump.jpg")));

            this.listBox1.Items.Add(new Sphere(new V3(0.0f, 50f, 0.0f),
                                               15f,
                                               new Texture("carreau.jpg"),
                                               new Texture("bump38.jpg")));

            this.listBox1.Items.Add(new Sphere(new V3(20.0f, 75f, 0.0f),
                                               10f,
                                               new Couleur(1f, 0, 0),
                                               new Texture("bump38.jpg")));


            this.listBox2.Items.Add(new DirectionalLight(new V3(1f, -1f, 1f),
                                                         new Couleur(.8f, .8f, .8f)));
        }
Example #2
0
 public Form1()
 {
     InitializeComponent();
     pictureBox1.Image = BitmapEcran.Init(pictureBox1.Width, pictureBox1.Height);
 }