computing view matrix and not using any dx math code