In this Coding Challenge, I follow up on the Earthquake Data Visualization challenge ( and create a 3D version in Processing(Java) using spherical coordinates. I also discuss some 3D vector math including the cross product.

Support this channel on Patreon:

Send me your questions and coding challenges!:

The Coding Train website:

Links discussed in this video:
Spherical Coordinates System on Wikipedia:
USGS Earthquake Data:
Cross Product Diagram:
Natural Earth Texture Maps:
Nasa Earth Maps:
Euler Angle on Wikipedia:
Quaternions and spatial rotation on Wikipedia:

Source Code for the all Video Lessons:


For More Coding Challenges:
For an Intro to Programming using p5.js:
For more videos about p5.js and Data:

Help us caption & translate this video!