I've drawn an aeroplane in openGL and all I want to do is make it rotate around the x axis. However I want to rotate it around itself rather than around 0,0,0. The centre of the aeroplane is (50000,50000,-10000)(x,y,z).
I've tried all kinds of combinations of numbers but I cant get it to to rotate correctly. I'm using glRotatef(angle, X, Y, Z). I thought it would simply be either glRotatef(angle, 1, 0, 0) or glRotatef(angle, 50000, 0, 0) neither of these work, the closest I've come is using glRotatef(angle, 50000, 50000, -10000), this rotates around itself but not around the x-axis it seems to go round all 3!!
Sorry this is a really stupid question, but what am I doing wrong?
Thanks.
I've tried all kinds of combinations of numbers but I cant get it to to rotate correctly. I'm using glRotatef(angle, X, Y, Z). I thought it would simply be either glRotatef(angle, 1, 0, 0) or glRotatef(angle, 50000, 0, 0) neither of these work, the closest I've come is using glRotatef(angle, 50000, 50000, -10000), this rotates around itself but not around the x-axis it seems to go round all 3!!

Sorry this is a really stupid question, but what am I doing wrong?
Thanks.