[DiscordArchive] noob questions:
[DiscordArchive] noob questions:
Archived author: 4bhorrent • Posted: 2023-05-10T06:52:45.527000+00:00
Original source
noob questions:
there are at least 3 matrix classes in use in the 335a client i know of:
C33Matrix
C34Matrix
C44Matrix
---
question 1:
is my assumption correct, that those are used for transforming, translating, rotating,... geometry?
---
question 2:
are those matrix functions of those classes running on the CPU or GPU?
---
question 3:
can one say which use case those classes usually are used for each (just rule of thumb)?
---
question 4:
if those functions run on the CPU, how feasable is it to improve them? i think there has been a new matrix multiplication formula being discovered not too long ago, which is more performant.SIMD also comes to mind: i know that not all CPUs would support it, but could one optimize it by using AVX512 or somesuch?
Archived author: robinsch • Posted: 2023-05-10T07:00:13.052000+00:00
Original source
2) CPU
Archived author: robinsch • Posted: 2023-05-10T07:02:58.479000+00:00
Original source
I think C33 and C34 are just to save memory.
Archived author: Deamon • Posted: 2023-05-10T07:03:01.541000+00:00
Original source
C33 = rotation + scale
C44 = rotation + scale + translate
C34 = shortened version of c44
Archived author: Deamon • Posted: 2023-05-10T07:05:38.186000+00:00
Original source
And in 2d space, C33 is rotation + scale + translate
Archived author: Deamon • Posted: 2023-05-10T07:06:37.742000+00:00
Original source
It's all math. I tried to explain it in the past. But it takes a lot of time. And in the end ppl still understood nothing.
So I won't bother