- /* move initial camera position up by around 15 degrees:
- in other words, tilt the scene toward the viewer. */
- gltrackball_start (bp->trackball, 50, 50, 100, 100);
- gltrackball_track (bp->trackball, 50, 5, 100, 100);
-
- /* Oh, but if it's the "Giant" model, tilt the scene away: make it
- look like we're looking up at it instead of down at it! */
- if (bp->style == GIANT)
- gltrackball_track (bp->trackball, 50, -12, 100, 100);
- else if (bp->style == ROCKET) /* same for rocket, but not as much */
- gltrackball_track (bp->trackball, 50, -4, 100, 100);
+ /* Tilt the scene a bit: lean the normal lamps toward the viewer,
+ and the huge lamps away. */
+ gltrackball_reset (bp->trackball,
+ -0.3 + frand(0.6),
+ (bp->style == ROCKET || bp->style == GIANT
+ ? frand (0.2)
+ : -frand (0.6)));