Esempio n. 1
0
        public Form1()
        {
            InitializeComponent();
            render = new Render(this);


            mesh           = LoadManager.loadMesh("two_sphere.obj");
            model          = new GameObject();
            model.mesh     = mesh;
            model.rotate.x = 180;
            model.rotate.y = -30;
            model.position = new Vector3f(500, 350, 100);
            model.scale    = new Vector3f(11, 10, 10);

            render.start();
        }
Esempio n. 2
0
 private void button6_Click(object sender, EventArgs e)
 {
     mesh       = LoadManager.loadMesh("Ship.obj");
     model.mesh = mesh;
 }
Esempio n. 3
0
 private void button5_Click(object sender, EventArgs e)
 {
     mesh       = LoadManager.loadMesh("shahter5.obj");
     model.mesh = mesh;
 }
Esempio n. 4
0
 private void button4_Click(object sender, EventArgs e)
 {
     mesh       = LoadManager.loadMesh("two_sphere.obj");
     model.mesh = mesh;
 }