POV-Ray : Newsgroups : povray.general : How to place a warp on a sphere? : Re: How to place a warp on a sphere? Server Time
5 Nov 2024 13:27:14 EST (-0500)
  Re: How to place a warp on a sphere?  
From: Jörg 'Yadgar' Bleimann
Date: 10 Apr 2003 15:56:51
Message: <3E95E8D0.7A9ED045@tiscalinet.de>
High!

Simon Adameit schrieb:

> Thats difficult to say without source.

O.k., here's the source - different values, but the problem is essentially
the same!

light_source
{
  0
  color rgb <1, 0.95, 0.9>
}

sphere
{
  0, 1
  texture
  {
    pigment
    {
      gradient y
      color_map
      {
        [0.02     rgb <0.7, 0.45, 0.2>]
        [0.078  rgb <0.64, 0.46, 0.18>]
        [0.09  rgb <0.3, 0.03, 0>]
        [0.105 rgb <0.3, 0.03, 0>]
        [0.1136 rgb <0.8, 0.76, 0.26>]
        [0.153 rgb <0.9, 0.8, 0.35>]
        [0.208 rgb <0.78, 0.69, 0.12>]
        [0.223 rgb <0.95, 0.71, 0.02>]
        [0.265 rgb <0.94, 0.72, 0.05>]
        [0.275 rgb <0.24, 0.17, 0.01>]
        [0.28  rgb <0.25, 0.16, 0.02>]
        [0.305  rgb <0.65, 0.57, 0.2>]
        [0.357 rgb <0.7, 0.54, 0.12>]
        [0.364 rgb <0.9, 0.87, 0.76>]
        [0.412 rgb <0.95, 0.86, 0.74>]
        [0.438 rgb <0.87, 0.43, 0.12>]
        [0.491 rgb <0.87, 0.45, 0.09>]
        [0.505 rgb <0.27, 0.19, 0>]
        [0.563 rgb <0.25, 0.18, 0.01>]
        [0.578 rgb <0.89, 0.89, 0.65>]
        [0.588 rgb <0.90, 0.89, 0.65>]
        [0.609 rgb <0.26, 0.17, 0.01>]
        [0.65  rgb <0.25, 0.19, 0>]
        [0.659 rgb <0.76, 0.5, 0.11>]
        [0.682 rgb <0.75, 0.43, 0.09>]
        [0.694 rgb <0.89, 0.78, 0.24>]
        [0.78  rgb <0.91, 0.8, 0.21>]
        [0.8 rgb <0.68, 0.32, 0.1>]
        [0.825 rgb <0.12, 0.09, 0>]
        [0.831 rgb <0.11, 0.11, 0.01>]
        [0.855 rgb <0.7, 0.56, 0.03>]
        [0.876 rgb <0.72, 0.57, 0.06>]
        [0.911 rgb <0.9, 0.85, 0.43>]
        [0.934 rgb <0.97, 0.9, 0.53>]
        [0.953 rgb <0.81, 0.72, 0.45>]
        [0.964 rgb <0.82, 0.702, 0.42>]
        [0.982 rgb <0.98, 0.92, 0.6>]
        [0.984 rgb <0.97, 0.9, 0.62>]
        [0.991 rgb <0.915, 0.84, 0.52>]
        [0.995 rgb <0.967, 0.904, 0.59>]
      }
      phase 0.5
      turbulence 0.03
      octaves 6
      omega 0.75
      // lambda 6
      scale <1, 1, 1.3333>
      warp
      {
        black_hole
        <0, 0, -1>, 1
        strength 5
        falloff 2
        inverse
      }
      warp
      {
        black_hole
        <0.1, 0, 1.2>, 0.09
        strength 5
        falloff 2
        inverse
      }
      warp
      {
        black_hole
        <0.3, 0, -0.1>, 0.15
        strength 5
        falloff 2
        inverse
      }
      scale <1, 1, 0.75>
    }
    finish
    {
      ambient 0.01
      diffuse 1
    }
    scale 2
    translate -z
  }
  scale <94.23, 91.7, 94.23>

  translate <0, 0, 120000>
}


camera
{
  location <0, 0, 119000>
  look_at <0, 0, 120000>
  angle 20
}


Post a reply to this message

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