Entradas

Mostrando entradas de mayo, 2018

Cronograma

Imagen
En este proyecto, se pretende realizar un recorrido 3D de una ciudad acuática como se muestra en la siguiente imagen: A continuación se muestra el cronograma:

Michellin Sombra y Reflejo | Israel González

Imagen
#include <windows.h> #include <GL/glut.h> #include <math.h> float salto = 0.0;//esferita q rebota float anguloLuz = 0.0, alturaLuz = 15; float c=1,dia=-0.1; float angle = 0,angle2 = 0; int moving, startx, starty; static GLdouble tamanio = 4.0;//radio de la esfera static GLfloat posicionLuz[4]; static GLfloat colorLuz[] = {1, 1, 1, 1.0}; static GLfloat planoPiso[4]; static GLfloat sombraPiso[4][4]; enum {X, Y, Z, W}; enum {A, B, C, D}; char *textura[] = {//textura dibujada     "oooooooooooooooo",     "o...............",     "o..xxxxxxxxxxxx.",     "o..xxxxxxxxxxxx.",     "o..xxxxxxxxxxxx.",     "o..xxx......xxx.",     "o..xxx......xxx.",     "o..xxx.o.o..xxx.",     "o..xxx..o.o.xxx.",     "o..xxx......xxx.",     "o..xxx......xxx.",     "o..xxxxxxxxxxxx.",     "o..xxxxxxxxxxxx.",     "o..xxxxxxx...

Reflejo | Diana Vargas

Imagen
#include <windows.h> #include <math.h> #include <GL/glut.h> float salto = 0.0;//esferita q rebota float anguloLuz = 0.0, alturaLuz = 15; float c=1,dia=-0.1; float angle = 0,angle2 = 0; int moving, startx, starty; static GLdouble tamanio = 4.0;//radio de la esfera static GLfloat posicionLuz[4]; static GLfloat colorLuz[] = {1, 1, 1, 1.0}; static GLfloat planoPiso[4]; static GLfloat sombraPiso[4][4]; enum {X, Y, Z, W}; enum {A, B, C, D}; char *textura[] = {//textura dibujada     "oooooooooooooooo",     "o...............",     "o..xxxxxxxxxxxx.",     "o..xxxxxxxxxxxx.",     "o..xxxxxxxxxxxx.",     "o..xxx......xxx.",     "o..xxx......xxx.",     "o..xxx.o.o..xxx.",     "o..xxx..o.o.xxx.",     "o..xxx......xxx.",     "o..xxx......xxx.",     "o..xxxxxxxxxxxx.",     "o..xxxxxxxxxxxx.",     "o..xxxxxxx...

Spheremap | Israel González

Imagen
#include <windows.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <GL/glut.h> int alto=1024,ancho=1024;//dim imagen static float rotar=0; GLfloat ang1 = 0,ang2 = 0; int moving, startx, starty; static GLdouble tamanio = 10.0; unsigned char * textura; GLUquadric *figura; int leerImagen(){     FILE *imagen;     imagen=fopen("C:\\Users\\Imagenes\\spheremapHielo1024.raw","r");     textura=(unsigned char*)malloc(ancho*alto*3);     if(imagen==NULL){         printf("Error: No imagen");         return 0;     }     fread(textura,ancho*alto*3,1,imagen);     fclose(imagen);     return 1; } void iluminacion (int encendido){     if(encendido==1) {         glEnable(GL_LIGHTING);         glEnable(GL_LIGHT0);     ...

spheremap | diana v

Imagen
#include <windows.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <GL/glut.h> //int alto=1440,ancho=2880;// //int alto=1024,ancho=1024; int alto=1000,ancho=2000;//dim imagen static float rotar=0; GLfloat ang1 = 0,ang2 = 0; int moving, startx, starty; static GLdouble tamanio = 10.0; unsigned char * textura; GLUquadric *figura; int leerImagen(){     FILE *imagen;     imagen=fopen("C:\\Users\\hp\\Documents\\7 SEMESTRE\\carrito2000x1000.raw","r");     textura=(unsigned char*)malloc(ancho*alto*3);     if(imagen==NULL){         printf("Error: No imagen");         return 0;     }     fread(textura,ancho*alto*3,1,imagen);     fclose(imagen);     return 1; } void iluminacion (int encendido){     if(encendido==1) {         glEnable(GL_LIGH...