POV-Ray : Newsgroups : povray.beta-test : Slope pattern Server Time
13 Nov 2024 04:20:56 EST (-0500)
  Slope pattern (Message 1 to 2 of 2)  
From: Trevor Quayle
Subject: Slope pattern
Date: 14 Sep 2001 21:55:12
Message: <3ba2b500@news.povray.org>
I seem to have a problem with slope pattern.  The pattern doesn't seem to
work when the slope is absolutely flat.
In the following code, if the rotation of my object is 0 (i.e. top of
cylinder is flat) the texture won't apply to the top, but if you rotate it
slightly (like 0.00001*x) the texture is there: i have posted two images in
p.b-t.b illustrating what I mean.

-tgq

here is my code:

#declare LO=<-60,60,-60>;
#declare LA=<0,40,0>;
camera{
  direction<0,0,1>
  up<0,1,0>
  right<4/3,0,0>
  location LO
  look_at  LA
}

light_source{
  0
  color rgb 2
  translate<-50,200,-50>
}

#declare MD1=
material{
  texture{
    pigment{rgb 1}
  }
  texture{
    pigment{
      slope y
      color_map{
        [0.5 rgbt 1]
        [1.0 red 1]
      }
    }
  }
}

plane{-y, 20 texture{pigment{checker rgb 1 rgb 0} finish{diffuse 0.8}scale
25}}
union{
  cylinder{<0,-20,0> <0,20,0> 30}
  torus {30 20}
  material{MD1}
  rotate x*0.00001
  translate<60,0,60>
}



--
camera{location z*13look_at 0}light_source{15 15looks_like{sphere{0 10
}pigment{rgb 1}finish{ambient 15}}}union{torus{3,0.5rotate x*90}cone{y
*4,.5,-y*8,0}cone{-x*4,.5,x*8,0}pigment{rgb<.7,.6,.4>}finish{ambient 0
diffuse 0reflection{1fresnel on metallic 1}}interior{ior 25}rotate 15}
plane{y,-7pigment{checker rgb 0rgb 1scale 4}finish{diffuse.1}}//   TGQ


Post a reply to this message

From: Trevor Quayle
Subject: Re: Slope pattern
Date: 14 Sep 2001 21:59:05
Message: <3ba2b5e9$1@news.povray.org>
sorry

version 3.5 beta 2
win98, 466 MHz, 128RAM

-tgq


--
camera{location z*13look_at 0}light_source{15 15looks_like{sphere{0 10
}pigment{rgb 1}finish{ambient 15}}}union{torus{3,0.5rotate x*90}cone{y
*4,.5,-y*8,0}cone{-x*4,.5,x*8,0}pigment{rgb<.7,.6,.4>}finish{ambient 0
diffuse 0reflection{1fresnel on metallic 1}}interior{ior 25}rotate 15}
plane{y,-7pigment{checker rgb 0rgb 1scale 4}finish{diffuse.1}}//   TGQ


Post a reply to this message

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