title: Java openGL - drawing a 3D object
body: <p>Im looking to draw a 3D object in openGL but whats the best way to approach this? I was thinking of drawing the side profile of it in 2D and maybe then fleshing it out to become 3D but is that possible? I think it would be easier to do it that way then just go straight into 3D but if you cant then id just be wasting my time.</p>
  
  <p>I also cant figure out how to add the sky and maybe even the sea with a reflection, is this easily done?</p>
  
  <hr>
  
  <pre><code>   gl.glClear(GL.GL_COLOR_BUFFER_BIT);
     gl.glColor3f(1.0f, 1.0f, 1.0f);
  
     gl.glPushMatrix();
     gl.glTranslatef(-1.0f, 0.0f, 0.0f);
     gl.glRotatef((float) shoulder, 0.0f, 0.0f, 1.0f);
     gl.glTranslatef(1.0f, 0.0f, 0.0f);
     // gl.glPushMatrix();
     gl.glScalef(2.0f, 0.4f, 1.0f);
     glut.glutWireCube(1.0f);
     // gl.glPopMatrix();
  
     gl.glTranslatef(1.0f, 0.0f, 0.0f);
     gl.glRotatef((float) elbow, 0.0f, 0.0f, 1.0f);
     gl.glTranslatef(1.0f, 0.0f, 0.0f);
     // gl.glPushMatrix();
     gl.glScalef(2.0f, 0.4f, 1.0f);
     glut.glutWireCube(1.0f);
     // gl.glPopMatrix();
  
     gl.glTranslatef(1.0f, 1.0f, 1.0f);
     gl.glRotatef((float) hand, 0.0f, 0.0f, 1.0f);
     gl.glTranslatef(1.0f, 0.0f, 0.0f);
     // gl.glPushMatrix();
     gl.glScalef(2.0f, 0.4f, 1.0f);
     glut.glutWireCube(1.0f);
     // gl.glPopMatrix();
  </code></pre>
  
  <p>Ive just been trying random numbers to try and get it to work but not such luck so far!</p>