-
Create a GLUT project in CodeBlocks.
-
In the main file of the project, paste the code from one of the provided main files.
-
Create a file named "carregartextura.h".
-
When prompted, associate the file with the current project by selecting "Yes".
-
Paste the code from the "carregartextura.h" file in this GitHub repository into the newly created "carregartextura.h" file.
-
Create a file named "carregartextura.cpp".
-
When prompted, associate the file with the current project by selecting "Yes".
-
Paste the code from the "carregartextura.cpp" file in this GitHub repository into the newly created "carregartextura.cpp" file in your project.
-
Download the "Sol.bmp" and "Estrelas_SkyBoxes.bmp" images.
-
Place these images in the executable folder of your project. Typically, this is in the directory: ProjectFolder -> Bin -> Debug.
-
Compile and run the program.
-
Press 'a' to toggle the display of the orbital plane.
-
Press 's' to toggle the Sun's light (if lighting is off).
-
Press 'o' to show or hide planet orbits.
-
Press 'I' to switch between lighting modes (if lighting is on).
-
Press 'i' to toggle the lighting.
-
Press 'z' to show or hide planet names.
-
Press 'p' to pause or resume the animation.
-
Press 'F1' to move the camera along the Y-axis.
-
Press 'F2' to move the camera along the Y-axis.
-
Press 'PAGE UP' to move the camera along the X-axis.
-
Press 'PAGE DOWN' to move the camera along the X-axis.
-
Press 'END' to move the camera along the Z-axis.
-
Press 'HOME' to move the camera along the Z-axis.
-
Press the 'UP' arrow key for Camera 1.
-
Press the 'DOWN' arrow key for Camera 4.
-
Press the 'LEFT' arrow key for Camera 2.
-
Press the 'RIGHT' arrow key for Camera 3. // Remember to implement this.
-
Left-click the mouse for zooming in.
-
Right-click the mouse for zooming out.
Please note that these changes are not official and are provided as-is. Make sure to backup your project before applying these modifications. If you encounter any issues, refer to the original documentation or seek assistance from the project community.
Feel free to explore and experiment with the new functionalities. Happy coding!