POV-Ray : Newsgroups : povray.animations : best to animate simple moving meshes : Re: best to animate simple moving meshes Server Time
16 Apr 2024 14:34:10 EDT (-0400)
  Re: best to animate simple moving meshes  
From: noam
Date: 17 May 2012 03:45:00
Message: <web.4fb4ac639fbc2e8e92f3bd070@news.povray.org>
clipka <ano### [at] anonymousorg> wrote:
> Am 16.05.2012 22:53, schrieb noam:
> > Hi Guys,
> > I am new to the povray community, and after reading the manual I am still not
> > sure what's the best way to achieve my goal:
> >
> > I have a simulation written in c++ in which I simulate rigid bodies moving. In
> > each time step each body's position and orientation change.
> > I want to render my simulation using POV-Ray. What is the correct way? I can
> > output a pov file for each frame and then render each pov file and make an
> > animation.
> > However, as the meshes are rather large and do not change between frames (only
> > their orientation and position change), I hope there's a simpler way to just
> > write the mesh once and then reference it when producing the animation.
> >
> > What is the best way to achieve my goal?
>
> You can generate one include file (see "#include") for the shapes,
> another one specifying their locations for each frame, and tie
> everything together in a manually created .pov file.

Thanks! That solves almost everything, but how would I create an array for the
orientation matrices (I assume I would to create an array of matrices and then
index through it using 'clock')?


Post a reply to this message

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