basic projection code
random code added to work with fixed resolution buffers
code updated to make proper conversion to Raleighs