summaryrefslogtreecommitdiff
path: root/src/Robot.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/Robot.java')
-rw-r--r--src/Robot.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Robot.java b/src/Robot.java
index bd99a0b..7d69460 100644
--- a/src/Robot.java
+++ b/src/Robot.java
@@ -67,7 +67,7 @@ class Robot extends BetterBase {
gl.glTranslatef(0, 0, torsoHeight / 2 + legLength);
// These materials control the reflected light
- gl.glMaterialfv(GL_FRONT, GL_DIFFUSE, material.diffuse, 0);
+ gl.glMaterialfv(GL_FRONT, GL_AMBIENT_AND_DIFFUSE, material.diffuse, 0);
gl.glMaterialfv(GL_FRONT, GL_SPECULAR, material.specular, 0);
gl.glTranslatef(0, 0, footHeight);
@@ -142,7 +142,7 @@ class Robot extends BetterBase {
*/
private void drawJoint() {
if (asStickFigure) {
- glut.glutSolidSphere(boneSize * 1.5, 10, 10);
+ glut.glutSolidSphere(boneSize * 1.5, 16, 16);
}
}
@@ -181,10 +181,10 @@ class Robot extends BetterBase {
setColor(Colors.BLUEISH);
// Set the drawing color and draw right shoulder
- glut.glutSolidSphere(shoulderRadius, 10, 10);
+ glut.glutSolidSphere(shoulderRadius, 32, 32);
// left shoulder
gl.glTranslatef(-2 * shoulder_x, 0, 0);
- glut.glutSolidSphere(shoulderRadius, 10, 10);
+ glut.glutSolidSphere(shoulderRadius, 32, 32);
// restore position
gl.glPopMatrix();
@@ -258,7 +258,7 @@ class Robot extends BetterBase {
// Give me a big hand!
setColor(Colors.DIRTY_BLUE);
gl.glTranslatef(0f, 0f, -armLength / 2);
- glut.glutSolidSphere(armWidth * 1.25f, 10, 10);
+ glut.glutSolidSphere(armWidth * 1.25f, 32, 32);
}
gl.glPopMatrix();
@@ -281,7 +281,7 @@ class Robot extends BetterBase {
// Set color and draw head
setColor(asStickFigure ? boneColor : Colors.PALE_TURQOISE);
- glut.glutSolidSphere(headRadius, 10, 10);
+ glut.glutSolidSphere(headRadius, 32, 32);
// Pop so we are at the origin again
gl.glPopMatrix();