summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrank v/d Haterd <f.h.a.v.d.haterd@student.tue.nl>2014-01-15 02:59:18 +0100
committerFrank v/d Haterd <f.h.a.v.d.haterd@student.tue.nl>2014-01-15 02:59:18 +0100
commit6acf7a5266a3a8c3ee0555be643bb11ed81b4165 (patch)
treed0ee76c55918f338e2b77860edcbe0afbf568be7
parent1cc67f45c88f198f6d7171f01000df0844858cc1 (diff)
download2iv60-robots-6acf7a5266a3a8c3ee0555be643bb11ed81b4165.tar.gz
Terrain class revisited:
Normals fixed ! 1D texture fixed! Tree drawing functionallity added Code cleanup New class tree added describing tree Small tweek in Robot.java +3FPS (sphere segments decreased not noticeble)
-rw-r--r--src/Robot.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Robot.java b/src/Robot.java
index 3eeb1af..5e24a36 100644
--- a/src/Robot.java
+++ b/src/Robot.java
@@ -363,10 +363,10 @@ class Robot extends BetterBase {
setColor(Colors.BLUEISH);
// Set the drawing color and draw right shoulder
- glut.glutSolidSphere(shoulderRadius, 32, 32);
+ glut.glutSolidSphere(shoulderRadius, 16, 16);
// left shoulder
gl.glTranslatef(-2 * shoulder_x, 0, 0);
- glut.glutSolidSphere(shoulderRadius, 32, 32);
+ glut.glutSolidSphere(shoulderRadius, 16, 16);
// restore position
gl.glPopMatrix();
@@ -485,7 +485,7 @@ class Robot extends BetterBase {
glu.gluQuadricNormals(sphere, glu.GLU_SMOOTH);
// Draw the glu sphere
- glu.gluSphere(sphere, headRadius, 32, 32);
+ glu.gluSphere(sphere, headRadius, 16, 16);
// glut.glutSolidSphere(headRadius, 32, 32);