POV-Ray : Newsgroups : povray.binaries.images : Lame attempt at sub-surface scattering : Re: Lame attempt at sub-surface scattering Server Time
9 Aug 2024 17:21:19 EDT (-0400)
  Re: Lame attempt at sub-surface scattering  
From: Tim Cook
Date: 1 Jan 2005 23:40:36
Message: <41d77b44$1@news.povray.org>
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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.