|
![](/i/fill.gif) |
Nieminen Juha wrote:
>
> Ken <tyl### [at] pacbell net> 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
|
![](/i/fill.gif) |