Added sample subdivision.
Tweaked the frustum parameters for 3d projection so that they work.
Added preserving matrix calls to preserve translation and fixed z translation.