Hacker News new | ask | show | jobs
by gmiller123456 2824 days ago
There seems to be two pieces to generating that particular image. The first appears to be just a sphere with lines drawn at random points on its surface. The second piece are the "motion" lines that tend to point away from the sphere's direction of motion.

The first piece seems simple enough. Pick and random point on a sphere, and draw a few lines at random orientations a very small distance from that spot with no correction for persepective.

The second piece, the motion lines, seem to be a bit more complex. But they appear to be done by choosing a random spot on a circle's circumference, choosing an angle at random which is heavily biased towards the tangent line at that point on the circumference. Choosing a magnitude (length) for that motion line. And drawing some dashed lines along that path. Then repeating some new lines along that same path but shifted a random amount perpendicular to the motion line.

[I doubt I explained that second part very well, so don't try to re-read it if you didn't get it.]