POV-Ray : Newsgroups : povray.newusers : Length of spline object changes during animation : Re: Length of spline object changes during animation Server Time
3 Oct 2022 17:11:32 EDT (-0400)
  Re: Length of spline object changes during animation  
From: Bald Eagle
Date: 19 Sep 2022 07:20:00
Message: <web.63284fee70f1e1be1f9dae3025979125@news.povray.org>
"Aj" <nomail@nomail> wrote:

> Thank you for taking the time to go through the problem.
> So basically the < x, y, z > coordinates are coming from a numerically simulated
> soft robot and the entire shape of the robot changes over time. So I was trying
> to create a spline through these points that move in the 3d space. I agree that
> the splines will be of different lengths depending on the location of control
> points but this is what I am trying to fix. As the spline represents a soft
> robot that is capable of only changing its shape keeping the length constant.
> I hope this clears some of your doubts.

The problem here is that you need to be able to create a smooth spline that you
can calculate the length of.  And Cousin Ricky will tell you that calculating
the length of many mathematical curves with some sort of implicit or parametric
equation is - impossible.

What you'd probably need to do is find some numeric method to approximate the
length based on linear line segments (or just use a linear spline).  Then you'd
need a way to take the soft-robot control points and iteratively adjust their
positions so that they converge to a spline with a fixed length, while still
maintaining the overall correct pose of the character.

This is a raytracing forum, and the experience and expertise of the people here
is pretty random.
I would suggest that you take a good while to research approximating
curve/spline lengths, and contact people whose expertise this is.   There are
graduate students, engineers, professors, CG professionals, youtubers, bloggers,
and textbook authors who could give you advice and point you in the right
direction.

Try to find people who like a graphics or coding challenge.   Art of Code
(Martijn Steinrucker), Coding Train (Daniel Shiffman), Inigo Quilez (Shadertoy),
are all places I frequent to stretch my horizons and learn new and different
approaches to CG and coding problems.

Always look to see if anyone has already done this type of thing, albeit in a
different, seemingly unrelated field. You may find an academic paper, a textbook
chapter, a Graphics Gem article, or actual code posted on a website.   Don't aim
for perfect - you likely just need "good 'nuff".


Post a reply to this message

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