Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

p5js - Solar System 3D - With Textures - Coding Challenge #9 #35

Merged
merged 2 commits into from
Oct 7, 2018

Conversation

brianhonohan
Copy link
Owner

@brianhonohan brianhonohan commented Oct 7, 2018

No interactions yet.

Should be live at: https://brianhonohan.com/sketchbook/p5js/coding-challenges/solar-system-3d-texturized/ upon merging.

* Copy and paste of the 3D system, to allow this to be an independent exploration.
* Inspired by: Coding Train's Coding Challenge #9 https://www.youtube.com/watch?v=FGAwi7wpU8c&list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH&index=9
* Textures were downloaded from:
  - https://www.solarsystemscope.com/textures/
  - which states: "These textures represent real planetary maps in equirectangular projection. You can use them in 3D rendering, or just open them in any image viewer and explore the surface of planets :)"

* Uses p5js' preload() to ensure all textures are loaded prior to use.
@brianhonohan brianhonohan merged commit ce172b8 into master Oct 7, 2018
}else{
this.objects.push(this.generatePlanet());
this.objects.push(this.generatePlanet(i));
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately, it took me a while to realize I wasn't passing in the i index variable to generatePlanet(idx) ... and thus loss some time debugging this. Alas.

@brianhonohan brianhonohan deleted the p5js-cc9-solar-system-3d-texturized branch November 3, 2018 01:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant