Monthly Archives: April 2013

Lighting Rumah dengan OpenGL/Glut

Tutorial Membuat Rumah Dengan GLUT ·         Source Code #include<stdio.h> #include<stdlib.h> #include<glut.h>   int w = 840, h = 640;   //w=width h=height float x=0, y=-1.2, z=-10, i,j,k=0,a, p=0, q=0; //variabel global   void Update(int value) {       glutPostRedisplay(); glutTimerFunc(50, Update, 0);

Posted in Uncategorized

Membuat Boneka Salju Dengan OpenGL/Glut

Tutorial membuat boneka salju dengan GLUT a.       Source Code #include<stdlib.h> #include<glut.h>   float x=0,y=-2,z=-10; int w=640,h=640,i,j,k,l; void sphere(int a,int b,int c){glutSolidSphere(a,b,c);} void hidung(double bs,double he,int sl,int st){ glutSolidCone(bs,he,sl,st);} void mulut(double ir,double or,int ns,int r){ glutSolidTorus(ir,or,ns,r);} void update(int value){       glutPostRedisplay();

Posted in Uncategorized

Setting IP Address pada Ubuntu Server 12.04

Tutorial setting IP pada ubuntu server login     2.   perintah konfigurasi IP address    3.   konfigurasi IP    

Posted in Uncategorized

Membuat Object Layang-Layang dengan OpenGL/GLUT

·         Source Code #include <stdlib.h> #include <glut.h>   void drawQuads(){       glClear(GL_COLOR_BUFFER_BIT);       glBegin(GL_QUADS);             glColor3f(1.0,0.0,0.9);             glVertex2d(-200,220);             glColor3f(0.5,1.3,0.5);             glVertex2d(-250,170);             glColor3f(0.3,0.2,1.0);             glVertex2d(-200,70);             glColor3f(1.0,0.9,0.4);             glVertex2d(-150, 170);               glColor3f(1.0,0.0,0.9);             glVertex2d(200,220);             glColor3f(0.5,1.3,0.5);             glVertex2d(150,170);

Posted in Uncategorized

Membuat Object Belah Ketupat dengan OpenGL/GLUT

i.          Source Code #include <stdlib.h> #include <glut.h> void drawQuads(){       glClear(GL_COLOR_BUFFER_BIT);       glBegin(GL_QUADS);             glColor3f(1.0,0.0,1.1);             glVertex2d(0,200);             glColor3f(0.0,1.3,0.5);             glVertex2d(-200,0);             glColor3f(1.0,0.6,1.9);             glVertex2d(0,-200);             glColor3f(0.0,1.4,1.3);             glVertex2d(200, 0);               glColor3f(0.9,1.1,0.1);             glVertex2d(100,100);             glColor3f(1.0,0.3,1.5);             glVertex2d(100,-100);            

Posted in Kuliah