|
|
"Christopher James Huff" <chr### [at] maccom> wrote:
> The reset_children feature was not added to 3.5,
Ah ... OK ...
> but the same effect is possible. Since you are using
> plain transformations, you can do this:
>
>
> #declare TexTrans = transform {
> scale 2
> translate vnormalize(LPos-SphPos)
> }
>
> #declare Tex = texture {
> gradient vnormalize(SphPos-LPos)
> transform {TexTrans}
> texture_map {
> [0.0 Tex1 transform {TexTrans inverse}]
> [1.0 Tex2 transform {TexTrans inverse}]
> }
> }
Thanks so far ... You gave me the idea, but your solution doesn't work ...
Can this be a bug ?
I can't write
transform {TexTrans} // Parser Error
nor
transform {TexTrans inverse} // Parser Error
but only
transform TexTrans
....
I can write:
#declare TexTrans=transform { scale 2 translate P1-P2 }
and
#declare TexTransInv=transform { scale 2 translate P1-P2 inverse }
Can this be a bug ?
I'll put a minimal Example, with error to p.b-t.b
--
[Talking about cardriving]
"People are opstacles?
Oh...I always treat them as bonus points..." [Ian Burgmyer in p.o-t]
// Jan Walzer <jan### [at] lzernet>
Post a reply to this message
|
|