https://github.com/shz-code/gravity-computer-graphics
https://github.com/shz-code/gravity-computer-graphics
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/shz-code/gravity-computer-graphics
- Owner: shz-code
- License: mit
- Created: 2024-05-04T19:57:11.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-04T20:00:43.000Z (over 1 year ago)
- Last Synced: 2025-01-21T07:07:36.909Z (12 months ago)
- Language: C++
- Size: 67.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Simple Gravity App with freeglut
This project provides a simple interactive visualization tool that allows users to explore and compare the effects of gravity on falling objects on different planets. It uses the freeglut library for rendering graphics.
# Features
- Visualization of gravity effects on falling objects(apple).
- Comparison of gravity strength on different planets.
- Interactive controls to change parameters such as planet selection.
# Prerequisites
- C/C++ compiler
- freeglut library. [Refer to this tutorial](https://youtu.be/7rLo69vCooU?si=d1iqBGpwfx4zGqFt)
# Screenshots



# Installation
- Clone or download the repository to your local machine.
```bash
git clone https://github.com/shz-code/gravity-computer-graphics.git
```
- Install freeglut library if you haven't already.
- Open the project in CodeBlocks. Build and run the main.cpp file.
# Usage
- Run the compiled executable.
- Use keyboard or mouse controls to interact with the visualization.
- Select different planets to see their gravity effects.
# Controls
- Use Mouse to stop and start animation.
- Press keys E, M, N to select different planets.
# License
This project is licensed under the MIT License.
# Acknowledgements
This project was inspired.