|
![](/i/fill.gif) |
EagleSun wrote:
> I'm interested in seeing the source code that made the bumps and how you got
> that into a sphere....
Something like...
#include "functions.inc"
#declare PlanetSize=6371.3
#declare PlanetRelief=200
#declare fn_PlanetBump=function{
pigment{
image_map{
tiff "c:\imagemap.tif"
map_type 1
once
interpolate 4
}
}
}
isosurface{
function{f_sphere(x, y, z, PlanetSize)-fn_PlanetBump(x, y,
z).red*PlanetRelief}
contained_by{sphere{0,(PlanetSize+PlanetRelief)*1.01}}
pigment{
color rgb 1
}
}
--
Tim Cook
http://home.bellsouth.net/p/PWP-empyrean
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GFA dpu- s: a?-- C++(++++) U P? L E--- W++(+++)>$
N++ o? K- w(+) O? M-(--) V? PS+(+++) PE(--) Y(--)
PGP-(--) t* 5++>+++++ X+ R* tv+ b++(+++) DI
D++(---) G(++) e*>++ h+ !r--- !y--
------END GEEK CODE BLOCK------
Post a reply to this message
|
![](/i/fill.gif) |