POV-Ray : Newsgroups : povray.general : reset children ? (3.5Beta) : Re: reset children ? (3.5Beta) Server Time
19 Nov 2024 18:20:47 EST (-0500)
  Re: reset children ? (3.5Beta)  
From: Jan Walzer
Date: 20 Jan 2002 11:06:13
Message: <3c4aeaf5$1@news.povray.org>
"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

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