POV-Ray : Newsgroups : povray.animations : phase and bumps : Re: phase and bumps Server Time
5 Jul 2024 11:04:49 EDT (-0400)
  Re: phase and bumps  
From: Hughes, B 
Date: 16 Oct 2003 10:05:39
Message: <3f8ea5b3@news.povray.org>
Very welcome.

Maybe you could use an isosurface made from a pigment function which would
use your color map and phase in that. I'm not positive that the texture will
match up onto the isosurface, just reasons that it should.

If you haven't used color mapped patterns to create isosurfaces before it
goes about like this:

#declare F_Bumps=function {
    pigment {
    bumps
    color_map {
    [0.00 rgb 0.1 ] // color is ignored, only gray levels used
    [0.25 rgb 0.3 ]
    [0.55 rgb 1.0 ]
    [1.00 rgb 0.6 ]
     } phase clock }
}

isosurface {
 function {
  y
  +
  F_Bumps(x,y,z).gray
  *
  0.25 // rescale
 }
 contained_by {box {<-10,-1,-10>,<10,0,10>}}
 accuracy 0.01
 max_gradient 30
  texture {
    pigment {
    bumps
    color_map {
    [0.00 rgb <1,1,0>*0.1 ]
    [0.25 rgb <1,1,0>*0.3 ]
    [0.55 rgb <1,1,0> ]
    [1.00 rgb <1,1,0>*0.6 ]
    } phase clock }
    finish{
      diffuse 0.8
      ambient 0.1
    }
  }
   scale <0.5,1,1.5>
}

-- 
Bob H.
http://www.3digitaleyes.com


Post a reply to this message

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