POV-Ray : Newsgroups : povray.text.scene-files : skin texture (aoi, no media) Server Time
1 Jun 2024 19:13:53 EDT (-0400)
  skin texture (aoi, no media) (Message 1 to 1 of 1)  
From: Julien Serouart
Subject: skin texture (aoi, no media)
Date: 17 Feb 2005 08:55:00
Message: <web.4214a14bcd2d3277f69206a0@news.povray.org>
A skin texture.


------------
// Persistence of Vision Ray Tracer Scene Description File
// File: mlpeau03.pov
// Vers: unofficial megapov 1.1
// Desc: skin texture (aoi, no media) / texture de peau (sans media)
// Date: 16/02/05
// Auth: Julien Serouart

#version unofficial megapov 1.1;

#declare Radiosity=on;

global_settings {
  assumed_gamma 2.50
  //max_trace_level 25
  #if (Radiosity)
    radiosity {
      pretrace_start 0.08
      pretrace_end   0.04
      count 80
      nearest_count 10
      error_bound 1.0
      recursion_limit 7
      low_error_factor .4
      gray_threshold 0.0
      minimum_reuse 0.01
      brightness 1
      adc_bailout 0.01/2
      normal on

    }
  #end
}

camera {
  right x*image_width/image_height
  location  <0,0.5,-3>*0.8
  look_at   <0,0,0>
}

light_source {
  <-5, 0, -5>
  color rgb <1,1,1>*1.50
  spotlight
  point_at <0, 0, 0>
  radius 20
  tightness 100
  falloff 30
}

light_source {
  <5, 5, -5>
  color rgb <1,1,1>*1.50
  spotlight
  point_at <0, 0, 0>
  radius 20
  tightness 100
  falloff 30
}

// ----------------------------------------

#if (on)
plane {
  y, -2
  pigment { color rgb <0.7,0.5,0.3> }
}

sky_sphere {
  pigment {
    gradient y
    color_map {
      [0.0 rgb <0.6,0.7,1.0>]
      [0.7 rgb <0.0,0.1,0.8>]
    }
  }
}
#end


#if (on)
  #include "functions.inc"

  isosurface {
    function { x*x + y*y + z*z + f_bozo(x*3,y*3,z*3)*0.1 - 1 }
    contained_by { sphere {0, 1.3 } }
    accuracy 0.01
    max_gradient 4
#else
  sphere {
    0, 1
#end

    texture {
      pigment {
        aoi
        color_map {
          [ 0 rgb 1 ]
          [ 0.5 rgb 0.1 ]
        }
        color_map {
          [0.0 color rgb <1.0,0.7,0.4> transmit 0.5 ]
          [0.5 color rgb <0.9,0.7,0.6>*0.75  transmit 0.5]
        }
      }
      finish {
        specular 0.3
        diffuse 0.7
        roughness 0.3
        ambient 0.01
        reflection {0.0,0.1 fresnel}
        conserve_energy
      }
    }

    interior { ior 1.8 }

    interior_texture {
      pigment { rgb <1.0,0.8,0.7>*1.2 }
    }

    normal {
      bozo -0.2
      scale (1-y*0.8)*0.02
    }
}


Post a reply to this message

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