Problem with transformation matrices on some parts

RE: Problem with transformation matrices on some parts
So you want me to read in the values like this?
const splittedLine = this.splitter(line, " ", 14);
let transform = new Matrix4();

  parseFloat(splittedLine[5]), parseFloat(splittedLine[8]), parseFloat(splittedLine[11]), 0,
  parseFloat(splittedLine[6]), parseFloat(splittedLine[9]), parseFloat(splittedLine[12]), 0,
  parseFloat(splittedLine[7]), parseFloat(splittedLine[10]), parseFloat(splittedLine[13]), 0,
  parseFloat(splittedLine[2]), parseFloat(splittedLine[3]), parseFloat(splittedLine[4]), 1

I use Threejs so the set method puts in the values row first into the matrix (I assume that's how you put the values into your matrix).
That results in an also incorrect result (see pic 1).

I think your reading of the values is wrong, because this is how i learned that you multiply homogeneous matrices and points the 3d space (unless you meant column first inserting into the matrix, cause then I'd be the same as I read in the values first but well that's because I made this post Big Grin):
a b c x         u
d e f y     *   v
g h i z         w
0 0 0 1         1

Attached Files
.png   failure.png (Size: 4.2 KB / Downloads: 46)
« Next Oldest | Next Newest »

Messages In This Thread
RE: Problem with transformation matrices on some parts - by Florentin - 2023-04-10, 11:00

Forum Jump:

Users browsing this thread: 1 Guest(s)