Page MenuHome

Follow Track constraint depth fix
Needs ReviewPublic

Authored by nekk (nekk) on Jun 27 2017, 3:27 AM.

Details

Summary

The Follow Track constraint was constraining objects in a way that did not respect the original z-distance away from the camera; it seems like it's supposed to.

When the constraint copies the cameras z-axis it multiplies a z-axis unit vector with the camera matrix using mul_v3_m4v3, which actually gives the camera z-axis + its location.

This puts the constrained object in all sorts of weird places, especially if its already along the same line of projection.

Before
https://gfycat.com/ScrawnyMisguidedHeron

After
https://gfycat.com/AcclaimedGloriousAdder

Diff Detail

Repository
rB Blender

Event Timeline

nekk (nekk) created this revision.Jun 27 2017, 3:27 AM
nekk (nekk) edited the summary of this revision. (Show Details)Jun 28 2017, 2:32 AM

I think we should wait till after 2.79. This could change existing setups and it is too late in the release cycle to introduce changes like this.