POV-Ray : Newsgroups : povray.text.scene-files : Spherical height field source : Spherical height field source Server Time
28 Jul 2024 16:21:35 EDT (-0400)
  Spherical height field source  
From: Gilles Tran
Date: 8 Feb 2000 10:35:58
Message: <38A037EB.504C1A6@inapg.inra.fr>
// Gilles Tran
#version unofficial Megapov 0.4;
#include "colors.inc"
#include "textures.inc"
#include "metals.inc"

// ----------------------------------------
camera
{
  location  <0.0, 0.5, -4.0>
  direction 1.5*z
  right     4/3*x
  look_at   <0.0, 0.0,  0.0>
}

background{color rgb 1}
light_source{<1000,1000,-1000> color rgb 1}

// ----------------------------------------
// text : WHITE letters on BLACK background
#declare hftext=function{pigment{image_map{png "text.png" map_type 1
interpolate 2}}}
isosurface{
        function{x*x+y*y+z*z + 0.3 - hftext(x,y,z)*0.3}
        contained_by{sphere{0,1}}
        eval
        max_gradient 150 // <--- important- adjust to your picture
otherwise strange things happen
        threshold 1
        texture{
                onion
                texture_map{
                [0 T_Silver_1B] // change this because reflection make
long renders
                [0.85 T_Silver_1B]
                [0.85 T_Gold_2C]
                [1 T_Gold_2C]
                }

        }
        rotate y*-65

}


Post a reply to this message

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