POV-Ray : Newsgroups : povray.unofficial.patches : normals - how should they look? : Re: normals - how should they look? Server Time
2 Sep 2024 20:14:05 EDT (-0400)
  Re: normals - how should they look?  
From: Ken
Date: 17 Dec 1999 06:44:33
Message: <385A224E.DF623215@pacbell.net>
Nieminen Juha wrote:
> 
> Ken <tyl### [at] pacbellnet> wrote:
> :>   Now there's an interesting question: What if you want the scaling of the
> :> object to affect the pigment but not the normals?
> 
> : object
> : {....
> :     pigment {...}
> :     scale <...>
> :     normal {...}
> : }
> 
>   But does this work? The pigment and the normal are part of the same
> texture.

  If you avoid the texture wrapper it does. Try this and you will see that
the pigment pattern scales with the box but the normal remains uneffected.
It is all in how you order the operations in the object statement.

camera { location z*-4 >look_at 0}

light_source{<-10,10,-10>rgb 1}

box{-1,1
    pigment {gradient y color_map{[.5 red 1][.5 blue 1]}}
    scale <1,1,1>
    normal {crackle 1 scale .5}
  translate x*-1
}


box{-1,1
    pigment {gradient y color_map{[.5 red 1][.5 blue 1]}}
    scale <1,.5,1>
    normal {crackle 1 scale .5}
  translate x*1
}

-- 
Wishing you Seasons Greetings, A Merry Christmas, and A Happy New Year !


Post a reply to this message

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