Implemented the foundation for visual terrain