Trajectory spline 3D illusion

151 Views Asked by At

While playing around with 2D quadratic splines of a trajectory, I sometimes perceive the resulting curve rotating "in 3D" when changing the parameters. Here is a crude GIF example:

2

And another example. (The jerks are due to my poor video editing).

  • INTV is the difference in the parameter t between each pair of consecutive points.
  • DIR_X and DIR_Y are the initial slopes in each coordinate.

Why is this so? Is there any mathematical explanation of this phenomenon?

edit. If it's of any use, I can provide the source of the program.

1

There are 1 best solutions below

0
On BEST ANSWER

Clearly there is some 3D curve and some rotational motion that would produce the results you are seeing, when projected into 2D. So, your mind does not reject the idea that the curve might be rotating in 3D.

The way you are drawing the curve (with the yellow disks in front of the orange ones) strongly suggests that the curve is 3D. If you change the drawing order, or make all the disks the same color, I think the 3D illusion will be greatly reduced.