@mbr In http://marc-b-reynolds.github.io/quaternions/2017/05/02/QuatQuantPart1.html, is the Cayley transform correct? The inverse seems to produce the conjugate quaternion; vec4(-s*v.xyz, 1.0 - s) seems to produce correct reconstruction.
=> More informations about this toot | More toots from zeux@mastodon.gamedev.place
Yeah. Both the equation and the code for the inverse transform are wrong in that post. I should have written that line as:
vec4(s*v.xyz, s-1.0)
It is correct in the "toy" C code that is linked and used to produce the plots.
=> More informations about this toot | More toots from mbr@mastodon.gamedev.place This content has been proxied by September (ba2dc).Proxy Information
text/gemini