generate terrain and some rendering basics