This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
topics:interpolation-rotate3d [2012/08/10 14:21] – created dschulze | topics:interpolation-rotate3d [2014/12/09 15:48] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 4: | Line 4: | ||
Spec_tags | Spec_tags | ||
Owner_tags | Owner_tags | ||
- | Status_tags | + | Status_tags |
Added_dt | Added_dt | ||
Line 64: | Line 64: | ||
Keep current specification text: when rotate3d is involved, the rotation gets interpolated by matrix decomposing. | Keep current specification text: when rotate3d is involved, the rotation gets interpolated by matrix decomposing. | ||
+ | === Numerical interpolation of rotate3d === | ||
+ | The CSS WG asked for a proposal to interpolate rotate3d numerically. | ||
+ | |||
+ | ==== normalization === | ||
+ | A normalization of the rotating vectors can help to identify if two vectors point into the same direction. | ||
+ | * If the vectors describe the same axis (values for x, y, z are the same). Just the rotation (4th value) needs to be interpolated. | ||
+ | * If the vectors are different, then each value (x, y, z, rotation value) get interpolated individually. The computed value gets affected by the normalization during the time of interpolation. | ||
+ | |||
+ | ==== vectors that describe the same axis, but with opposite directions ==== | ||
+ | An open issue are vectors that describe the same axis, but point into the opposite direction. The normalization does not have an affect on the direction. | ||
+ | |||
+ | Example: rotate3d(0, | ||
+ | |||
+ | Should... | ||
+ | * the object be rotated by 180deg anti-clockwise for the first half of the animation and 180deg clockwise for the second part? | ||
+ | * Should opposite vectors be " | ||
+ | |||
+ | ==== Current support ==== | ||
+ | No browser supports numerical interpolation at this time. IE 10 won't support it at all. Safari has problems implementing it because of the usage of CoreAnimation. All browsers do matrix decomposing at the moment. | ||
+ | |||
+ | === Resolved === | ||
+ | Use numerical interpolation if the normalized vectors are equal. Otherwise use matrix decomposing. |