Bad IPO Auto Handle behavior

Compiling, libraries, modules, coding guidelines and porting

Moderators: jesterKing, stiv

Post Reply
Kai Kostack
Posts: 0
Joined: Tue Feb 07, 2006 5:24 pm

Bad IPO Auto Handle behavior

Post by Kai Kostack » Fri Jan 11, 2008 12:16 pm

one example:

Image
you can see the handles were set to vector now and all handles have a nice distance from its keys.

Image
here i set them to auto but the resulting curves are anything else than smooth curves as i would expect when using auto handles.

Image
i'm now forced to scale them manually up to get a smooth transition for example as a camera track.

why can't the horizontal distances between handles and keys not be kept like for vector handles?

here is the blend file: http://blendpolis.de/f/download.php?id=25365

i hope someone will improve the auto handle algorithm.

Kai Kostack
Posts: 0
Joined: Tue Feb 07, 2006 5:24 pm

Post by Kai Kostack » Fri Jan 11, 2008 3:48 pm

i had no time to wait, so i made some changes to curve.c myself and now the handles have always a constant 1/3 of the horizontal distance to the next key.

now the above example looks like this and i like it much better:

Image

i replaced

Code: Select all

		len= 2.5614f*(float)sqrt(vx*vx + vy*vy + vz*vz);
with this

Code: Select all

		len= 6.0f;
i have to admit i don't know why there is this square root calculation in there but something must be wrong with it. maybe the original author should take a look into this.

Post Reply