fix vertex pointers and vertices. use view and perspective. fix transformation order.