Animating a Unicycle in C++ with OpenGL
Images for the unicycle animation. For more details, go here: http://www.cse.iitb.ac.in/~singhvib/assignment33.html Part of code: void Axle() { glPushMatrix(); glColor3f(1,1,0); glPushMatrix(); glTranslatef(0.0, 0.0, -FrameD * 1.5); gluCylinder(quad, SpokeR, SpokeR, FrameD * 3, fine,fine); glPopMatrix(); glPushMatrix(); glTranslatef(0.0, 0.0, FrameD * 1.5); Paddle(); glPopMatrix(); glPushMatrix(); glRotatef(180, 1.0, 0.0, 0.0); glTranslatef(0.0, 0.0, FrameD * 1.5); Paddle(); glPopMatrix(); glPopMatrix(); } void Paddle() { glPushMatrix(); glRotatef(270, 1.0, 0.0, 0.0); gluCylinder(quad, SpokeR + 0.01, SpokeR, FrameH / 2, 4, 50); glPushMatrix(); glTranslatef(0, 0, FrameH / 2); glRotatef(90, 1.0, 0.0, 0.0); gluCylinder(quad, SpokeR, SpokeR, FrameH / 4, 4, 50); glPopMatrix(); glPopMatrix(); }
About Me
I am currently working in GISE Lab at IIT Bombay as a Research Assistant. My homepage is here: [login to view URL]~singhvib I have been involved in freelancing for over an year and I have successfully delivered over 60 projects during this time.
$ 15 USD/hr
NEW FREELANCER!