![](/i/fill.gif) |
![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
I have objects (generated by a molecule viewer) only in .pov format. I
would like to make flight paths for the camera.
The "animsystem" is not compatible with povray 3.1 (semicolomn
problems),
Has anybody an idea to simply create an animation ?
Thanks
Charles
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
There are a few things out there to create the camera positions and such for
animating along splines. Chris Colefax has a Spline Generator include for
example which can make camera paths:
http://www.geocities.com/SiliconValley/Lakes/1434/
Here's an older utility, Anim8:
http://www.mindspring.com/~maw01/skinz/skinz.htm
Possibly only lacks semi-colon compatibility, not sure.
Bob
Charles & Paula <pcd### [at] cybercable fr> wrote in message
news:38198F4D.7FF6047D@cybercable.fr...
> I have objects (generated by a molecule viewer) only in .pov format. I
> would like to make flight paths for the camera.
> The "animsystem" is not compatible with povray 3.1 (semicolomn
> problems),
>
> Has anybody an idea to simply create an animation ?
>
>
> Thanks
>
> Charles
>
>
>
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
There is a way to use bezier curves, and Chris Colefax has one avaiable
at his site at http://www.geocities.com/SiliconValley/Lakes/1434/. If you
are comfortable with a little math, you can use the following trick to
set up a bezier path:
#declare c0 = some vector; // This is the camera's starting position
#declare c1 = some other vector; // This is the first control point
#declare c2 = some third vector; // This is the second control point
#declare c3 = yet another vecotr; // This is the camera's final position
#declare c = clock;
#declare m = 1 - c;
#local cx = c0.x*pow(m,3) + c1.x*c*pow(m,2) + c2.x*pow(c,2)*m +
c3.x*pow(c,3);
#local cy = c0.y*pow(m,3) + c1.y*c*pow(m,2) + c2.y*pow(c,2)*m +
c3.y*pow(c,3);
#local cz = c0.z*pow(m,3) + c1.z*c*pow(m,2) + c2.z*pow(c,2)*m +
c3.z*pow(c,3);
Note that the camera path will not pass through points c1 and c2 most of
the time, they simply define where the path goes. You will also need to
set up a second path like this for the look_at variable. Then just add
them into the camera statement :
camera { location <cx,cy,cz>
... }
I'm working on a Cyclopedia entry for this one as well.
Charles & Paula wrote:
> I have objects (generated by a molecule viewer) only in .pov format. I
> would like to make flight paths for the camera.
> The "animsystem" is not compatible with povray 3.1 (semicolomn
> problems),
>
> Has anybody an idea to simply create an animation ?
>
> Thanks
>
> Charles
--
Josh English
eng### [at] spiritone com
icq 1946299
"Stress is when you wake up screaming and realize you haven't fallen
asleep yet."
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Josh English <eng### [at] spiritone com> wrote in message
news:381### [at] spiritone com...
> #local cx = c0.x*pow(m,3) + c1.x*c*pow(m,2) + c2.x*pow(c,2)*m +
> c3.x*pow(c,3);
> #local cy = c0.y*pow(m,3) + c1.y*c*pow(m,2) + c2.y*pow(c,2)*m +
> c3.y*pow(c,3);
> #local cz = c0.z*pow(m,3) + c1.z*c*pow(m,2) + c2.z*pow(c,2)*m +
> c3.z*pow(c,3);
I didn't try it, but wouldn't it also be possible to use the vectors
directly, like:
#local c = c0*pow(m,3) + c1*3*c*pow(m,2) + c2*3*pow(c,2)*m + c3*pow(c,3)
camera {location c ...}
AFAIK the slope at the beginning of the spline (at c0) is the same as the
slope of a line between the first two vectors (c0 and c1).
--
Daniel Pirch
dpi### [at] gmx net
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Actually, you are right, I made a slight modification:
#local test = p0*pow(m,3) + p1*c*3*pow(m,2) + p2*3*pow(c,2)*m + p3*pow(c,3);
will give the correct vectors. I pulled mine out of a calculus textbook and
I didn't think to try to compress it. It was written in only two dimensions,
but it was easily adaptable. You are right about the slopes, the line from
c0 to c1 is tangential to the final drawn curve.
Thanks for pointing this out. Makes my life a bit easier since I'm abusing
this trick a lot recently
Daniel Pirch wrote:
> Josh English <eng### [at] spiritone com> wrote in message
> news:381### [at] spiritone com...
> > #local cx = c0.x*pow(m,3) + c1.x*c*pow(m,2) + c2.x*pow(c,2)*m +
> > c3.x*pow(c,3);
> > #local cy = c0.y*pow(m,3) + c1.y*c*pow(m,2) + c2.y*pow(c,2)*m +
> > c3.y*pow(c,3);
> > #local cz = c0.z*pow(m,3) + c1.z*c*pow(m,2) + c2.z*pow(c,2)*m +
> > c3.z*pow(c,3);
>
> I didn't try it, but wouldn't it also be possible to use the vectors
> directly, like:
>
> #local c = c0*pow(m,3) + c1*3*c*pow(m,2) + c2*3*pow(c,2)*m + c3*pow(c,3)
> camera {location c ...}
>
> AFAIK the slope at the beginning of the spline (at c0) is the same as the
> slope of a line between the first two vectors (c0 and c1).
>
> --
> Daniel Pirch
> dpi### [at] gmx net
--
Josh English
eng### [at] spiritone com
icq 1946299
"Stress is when you wake up screaming and realize you haven't fallen asleep
yet."
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |