Small help needed

Hi,i am brett ,I need small help please.I created a hierarchial character, using cylinders.

I have a few questions about it,The character should only be created using cylinders.I used GL_QUADS and GL_TRIANGLE_FAN to create it.

1)I created normals from centre to point.Does these normals change when translated or rotated??If changes it gives wrong results right!!How to solve it??

2)The next question is when i rotate the joints of the robot there are visible gaps between joints.How to do without any gaps??I should use only cylinders.

3)Do u suggest any changes to the character???

I am a newbie please try to help me.

Thank you in advance.

  1. provided you use glTranslate/glRotate, it will operate on both the vertices and the normals. So nothing else to do. Beware of scaling thouhg : try glEnable(GL_NORMALIZE) to avoid problems with scale.

  2. for 1D joints, use one small cylinder at the “gap”.
    for 2D joints, use 2 cylinders at the same place or not (ideally a sphere). this can help :

  3. maybe, if there was a proper link to a image ?

The number of axes of rotation that are possible at a given joint.
Human elbow has only 1 for example. Shoulder have (at least) 2.

You can manage transformations, storing transformation matrices of each object and setting the modelview matrix with one matrix before drawing the corresponding object.