








































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!









































θ/2);^ v^ sin(
θ/2)}
Inverse is
-1^ q =(s, - v ) Multiplication rule^ ^ Consistent with rotation composition
How do we apply rotations?^ How do we interpolate?
θ
v
(^ )(
)
1 2 1
2 1 2
1 2 2 1
1 2 ,
q q^ =^
r^ r^ r
r^
r^ r
p^ by^ q , compute ^ q^ {0;^ p }^
-1 q p= (x,y,z)^
q ={ cos(θ/2), 0,0,sin(
θ/2) } = {c, 0,0,s}
q^ {0, p }= {c, 0, 0, s} {0, x, y, z}
1 2 1
2 1 2
1 2 2 1
1 2 ,
q q^ =^
r^ r^ r
r^
r^ r
= {c.0- zs,^
c p +0(0,0,s)+ (0,0,s)
×^ p } = {-zs, c^ p^ + (-sy,sx,0) }-1^ q {0, p } q^ =^ {-zs, c
p^ + (-sy,sx,0) }
{c, 0,0,-s} = {-zsc-(c p +(-sy,sx,0)).(0,0,-s),-zs(0,0,-s)+c(c
p +(-sy, sx,0))+ (c
p^ + (-sy,sx,0) ) x (0,0,-s) }
= {0,^ (0,0,zs
22 )+c p +(-csy, csx,0)+(-csy, csx, 0)+(s
22 x, s^ y, 0)}
(^2) = {0, (cx-2csy-s 22 x, cy+2csx-s
2 2+^2 y, zs^ sc)} = {0, x cos(
θ)-y sin(θ), x sin(
θ)+y cos(θ), z }
l inear int
erp olation (lerp) of
quaternions is that it interpolates the straight line (the secant)between the two quaternions and not their spherical distance.As a result, the interpolated motion does not have smoothvelocity: it may speed up too much in some sections: S pherical
l inear int
erp olation (slerp) removes this problem by interpolating along the arc lines instead of the secant lines. q^^0
q^1
t q ( )
t q ( )
keyframes^
lerp^
slerp
(^ )
(^ )( )
(^ ) (^ ) (^0) ( )
1
0 1 1
sin^1
sin
slerp^ ,
sin
where^
cos
q^
q
q^ q^
q q^ q
−
(^2) =Z+Zn+1 n 0
Julia set Z
(^2) =Z+Cn+1n http://aleph0.clarku.edu/~djoyce/julia/explorer.htmlDo the same with Quaternions!Rendered by Skal (Pascal Massimino) http://skal.planet-d.net/See also http://www.chaospro.de/gallery/gallery.php?cat=Anim
Images removed due to copyright considerations.
2 +Cn Do the same with Quaternions!Rendered by Skal (Pascal Massimino) http://skal.planet-d.net/This is 4D, so we need the time dimension as well
Images removed due to copyright considerations.
x v^
v
t x (^ )
,t g x ( )
,t= v g x ( )
any particle position
x^ at any time
How would a particle move in this vector field?
( x 2 ,t g x )