POV-Ray : Newsgroups : povray.newusers : normals and pigments in a csg : Re: normals and pigments in a csg Server Time
5 Nov 2024 13:26:38 EST (-0500)
  Re: normals and pigments in a csg  
From: Ken
Date: 18 Jul 1999 22:50:15
Message: <379291CD.8C1026CE@pacbell.net>
Remco de Korte wrote:

> I'm sorry but this won't work (or I am getting real perception problems).
> I've had this problem more then once. If you stick a pigment on a part of a csg
> (or blob) the normal or finish you use for the whole object doesn't apply there.

If at first you don't succeed... you use the other workable solution. This
following example clearly shows that you can maintain even distribution of
a normal pattern for each object in the csg operation and it looks kool too !

  camera {location<0,0,-5>look_at 0}
  light_source {<0,0,-20> rgb 1}

  #declare Norm = normal { gradient x+y 1 rotate 45*x+y scale .5 frequency 2}

  union {
 sphere { 0, 1 pigment { rgb<1,0,0> } translate<-1, 0,0>normal {Norm} }
 sphere { 0, 1 pigment { rgb<1,1,0> } translate< 1, 0,0>normal {Norm} }
 sphere { 0, 1 pigment { rgb<0,1,0> } translate< 0,-1,0>normal {Norm} }
 sphere { 0, 1 pigment { rgb<0,0,1> } translate< 0, 1,0>normal {Norm} }
        }

-- 
Ken Tyler
  
mailto://tylereng@pacbell.net
http://home.pacbell.net/tylereng/links.htm


Post a reply to this message

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