Convert exponential scale to linear.

Also clean up camera switching logic.