Still on the matter of Perlinnoise, I finally managed to figure out how to wrap Perlin noise on a sphere (that is, as a Texture[]). It was a bit inconvenient that it seems (at least, to me) that not one of the usual references on Perlin noise mentioned the explicit formulae needed for a proper spherical embedding of Perlin noise. Making use of the functions already defined in the doc page for Compile[], here are two Mathematica functions you can use for generating textures that can be wrapped on a sphere:

and here is the result, after adding appropriate coloring (with thanks to Rob Collyer for the color gradient):

In fact, this is the texture I used for upper leftmost “marble” in the first image.

Advertisements

Like this:

LikeLoading...

Related

This entry was posted on Wednesday, February 29th, 2012 at 11:05 pm and is filed under Graphics, Random Numbers. You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.