[ BAVARAC @ 30.04.2009. 23:09 ] @
Kada preko "trouglova" crtam kocku .... koji dio koda mi ovde fali ... Iscrta mi po jednu stranicu kocke ... kako da imam sve stranice od 4 kocke ?? HVALA void kocka() { glBegin(GL_TRIANGLES); glVertex3f( 0.5f, 0.5f, -0.5f); //1 glVertex3f(0.5f, 0.5f,-0.5f); //2 glVertex3f(-0.5f, 0.5f, 0.5f); //3 glVertex3f( 0.5f, 0.5f,-0.5f); //1 glVertex3f( 0.5f, 0.5f, 0.5f); //4 glVertex3f(-0.5f, 0.5f, 0.5f); //3 glVertex3f( 0.5f, 0.5f, -0.5f); //1 glVertex3f(0.5f, 0.5f,-0.5f); //2 glVertex3f(-0.5f, 0.5f, 0.5f); //3 glVertex3f( 0.5f, 0.5f,-0.5f); //1 glVertex3f( 0.5f, 0.5f, 0.5f); //4 glVertex3f(-0.5f, 0.5f, 0.5f); //3 glVertex3f( 0.5f, 0.5f, -0.5f); //1 glVertex3f(0.5f, 0.5f,-0.5f); //2 glVertex3f(-0.5f, 0.5f, 0.5f); //3 glVertex3f( 0.5f, 0.5f,-0.5f); //1 glVertex3f( 0.5f, 0.5f, 0.5f); //4 glVertex3f(-0.5f, 0.5f, 0.5f); //3 glVertex3f( 0.5f, 0.5f, -0.5f); //1 glVertex3f(0.5f, 0.5f,-0.5f); //2 glVertex3f(-0.5f, 0.5f, 0.5f); //3 glVertex3f( 0.5f, 0.5f,-0.5f); //1 glVertex3f( 0.5f, 0.5f, 0.5f); //4 glVertex3f(-0.5f, 0.5f, 0.5f); //3 glVertex3f( 0.5f, 0.5f, -0.5f); //1 glVertex3f(0.5f, 0.5f,-0.5f); //2 glVertex3f(-0.5f, 0.5f, 0.5f); //3 glVertex3f( 0.5f, 0.5f,-0.5f); //1 glVertex3f( 0.5f, 0.5f, 0.5f); //4 glVertex3f(-0.5f, 0.5f, 0.5f); //3 glVertex3f( 0.5f, 0.5f, -0.5f); //1 glVertex3f(0.5f, 0.5f,-0.5f); //2 glVertex3f(-0.5f, 0.5f, 0.5f); //3 glVertex3f( 0.5f, 0.5f,-0.5f); //1 glVertex3f( 0.5f, 0.5f, 0.5f); //4 glVertex3f(-0.5f, 0.5f, 0.5f); //3 glEnd(); [Ovu poruku je menjao BAVARAC dana 02.05.2009. u 23:35 GMT+1] |