Hi,
im trying to understand some hlsl code so i can convert it to just c++
just to give you some background i am trying to implement mesh-less deformation based on shape matching,
as reference i use
http://www.beosil.com/download/MeshlessDeformations_SIG05.pdf
the sample code is from NVIDIA's example of this implementation.
the underlined parts are the ones that i do not understand,
jmat[0] - is that accessing the row? or just a specific index?
and when they initialize xmfloat3x3 optimumR = ..., in my example i filled in the last indexes with zeros, the constructor requires it.
but they have not initialized those indexes to anything, are they initialized to 0 by default , or is that part of this "matrix" is irrelevant?
my code is on the right, its how much i got so far, i think the Jacobi function part should be ok, having problems with over function.
please give me tips and correct me where i am wrong,
Thank You!