POV-Ray : Newsgroups : povray.binaries.images : it's not about photons... : Re: it's not about photons... Server Time
6 Nov 2024 22:14:10 EST (-0500)
  Re: it's not about photons...  
From: Kontemplator
Date: 7 Jan 2018 06:20:00
Message: <web.5a5201577e154b36bf095d010@news.povray.org>
"Kenneth" <kdw### [at] gmailcom> wrote:
> Here is one way to do it. I remade your T_warn1 texture as T_warn_2. You might
> need another very similar texture (with a different radial 'frequency') for your
> plane, so that the warning stripes there look equal in size to the cylinder's
> stripes.
>
> #declare T_warn_2 =
> texture{
> pigment{
>     radial
>     sine_wave
>     frequency 16
>         color_map{
>             [.5 rgb 0]
>             [.5 rgb <1,.7,0>]
>                  }
>        }
>     }
>
> #declare Thing=
> difference{
> sphere {0,9.05 pigment {rgb 0.1}}
> sphere {0,8.55 pigment {rgb 0.1}}
> cylinder{<0,-10,0>, <0,10,0> 5.01 // made in Y instead of X
>   texture {T_warn_2}
>   rotate 90*z
>   }
> plane {z,-1 hollow texture {T_warn_2 rotate 90*x}}
> finish {diffuse .25}
> photons {collect off}
> }

Thanks a lot, after hours of waiting I got it. My math fails in calculating the
exakt radius of the sphere at the intersection point with the plane so I alterd
the frequency in an animation until it looked good. Guess thats a lazy way but
studying math would take much longer.


Post a reply to this message

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