Lagi-lagi saya ingin berbagi dengan teman-teman jauh disana mengenai komputer grafik menggunakan code blocks. Sekarang saya sudah bisa membuat snowflake dengan banyak sekaaaaaaaali vertex. Tapi berkat ketekunan, snowflakepun selesai.
Silahkan jika Anda berminat untuk membuat, script dapat di download di bawah. Ingat, menggunakan code blocks, bukan photoshop. Hahahahaha
{
glClear(GL_COLOR_BUFFER_BIT);
glColor3f(0.0,0.0,1.0);
glBegin(GL_LINE_STRIP);
glVertex2f(2,1);
glVertex2f(20,1);
glVertex2f(30,11);
glVertex2f(35,11);
glVertex2f(25,1);
glVertex2f(45,1);
glVertex2f(52.5,8.5);
glVertex2f(57.5,8.5);
glVertex2f(50,1);
glVertex2f(62,1);
glVertex2f(65,4);
glVertex2f(69,4);
glVertex2f(66,1);
glVertex2f(78,1);
glVertex2f(83,0);
glEnd();
glRotated(180,1,0,0);
glBegin(GL_LINE_STRIP);
glVertex2f(2,1);
glVertex2f(20,1);
glVertex2f(30,11);
glVertex2f(35,11);
glVertex2f(25,1);
glVertex2f(45,1);
glVertex2f(52.5,8.5);
glVertex2f(57.5,8.5);
glVertex2f(50,1);
glVertex2f(62,1);
glVertex2f(65,4);
glVertex2f(69,4);
glVertex2f(66,1);
glVertex2f(78,1);
glVertex2f(83,0);
glEnd();
glRotated(180,0,0,1);
glBegin(GL_LINE_STRIP);
glVertex2f(2,1);
glVertex2f(20,1);
glVertex2f(30,11);
glVertex2f(35,11);
glVertex2f(25,1);
glVertex2f(45,1);
glVertex2f(52.5,8.5);
glVertex2f(57.5,8.5);
glVertex2f(50,1);
glVertex2f(62,1);
glVertex2f(65,4);
glVertex2f(69,4);
glVertex2f(66,1);
glVertex2f(78,1);
glVertex2f(83,0);
glEnd();
glRotated(180,1,0,0);
glBegin(GL_LINE_STRIP);
glVertex2f(2,1);
glVertex2f(20,1);
glVertex2f(30,11);
glVertex2f(35,11);
glVertex2f(25,1);
glVertex2f(45,1);
glVertex2f(52.5,8.5);
glVertex2f(57.5,8.5);
glVertex2f(50,1);
glVertex2f(62,1);
glVertex2f(65,4);
glVertex2f(69,4);
glVertex2f(66,1);
glVertex2f(78,1);
glVertex2f(83,0);
glEnd();
glRotated(120,0,0,1);
glBegin(GL_LINE_STRIP);
glVertex2f(2,1);
glVertex2f(20,1);
glVertex2f(30,11);
glVertex2f(35,11);
glVertex2f(25,1);
glVertex2f(45,1);
glVertex2f(52.5,8.5);
glVertex2f(57.5,8.5);
glVertex2f(50,1);
glVertex2f(62,1);
glVertex2f(65,4);
glVertex2f(69,4);
glVertex2f(66,1);
glVertex2f(78,1);
glVertex2f(83,0);
glEnd();
glRotated(180,1,0,0);
glBegin(GL_LINE_STRIP);
glVertex2f(2 ,1);
glVertex2f(20,1);
glVertex2f(30,11);
glVertex2f(35,11);
glVertex2f(25,1);
glVertex2f(45,1);
glVertex2f(52.5,8.5);
glVertex2f(57.5,8.5);
glVertex2f(50,1);
glVertex2f(62,1);
glVertex2f(65,4);
glVertex2f(69,4);
glVertex2f(66,1);
glVertex2f(78,1);
glVertex2f(83,0);
glEnd();
glRotated(180,0,0,1);
glBegin(GL_LINE_STRIP);
glVertex2f(2 ,1);
glVertex2f(20,1);
glVertex2f(30,11);
glVertex2f(35,11);
glVertex2f(25,1);
glVertex2f(45,1);
glVertex2f(52.5,8.5);
glVertex2f(57.5,8.5);
glVertex2f(50,1);
glVertex2f(62,1);
glVertex2f(65,4);
glVertex2f(69,4);
glVertex2f(66,1);
glVertex2f(78,1);
glVertex2f(83,0);
glEnd();
glRotated(180,1,0,0);
glBegin(GL_LINE_STRIP);
glVertex2f(2 ,1);
glVertex2f(20,1);
glVertex2f(30,11);
glVertex2f(35,11);
glVertex2f(25,1);
glVertex2f(45,1);
glVertex2f(52.5,8.5);
glVertex2f(57.5,8.5);
glVertex2f(50,1);
glVertex2f(62,1);
glVertex2f(65,4);
glVertex2f(69,4);
glVertex2f(66,1);
glVertex2f(78,1);
glVertex2f(83,0);
glEnd();
glBegin(GL_LINE_STRIP);
glVertex2f(2 ,1);
glVertex2f(20,1);
glVertex2f(30,11);
glVertex2f(35,11);
glVertex2f(25,1);
glVertex2f(45,1);
glVertex2f(52.5,8.5);
glVertex2f(57.5,8.5);
glVertex2f(50,1);
glVertex2f(62,1);
glVertex2f(65,4);
glVertex2f(69,4);
glVertex2f(66,1);
glVertex2f(78,1);
glVertex2f(83,0);
glEnd();
glRotated(180,1,0,0);
glBegin(GL_LINE_STRIP);
glVertex2f(2 ,1);
glVertex2f(20,1);
glVertex2f(30,11);
glVertex2f(35,11);
glVertex2f(25,1);
glVertex2f(45,1);
glVertex2f(52.5,8.5);
glVertex2f(57.5,8.5);
glVertex2f(50,1);
glVertex2f(62,1);
glVertex2f(65,4);
glVertex2f(69,4);
glVertex2f(66,1);
glVertex2f(78,1);
glVertex2f(83,0);
glEnd();
glRotated(180,0,0,1);
glBegin(GL_LINE_STRIP);
glVertex2f(2 ,1);
glVertex2f(20,1);
glVertex2f(30,11);
glVertex2f(35,11);
glVertex2f(25,1);
glVertex2f(45,1);
glVertex2f(52.5,8.5);
glVertex2f(57.5,8.5);
glVertex2f(50,1);
glVertex2f(62,1);
glVertex2f(65,4);
glVertex2f(69,4);
glVertex2f(66,1);
glVertex2f(78,1);
glVertex2f(83,0);
glEnd();
glRotated(180,1,0,0);
glBegin(GL_LINE_STRIP);
glVertex2f(2 ,1);
glVertex2f(20,1);
glVertex2f(30,11);
glVertex2f(35,11);
glVertex2f(25,1);
glVertex2f(45,1);
glVertex2f(52.5,8.5);
glVertex2f(57.5,8.5);
glVertex2f(50,1);
glVertex2f(62,1);
glVertex2f(65,4);
glVertex2f(69,4);
glVertex2f(66,1);
glVertex2f(78,1);
glVertex2f(83,0);
glEnd();
glBegin(GL_LINE_STRIP);
glVertex2f(2 ,1);
glVertex2f(20,1);
glVertex2f(30,11);
glVertex2f(35,11);
glVertex2f(25,1);
glVertex2f(45,1);
glVertex2f(52.5,8.5);
glVertex2f(57.5,8.5);
glVertex2f(50,1);
glVertex2f(62,1);
glVertex2f(65,4);
glVertex2f(69,4);
glVertex2f(66,1);
glVertex2f(78,1);
glVertex2f(83,0);
glEnd();
glRotated(180,1,0,0);
glBegin(GL_LINE_STRIP);
glVertex2f(2 ,1);
glVertex2f(20,1);
glVertex2f(30,11);
glVertex2f(35,11);
glVertex2f(25,1);
glVertex2f(45,1);
glVertex2f(52.5,8.5);
glVertex2f(57.5,8.5);
glVertex2f(50,1);
glVertex2f(62,1);
glVertex2f(65,4);
glVertex2f(69,4);
glVertex2f(66,1);
glVertex2f(78,1);
glVertex2f(83,0);
glEnd();
glRotated(180,0,0,1);
glBegin(GL_LINE_STRIP);
glVertex2f(2 ,1);
glVertex2f(20,1);
glVertex2f(30,11);
glVertex2f(35,11);
glVertex2f(25,1);
glVertex2f(45,1);
glVertex2f(52.5,8.5);
glVertex2f(57.5,8.5);
glVertex2f(50,1);
glVertex2f(62,1);
glVertex2f(65,4);
glVertex2f(69,4);
glVertex2f(66,1);
glVertex2f(78,1);
glVertex2f(83,0);
glEnd();
glRotated(180,1,0,0);
glBegin(GL_LINE_STRIP);
glVertex2f(2 ,1);
glVertex2f(20,1);
glVertex2f(30,11);
glVertex2f(35,11);
glVertex2f(25,1);
glVertex2f(45,1);
glVertex2f(52.5,8.5);
glVertex2f(57.5,8.5);
glVertex2f(50,1);
glVertex2f(62,1);
glVertex2f(65,4);
glVertex2f(69,4);
glVertex2f(66,1);
glVertex2f(78,1);
glVertex2f(83,0);
glEnd();
glRotated(120,0,0,1);
glBegin(GL_LINE_STRIP);
glVertex2f(2 ,1);
glVertex2f(20,1);
glVertex2f(30,11);
glVertex2f(35,11);
glVertex2f(25,1);
glVertex2f(45,1);
glVertex2f(52.5,8.5);
glVertex2f(57.5,8.5);
glVertex2f(50,1);
glVertex2f(62,1);
glVertex2f(65,4);
glVertex2f(69,4);
glVertex2f(66,1);
glVertex2f(78,1);
glVertex2f(83,0);
glEnd();
glRotated(180,1,0,0);
glBegin(GL_LINE_STRIP);
glVertex2f(2 ,1);
glVertex2f(20,1);
glVertex2f(30,11);
glVertex2f(35,11);
glVertex2f(25,1);
glVertex2f(45,1);
glVertex2f(52.5,8.5);
glVertex2f(57.5,8.5);
glVertex2f(50,1);
glVertex2f(62,1);
glVertex2f(65,4);
glVertex2f(69,4);
glVertex2f(66,1);
glVertex2f(78,1);
glVertex2f(83,0);
glEnd();
glRotated(180,0,0,1);
glBegin(GL_LINE_STRIP);
glVertex2f(2 ,1);
glVertex2f(20,1);
glVertex2f(30,11);
glVertex2f(35,11);
glVertex2f(25,1);
glVertex2f(45,1);
glVertex2f(52.5,8.5);
glVertex2f(57.5,8.5);
glVertex2f(50,1);
glVertex2f(62,1);
glVertex2f(65,4);
glVertex2f(69,4);
glVertex2f(66,1);
glVertex2f(78,1);
glVertex2f(83,0);
glEnd();
glRotated(180,1,0,0);
glBegin(GL_LINE_STRIP);
glVertex2f(2 ,1);
glVertex2f(20,1);
glVertex2f(30,11);
glVertex2f(35,11);
glVertex2f(25,1);
glVertex2f(45,1);
glVertex2f(52.5,8.5);
glVertex2f(57.5,8.5);
glVertex2f(50,1);
glVertex2f(62,1);
glVertex2f(65,4);
glVertex2f(69,4);
glVertex2f(66,1);
glVertex2f(78,1);
glVertex2f(83,0);
glEnd();
glBegin(GL_LINE_STRIP);
glVertex2f(2 ,1);
glVertex2f(20,1);
glVertex2f(30,11);
glVertex2f(35,11);
glVertex2f(25,1);
glVertex2f(45,1);
glVertex2f(52.5,8.5);
glVertex2f(57.5,8.5);
glVertex2f(50,1);
glVertex2f(62,1);
glVertex2f(65,4);
glVertex2f(69,4);
glVertex2f(66,1);
glVertex2f(78,1);
glVertex2f(83,0);
glEnd();
glRotated(180,1,0,0);
glBegin(GL_LINE_STRIP);
glVertex2f(2 ,1);
glVertex2f(20,1);
glVertex2f(30,11);
glVertex2f(35,11);
glVertex2f(25,1);
glVertex2f(45,1);
glVertex2f(52.5,8.5);
glVertex2f(57.5,8.5);
glVertex2f(50,1);
glVertex2f(62,1);
glVertex2f(65,4);
glVertex2f(69,4);
glVertex2f(66,1);
glVertex2f(78,1);
glVertex2f(83,0);
glEnd();
glRotated(180,0,0,1);
glBegin(GL_LINE_STRIP);
glVertex2f(2 ,1);
glVertex2f(20,1);
glVertex2f(30,11);
glVertex2f(35,11);
glVertex2f(25,1);
glVertex2f(45,1);
glVertex2f(52.5,8.5);
glVertex2f(57.5,8.5);
glVertex2f(50,1);
glVertex2f(62,1);
glVertex2f(65,4);
glVertex2f(69,4);
glVertex2f(66,1);
glVertex2f(78,1);
glVertex2f(83,0);
glEnd();
glRotated(180,1,0,0);
glBegin(GL_LINE_STRIP);
glVertex2f(2 ,1);
glVertex2f(20,1);
glVertex2f(30,11);
glVertex2f(35,11);
glVertex2f(25,1);
glVertex2f(45,1);
glVertex2f(52.5,8.5);
glVertex2f(57.5,8.5);
glVertex2f(50,1);
glVertex2f(62,1);
glVertex2f(65,4);
glVertex2f(69,4);
glVertex2f(66,1);
glVertex2f(78,1);
glVertex2f(83,0);
glEnd();
//FLAKE KANAN
glBegin(GL_LINE_STRIP);
glVertex2f(2 ,1);
glVertex2f(20,1);
glVertex2f(30,11);
glVertex2f(35,11);
glVertex2f(25,1);
glVertex2f(45,1);
glVertex2f(52.5,8.5);
glVertex2f(57.5,8.5);
glVertex2f(50,1);
glVertex2f(62,1);
glVertex2f(65,4);
glVertex2f(69,4);
glVertex2f(66,1);
glVertex2f(78,1);
glVertex2f(83,0);
glEnd();
glRotated(180,1,0,0);
glBegin(GL_LINE_STRIP);
glVertex2f(2 ,1);
glVertex2f(20,1);
glVertex2f(30,11);
glVertex2f(35,11);
glVertex2f(25,1);
glVertex2f(45,1);
glVertex2f(52.5,8.5);
glVertex2f(57.5,8.5);
glVertex2f(50,1);
glVertex2f(62,1);
glVertex2f(65,4);
glVertex2f(69,4);
glVertex2f(66,1);
glVertex2f(78,1);
glVertex2f(83,0);
glEnd();
0 komentar:
Post a Comment