Last active
December 29, 2018 06:32
-
-
Save serguei-k/673bcdc5f5daf7559d686bd9c6a5f16a to your computer and use it in GitHub Desktop.
Variable FK 1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MMatrix localXform; | |
localXform[3][0] = length / double(sampleCount); | |
MMatrix parentXform; | |
for (auto i = 0; i < sampleCount; ++i) | |
{ | |
MMatrix xform = i != 0 ? localXform : MMatrix::identity; | |
xform *= parentXform; | |
for (auto j = 0; j < controlCount; ++j) | |
{ | |
// apply transformations ... | |
} | |
parentXform = xform; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment