implemented scaleFactor

started to use a common scale factor to adjust 3d graphics resolution.
now must apply this to particle speeds and so on.