er

Berbagai Tutorial dan Info Menarik

Belajar, Berjuang, dan Bertaqwa

Saturday, 31 January 2015

Rumah Sederhana 3D

Dengan menggunakan aplikasi Sweet Home 3d. saya membuat model replika rumah sendiri. dan hasilnya cukup bagus dengan menggunakan aplikasi tersebut yang menurut saya, sangat mudah digunakan khususnya bagi perancang bangunan rumah seperti arsitek. hehe ...

Rumah 3D OpenGL

#include<stdlib.h> #include<stdio.h> #include<math.h> #include<GL/glut.h> void renderScene(void){  glPointSize(2);  glClear(GL_COLOR_BUFFER_BIT);  // rgb(108, 51, 18)  glColor3f (108.0/255.0, 51.0/255., 18.0/255.);  glBegin(GL_TRIANGLES);  glVertex2f (-0.9, 0.0);  glVertex2f (-0.5, 0.5);  glVertex2f (-0.25, 0.0);  glEnd();  // rgb(200, 195, 145)  glColor3f (200.0/255.0, 195.0/255., 145.0/255.);  glBegin(GL_POLYGON);  glVertex2f...

Primitve Object 3D OpenGL

#include <Windows.h> #include <iostream> #include <gl\GL.h> #include <gl\GLU.h> #include <gl\glut.h> #include <math.h> void renderScene(void){  glClear(GL_COLOR_BUFFER_BIT);  // Draw a white torus of outer radius 3, inner radius 0.5 with 15 stacks  // and 30 slices.  glColor3f(1.0, 1.0, 1.0);  //glutWireTorus(0.5, 3, 15, 30);  glutWireCube(1.3);  // Draw a red x-axis, a green y-axis, and a blue z-axis. Each of the  //...