POV-Ray : Newsgroups : moray.win : Mesh coordinates and animation : Re: Mesh coordinates and animation Server Time
21 Apr 2024 08:28:23 EDT (-0400)
  Re: Mesh coordinates and animation  
From: Reactor
Date: 5 May 2009 20:05:00
Message: <web.4a00d3b0c4c8e8b8bb1c7af80@news.povray.org>
"clipka" <nomail@nomail> wrote:
> "Kzerphii Toomk" <kze### [at] orangefr> wrote:
> > Is it possible to change coordinates of a mesh (or mesh 2) during an
> > animation...?
> >
> > I'd like give life to meshes but XYZ resize is not enough... :))
> Theoretically you can't change *anything* during an animation - you just write
> the scene so that it produces different geometry for each frame, whether it is
> a sphere, CSG, mesh or whatever; but I guess that's not the answer you were
> after ;)
> So a more practical reply to your question is "No, that's not possible - unless
> you're auto-generating the mesh using SDL".

The mesh needn't be auto-generated, I've been tinkering with a script that would
permit the use of control points that would allow an existing mesh to undergo
various transformations.  The idea was to allow the user to specify a control
point or groups of points, specify their effect radius, and specify a
transformation for each.  The points within the radius would be transformed,
taking into account the effect of distance from that control point and other
control points.

Simple testing indicates that it would be troublesome from a parsing standpoint,
since to do this it requires that every affected point in the mesh definition be
replaced with an expression that yields the modified vector.  I've been meaning
to finish writing C program that will insert the expressions, which will make
animating my wings models easier, but I haven't gotten around to it yet.

I do want to stress that it is very possible to animate a mesh2 in POV - so far
I've only used the divide and conquer method, but what I described above will
also work.


Post a reply to this message

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