POV-Ray : Newsgroups : povray.binaries.images : Image Maps (from povray.newusers) - attached files (1/1) : Re: Image Maps (from povray.newusers) - attached files (1/1) Server Time
5 Nov 2024 04:24:38 EST (-0500)
  Re: Image Maps (from povray.newusers) - attached files (1/1)  
From: Alain
Date: 16 Nov 2005 19:11:41
Message: <437bcabd$1@news.povray.org>
etrask nous apporta ses lumieres en ce 2005-11-16 14:46:
> Perhaps the desired effect is something I am missing, but I recently made a
> pool ball, number 9 to be specific, using entirely procedural methods.
> 
> #declare texSpot =
>   texture {
>     pigment {
>       gradient z
>       turbulence 0
>       color_map {
>         [ 0.00 color rgbt <1,1,1,1> ]
>         [ 0.95 color rgbt <1,1,1,1> ]
>         [ 0.95 color rgbt <1,1,1,0> ]
>         [ 1.00 color rgbt <1,1,1,0> ]
>       }
>       scale 2
>     }
>   }
> 
> #declare texStripes =
>   texture {
>     pigment {
>       gradient y
>       turbulence 0
>       color_map {
>         [ 0.00 color rgb <1,1,1> ]
>         [ 0.25 color rgb <1,1,1> ]
>         [ 0.25 color rgb <0.98,0.98,0> ]
>         [ 0.75 color rgb <0.98,0.98,0> ]
>         [ 0.75 color rgb <1,1,1> ]
>         [ 1.00 color rgb <1,1,1> ]
>       }
>     }
>     finish {
>       ambient 0
>       diffuse 1
>       specular 0.8
>       roughness 1/128
>       reflection {
>         0.0625, 1/3
>         fresnel on
>         metallic
>       }
>     }
>     scale 2
>     translate <0,1,0>
>   }
> #declare text9 =
>   union {
>     text {
>       ttf "bookos.ttf" "9" 10, 0
>       translate <-0.21,-1/3,-5>
>       rotate <90,0,0>
>     }
>     box {
>       <-0.21,-0.05,-5>
>       <0.3,-0.1,5>
>       translate <0,-1/3,0>
>       rotate <90,0,0>
>     }
>     translate <-0.07,0,0>
>     scale 1/2
>   }
> 
> #declare texText9 =
>   texture {
>     pigment {
>       object {
>         text9
>         rotate <-90,0,0>
>         color rgbt <1,1,1,1>
>         color rgb <0,0,0> // inside
>       }
>       turbulence 0
>       warp { planar }
>     }
>   }
> sphere {
>   <0,0,0>
>   1
>   texture { texPoolBall }
> }
> 
> 
Why the turbulence 0?
If your object don't have an ior, fresnel does nothing. Look in the documentation for
the working.

-- 
Alain
-------------------------------------------------
File not found. Should I fake it? (Y/N)


Post a reply to this message

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