.PreScale has the same problem as .pre_mul, there are two possible ways of reading it (as an active or passive sentence) furthermore the connotation with pre/post multiplication of matrices further confuses things
-
-
Replying to @ManishEarth @XMPPwocky
if you've been writing code with this for a while it's fine because the assumptions ("we never talk in terms of matrices") are implicit but as someone who has only dabbled in Firefox graphics code, this shit confused me every. time.
1 reply 0 retweets 0 likes -
-
Replying to @ManishEarth @XMPPwocky
Manish Retweeted Patrick Walton
Manish added,
1 reply 0 retweets 0 likes -
Replying to @ManishEarth @XMPPwocky
"everyone on the gfx team uses transforms" is tautological, of course they do, their code is 100% in terms of transforms
1 reply 0 retweets 0 likes -
Replying to @ManishEarth @XMPPwocky
which came first, the gfx team, or the gfx code?
1 reply 0 retweets 0 likes -
Replying to @ManishEarth @XMPPwocky
In my case it also comes from working with GLSL where you basically have to use matrix math, so it’s easier for me to just use matrices everywhere
2 replies 0 retweets 1 like -
To be clear I call Matrix3D Transform3D, but I don’t like the PreMul/PostMul distinction (and I know folks on the gfx team who don’t like it either)
1 reply 0 retweets 1 like -
Replying to @pcwalton @XMPPwocky
Oh, I actually prefer working with transforms in code too, I just get confused with libraries because not everyone library looks at things the same way
1 reply 0 retweets 0 likes
I think a lot of the confusion for me also stems from the fact that the word “PreMul” conflates two concepts—transforms and matrices
-
-
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.