Cliff Biffle avatar Cliff Biffle committed f725e69

Removed the demo cube. The initial model is now a sinusoidal point field, so I can play with the view settings.

Comments (0)

Files changed (1)

   
   glRotatef(trackballRotation[0], trackballRotation[1], trackballRotation[2], trackballRotation[3]);
   glRotatef(worldRotation[0], worldRotation[1], worldRotation[2], worldRotation[3]);
+  glTranslatef(3.2,2.4,0);
 }
 
 - (void) drawDepthField {
+  glBegin(GL_POINTS);
   glColor3f (1.0, 0.5, 0.0);
-  for (int f = 0; f < num_faces; f++) {
-    glBegin (GL_LINE_LOOP);
-    for (int i = 0; i < 4; i++)
-      glVertex3f(cube_vertices[cube_faces[f][i]][0], cube_vertices[cube_faces[f][i]][1], cube_vertices[cube_faces[f][i]][2]);
-    glEnd ();
-  }  
+  for (int y = 0; y < 480; y++) {
+    for (int x = 0; x < 640; x++) {
+      glVertex3f(-x/100., -y/100., sin(x*3.14159/180));
+    }
+  }
+  glEnd();
 }
 @end
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.