POV-Ray : Newsgroups : povray.animations : Animating Isosurface question : Re: Animating Isosurface question Server Time
8 Jul 2024 14:57:22 EDT (-0400)
  Re: Animating Isosurface question  
From: Steve Shelby
Date: 18 Jan 2003 10:01:06
Message: <3e296c32@news.povray.org>
Andrew,
I tried it, no luck. but I just realized I forgot to include the next line
defining the isosurface, which is:

isosurface {
   function { y -P1 (x,0,z).red*0.4}

If that makes any difference.
Steve

Andrew Cocker <mai### [at] andrewcockercouk> wrote in message
news:3e284216@news.povray.org...
> "Steve Shelby" <ssh### [at] rexnetnet> wrote in message
news:3e280a4b@news.povray.org...
> > Hello,
> > I have an isosurface with two forms, as follows:
> >
> > #declare P1=function{pigment{leopard
> >    colour_map{[0.0  rgb 0.3]
> >               [0.1  rgb 0.0]
> >               [1.0  rgb -.3]}
> >    scale 0.15
> > }}
> > #declare P2=function{pigment{leopard
> >    colour_map{[0.0  rgb 0.1]
> >               [0.1  rgb 0.0]
> >               [1.0  rgb 1.8]}
> >    scale 0.15
> >
> > I'd like to be able to animate the transition between the two forms. I
have
> > clockmod and have studied the tutorials, but the answer doesn't seem to
be
> > there. Is there a way to do this?
>
> A more easily understandable way of doing it (for those who, like me, have
limited math
> skills) would be:
>
> #include "AutoClck.mcr"
>
> #declare Val_1=0.3;
> Declare_From (Val_1,0)
> Declare_To_Using (Val_1,1,0.1,"S")
>
> #declare Val_2=-0.3;
> Declare_From (Val_2,0)
> Declare_To_Using (Val_2,1,1.8,"S")
>
> #declare P1=function{pigment{leopard
>     colour_map{[0.0  rgb Val_1]
>                [0.1  rgb 0.0]
>                [1.0  rgb Val_2]}
>     scale 0.15
>  }}
>
> This is untested, but it should work.
>
> All the best,
>
> Andy Cocker
>
>
>
>


Post a reply to this message

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