loading...
Cover image for Sci-fi Globe

Sci-fi Globe

sketchpunk profile image SketchPunk ・1 min read

Saw a fun sample of how to make this sort of globe using only points. The basic idea is that you generate points on a sphere, use any method you like really as long as you can figure out the UV coords for each point. Then take a texture mask, in this case an image of a globe. Then sample the texture for each point on the sphere and if its black (or white, depending on your mask), you can style your point however you like.

I first created a sample of spaced out points, then later on in the day someone showed me an article of how to distribute points on a sphere using fibonacci and golden ratio. So for funs I did that one too, since it gives a different type of look.

All the code is free.

[Demo - Evenly Spaced]
https://sketchpunk.bitbucket.io/src/fungi_v5/007_globe_points_a.html

[Src - Evenly Spaced]
https://bitbucket.org/sketchpunk/sketchpunk.bitbucket.io/src/master/src/fungi_v5/007_globe_points_a.html

[Demo - Fibonacci]
https://sketchpunk.bitbucket.io/src/fungi_v5/007_globe_points_b.html

[Src - Fibonacci]
https://bitbucket.org/sketchpunk/sketchpunk.bitbucket.io/src/master/src/fungi_v5/007_globe_points_b.html

Posted on Jul 7 by:

sketchpunk profile

SketchPunk

@sketchpunk

10% luck, 20% skill, 15% concentrated power of will. 5% pleasure, 50% pain, And a 100% reason to remember the name.

Discussion

markdown guide
 

Hey! I think the image you have on the page might be broken, I don't see a cover image for this article :( Excited to check this out later though!

 

i got rid of the animated gif and just posted a still image.

 

We're having issues rendering out larger gifs for the cover image. Our team is looking into this bug, sorry about that.

 

This is awesome. What's the advantage of using Fibonacci over the Even Spaced method?

 

Fibonacci is faster to compute I think, the code is simpler. The only real reason to use over the other is the pattern of the points. Fibonacci creates spirals and even spaced kinda makes grids. Depending on what your doing, what looks best to you is the winner.

When I played with Fibonacci, i noticed if I change the stepping of N from 0.5 to 1, its stops making spirals and the look it generates feels like distributed noise. So if you looking for random looking points on a sphere, Fib with that lil tweak would probably be the better choice.