|
![](/i/fill.gif) |
"Dave VanHorn" <mic### [at] gmail com> wrote in message
news:web.490f93deb3807db2a08ed15e0@news.povray.org...
>
>> #declare N_WoodGrain12a = normal {
>> bozo
>> turbulence 0.04
>> lambda 2.5
>> omega 0.1
>> octaves 7
>> scale <0.5, 0.05, 0.05>
>> };
>
> Ok, but how did you arrive at that?
> I looked through the docs on normal, but didn't see any way to apply the
> pigment
> or texture as a normal.
that's because there isn't.
a pigment defines the color of the surface and has nothing to do with the
normals of the surface (there are exceptions, eg. when you use the slope
pattern)
a texture is a combination of (implicitly or explicitly defined) pigment,
normal and finish, or other textures.
what you should be looking at, is using patterns as a normal. You might
also want to look at pigment_pattern.
cu!
--
#macro G(b,e)b+(e-b)*C/50#end#macro _(b,e,k,l)#local C=0;#while(C<50)
sphere{G(b,e)+3*z.1pigment{rgb G(k,l)}finish{ambient 1}}#local C=C+1;
#end#end _(y-x,y,x,x+y)_(y,-x-y,x+y,y)_(-x-y,-y,y,y+z)_(-y,y,y+z,x+y)
_(0x+y.5+y/2x)_(0x-y.5+y/2x) // ZK http://www.povplace.com
Post a reply to this message
|
![](/i/fill.gif) |