geneva mechanism3 animation

Опубликовано: 18 Март 2026
на канале: phil williammee
779
1

In this tutorial I animate the free cad model of the Geneva cam sprocket using pygame and openGL. To see how to export a object file from free cad see this tutorial    • pyGame obj tutorial opengl2  
I noticed a error in the program while making the video.you should remove the gltranslate of the drive gear and replace it with.
#glTranslate(4.5*math.cos(math.radians(angle))-4.5,0, -4.5*math.sin(math.radians(angle)))
glTranslate(-4.5,0,0)
glRotate(angle,0,1,0)
glTranslate(4.5,0,0)
I am not sure why I did that sin,cos trick but it worked.

software:https://github.com/philwilliammee/gen...