Blender Git Loki

Git Commits -> Revision 7ecc159

Revision 7ecc159 by Alexander Gavrilov (master)
May 6, 2016, 08:40 (GMT)
Force Fields: Fix Texture with both Use Coordinates and 2D enabled.

From description, Use Coordinates evaluates the texture using
target coordinates in the local space of the force field object.
2D is supposed to ignore the Z coordinate. Thus one would assume
that if both are enabled, the force field effect would move with
the force field object, and Z would be 0.

However, instead first the 2D option projects points onto a plane
passing through the global zero and orthogonal to the local Z,
and only then the resulting point is transformed into local space.
Z is not locked at 0, so procedural textures like Spherical Blend
don't work as expected.

To fix this, apply local transform first, and then just clear Z if 2D.

Commit Details:

Full Hash: 7ecc159f378e5bddfdb7aae8ac7784d3ca3f87fc
Parent Commit: 8cc4f3f
Lines Changed: +7, -5

1 Modified Path:

/source/blender/blenkernel/intern/effect.c (+7, -5) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021