This page was last updated: September 12, 2024
Clock hands, by themselves, are Too Easy. Here's why:
glPushMatrix( ); glRotatef( 360.*12.*Time - 90., 0., 0., -1. ); DRAW THE BIG HAND glPopMatrix( ); glPushMatrix( ); glRotatef( 360.*Time - 90., 0., 0., -1. ); DRAW THE LITTLE HAND glPopMatrix( );Done! However, if you want to add a pendulum and gears that function correctly, then that would make it OK.
If you are doing a solar system, do this:
It's not a requirement, but if you want to make your solar system look like it is really in space,
surround it with a gigantic sphere onto which a star field image has been texture-mapped.
If you are doing a Sun-Earth-Moon system, do this:
It's not a requirement, but if you want to make your sun-earth-moon look like it is really in space,
surround it with a gigantic sphere onto which a star field image has been texture-mapped.
Shadows are tricky -- even with the shadow notes and sample code.
I'm not saying "don't use them", just that, as a two-pass algorithm, they are tricky.
Everyone who ever tries this using gravitational physics alone, quickly discovers that you need to
give each star a proper initial angular velocity to keep it in an orbit.
If you just place the stars, but don't give them an initial rotational velocity,
gravitational forces make them all glom together in the middle.
If you are proposing to do a simple nucleus-electrons atom (like on The Big Bang Theory),
that is Too Easy.
Find some way to make it harder, and get me to approve it.
Maybe do some of the orbitals (1s, 2s, 2p, d*, f*) and get the shapes right.
Sun-Earth-Moon
Shadows
Stars Orbiting in a Galaxy
Atom