Merge branch 'main' of https://git.jackmchristensen.com/jack/terravisor
This commit is contained in:
		
						commit
						5f415e4f1b
					
				
							
								
								
									
										65
									
								
								README.md
								
								
								
								
							
							
						
						
									
										65
									
								
								README.md
								
								
								
								
							| 
						 | 
					@ -12,36 +12,71 @@ TerraVisor is a 3D visualization tool designed for rendering and exploring terra
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### Prerequisites
 | 
					### Prerequisites
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- **CMake**: Ensure CMake is installed on your system ([Download CMake](https://cmake.org/download/)).
 | 
					Before building TerraVisor, ensure that you have the following prerequisites installed on your system:
 | 
				
			||||||
- **GLEW and GLFW**: TerraVisor requires GLEW and GLFW for OpenGL context creation and management.
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
### Building from Source
 | 
					- **Git**: Used for cloning the repository and managing source code.
 | 
				
			||||||
 | 
					- **CMake**: Build system generator used to configure the project.
 | 
				
			||||||
 | 
					- **Ninja**: Fast build system used to compile the project.
 | 
				
			||||||
 | 
					- **vcpkg**: Package manager for acquiring C++ libraries.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					### Installation Steps
 | 
				
			||||||
 | 
					
 | 
				
			||||||
1. **Clone the Repository**: 
 | 
					1. **Clone the Repository**: 
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					   First, clone the repository from GitLab
 | 
				
			||||||
   ```bash
 | 
					   ```bash
 | 
				
			||||||
   git clone git@gitlab.yourserver.com:username/TerraVisor.git
 | 
					   git clone http://git.jackmchristensen.com/jack/terravisor.git
 | 
				
			||||||
   cd TerraVisor
 | 
					   cd terravisor
 | 
				
			||||||
   ```
 | 
					   ```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
2. **Build the Project**
 | 
					2. **Install vcpkg**: 
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					   If you haven’t installed `vcpkg` yet, follow these steps to set it up:
 | 
				
			||||||
   ```bash
 | 
					   ```bash
 | 
				
			||||||
   mkdir build && cd build
 | 
					   git clone https://github.com/microsoft/vcpkg.git
 | 
				
			||||||
   cmake -DCMAKE_BUILD_TYPE=Release ..
 | 
					   cd vcpkg
 | 
				
			||||||
   cmake --build .
 | 
					   ./bootstrap-vcpkg.sh   # Use .\bootstrap-vcpkg.bat on Windows
 | 
				
			||||||
 | 
					   ```
 | 
				
			||||||
 | 
					   Optionally, integrate `vcpkg` with your system:
 | 
				
			||||||
 | 
					   ```bash
 | 
				
			||||||
 | 
					   ./vcpkg integrate install
 | 
				
			||||||
   ```
 | 
					   ```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
3. **Run the Application:**
 | 
					3. **Install Dependencies**: \
 | 
				
			||||||
 | 
					   Use `vcpkg` to install dependencies:
 | 
				
			||||||
   Navigate to the build directory and run the executable:
 | 
					 | 
				
			||||||
   ```bash
 | 
					   ```bash
 | 
				
			||||||
   ./TerraVisor
 | 
					    ./vcpkg install glm glew glfw3 assimp
 | 
				
			||||||
 | 
					   ```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					4. **Configure the Project**: 
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					   Navigate back to the project root directory and configure the project using CMake and Ninja. Be sure to specify the `vcpkg` toolchain file:
 | 
				
			||||||
 | 
					   ```bash
 | 
				
			||||||
 | 
					   cd ..
 | 
				
			||||||
 | 
					   cmake -B build -S . -G Ninja -DCMAKE_TOOLCHAIN_FILE=./vcpkg/scripts/buildsystems/vcpkg.cmake
 | 
				
			||||||
 | 
					   ```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					5. **Build the Project**: 
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					   Build the project using Ninja:
 | 
				
			||||||
 | 
					   ```bash
 | 
				
			||||||
 | 
					   cmake --build build
 | 
				
			||||||
 | 
					   ```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					6. **Run the Application**:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					   Once the build process is complete, you can run the TerraVisor application:
 | 
				
			||||||
 | 
					   ```bash
 | 
				
			||||||
 | 
					   ./build/TerraVisor
 | 
				
			||||||
   ```
 | 
					   ```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## Acknowledgements
 | 
					## Acknowledgements
 | 
				
			||||||
 | 
					
 | 
				
			||||||
GLEW - OpenGL Extension Wrangler Library
 | 
					GLEW - OpenGL Extension Wrangler Library \
 | 
				
			||||||
GLFW - OpenGL Framework
 | 
					GLFW - OpenGL Framework \
 | 
				
			||||||
 | 
					GLM - OpenGL Mathematics \
 | 
				
			||||||
 | 
					ASSIMP - Open Asset Import Library \
 | 
				
			||||||
 | 
					Dear ImGui
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## Contact
 | 
					## Contact
 | 
				
			||||||
For questions or support, please reach out to Jack Christensen at <contact@jackmchristensen.com>
 | 
					For questions or support, please reach out to Jack Christensen at <contact@jackmchristensen.com>
 | 
				
			||||||
		Loading…
	
		Reference in New Issue