POV-Ray : Newsgroups : povray.general : procedural texture as a bump map? : Re: procedural texture as a bump map? Server Time
30 Jul 2024 16:20:26 EDT (-0400)
  Re: procedural texture as a bump map?  
From: Zeger Knaepen
Date: 4 Nov 2008 05:40:19
Message: <49102693$1@news.povray.org>
"Christian Froeschlin" <chr### [at] chrfrde> wrote in message 
news:49101c53@news.povray.org...
> Zeger Knaepen wrote:
>
> > "Dave VanHorn" <mic### [at] gmailcom> wrote in message
> >
>>>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.
>
> well, as you mentioned yourself, you can use pigment_pattern
> to treat the average gray value of the pigment as normal:

yes, but it's no longer a pigment then, it's a 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

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