Skip to content

This project is a solar system simulation implemented using OpenGL. It provides an interactive 3D representation of the solar system, allowing users to explore and learn about the arrangement and movements of planets around the sun. The simulation includes realistic planetary orbits, rotation, and textures.

Notifications You must be signed in to change notification settings

pedromelobitencourt/Solar-System-OpenGL-Simulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Solar System OpenGL Simulation

Project Setup

  1. Create a GLUT project in CodeBlocks.

  2. In the main file of the project, paste the code from one of the provided main files.

  3. Create a file named "carregartextura.h".

  4. When prompted, associate the file with the current project by selecting "Yes".

  5. Paste the code from the "carregartextura.h" file in this GitHub repository into the newly created "carregartextura.h" file.

  6. Create a file named "carregartextura.cpp".

  7. When prompted, associate the file with the current project by selecting "Yes".

  8. Paste the code from the "carregartextura.cpp" file in this GitHub repository into the newly created "carregartextura.cpp" file in your project.

  9. Download the "Sol.bmp" and "Estrelas_SkyBoxes.bmp" images.

  10. Place these images in the executable folder of your project. Typically, this is in the directory: ProjectFolder -> Bin -> Debug.

  11. Compile and run the program.

Controls

  • 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.

Notes

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!

About

This project is a solar system simulation implemented using OpenGL. It provides an interactive 3D representation of the solar system, allowing users to explore and learn about the arrangement and movements of planets around the sun. The simulation includes realistic planetary orbits, rotation, and textures.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published