glentakahashi/solarsystem
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
master
Could not load branches
Nothing to show
Could not load tags
Nothing to show
{{ refName }}
default
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code
-
Clone
Use Git or checkout with SVN using the web URL.
Work fast with our official CLI. Learn more about the CLI.
- Open with GitHub Desktop
- Download ZIP
Sign In Required
Please sign in to use Codespaces.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching Xcode
If nothing happens, download Xcode and try again.
Launching Visual Studio Code
Your codespace will open once ready.
There was a problem preparing your codespace, please try again.
Latest commit
Git stats
Files
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
Assignment 2: Glen Takahashi, UID: 704004642 Requirements 1,2,3,4,5,6,7 and Extra Credit 1,2 are satisfied. Built with g++ 4.7.2 on Debian 7 Requirements: 1. I added a keybind so when you press 'q', it calls exit(0); 2. I used some logic found in the book to subdivide dodecahedrons. I altered the logic so it would generate spheres based on the complexity that you pass into it. 3. I had the code generate both types of normals for each vertex so i could quickly switch between the two. 4. I made my own Satellite class, which can have satellites orbiting them. I made one called Sun which had no velocity and added all my planets and moons to it. 5. Using my Satellite class, I easily added each satellite to my solar system. 6. I could easily reuse my code from last time that already had this implemented. 7. I implemented phong and gouraud shading using my vshader and fshader. It computes the colors in the fshader and vshader respectively. Extra credit: 1. Using my satellite model, I can add satellites to one another, which simply add another translation and rotation on top of it. 2. Using my arrow keys, you can attach yourself to the top of any satellite, including moons, and use the 'D' key to toggle locking at the sun. Also, I was able to get it to rotate not on the same plane. By using some vetex math I was able to rotate planets around any axis that I wanted. The mud planet is rotating around the sun at a 30 degree angle.
About
A fun OpenGL project to model random solar systems in space.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published