Recent

Author Topic: [CLOSED] TMatrix3D in FPC  (Read 1103 times)

julkas

  • Guest
[CLOSED] TMatrix3D in FPC
« on: July 19, 2020, 09:50:20 am »
« Last Edit: July 19, 2020, 04:13:51 pm by julkas »

BeanzMaster

  • Sr. Member
  • ****
  • Posts: 268
Re: TMatrix3D in FPC
« Reply #1 on: July 19, 2020, 10:00:36 am »
Hi you can try my library : https://github.com/jdelauney/SIMD-VectorMath-UnitTest
The latest code can be found at https://github.com/jdelauney/BZScene in the folder source/math. Take look at the BZVectorMath unit (see : TBZMatrix4f and TBZMatrixHelper) : https://github.com/jdelauney/BZScene/blob/master/Source/Maths/BZVectorMath.pas

Best regards
« Last Edit: July 19, 2020, 10:02:25 am by BeanzMaster »

ChrisR

  • Full Member
  • ***
  • Posts: 247
Re: TMatrix3D in FPC
« Reply #2 on: July 19, 2020, 12:56:21 pm »
I would also suggest Ryan's VectorMath unit - he includes it with his Metal Framework, but it does not depend on that API. It uses modern Pascal elegantly so you can use standard mathematical functions (e.g. +, -, /) with the vectors

https://github.com/genericptr/Metal-Framework/blob/master/lazarus/package/utils/VectorMath.pas

My OpenGL/Metal demos show how to use these, and illustrate a few of the other functions you want to emulate.
  https://github.com/neurolabusc/Metal-Demos

julkas

  • Guest
Re: TMatrix3D in FPC
« Reply #3 on: July 19, 2020, 04:12:37 pm »
Thanks all for replies.

 

TinyPortal © 2005-2018