Problem with transformation matrices on some parts

RE: Problem with transformation matrices on some parts
#5
So you want me to read in the values like this?
Code:
```const splittedLine = this.splitter(line, " ", 14); let transform = new Matrix4(); transform.set(   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 ):
Code:
```a b c x         u d e f y     *   v g h i z         w 0 0 0 1         1```

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

 Messages In This Thread Problem with transformation matrices on some parts - by Florentin - 2023-04-08, 9:07 RE: Problem with transformation matrices on some parts - by Magnus Forsberg - 2023-04-08, 11:57 RE: Problem with transformation matrices on some parts - by Florentin - 2023-04-08, 12:25 RE: Problem with transformation matrices on some parts - by Travis Cobbs - 2023-04-09, 5:58 RE: Problem with transformation matrices on some parts - by Florentin - 2023-04-10, 11:00 RE: Problem with transformation matrices on some parts - by Jonathan N - 2023-04-10, 14:07 RE: Problem with transformation matrices on some parts - by Florentin - 2023-04-10, 15:05 RE: Problem with transformation matrices on some parts - by Max Murtazin - 2023-04-10, 18:29 RE: Problem with transformation matrices on some parts - by Florentin - 2023-04-12, 18:43 RE: Problem with transformation matrices on some parts - by Max Murtazin - 2023-04-12, 20:24

Forum Jump:

Users browsing this thread: 2 Guest(s)