www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Geometry and math library feature requests thread

reply unDEFER <undefer gmail.com> writes:
Hello, there!
I already have a lot of experience with D. I have written my own 
game engine for my game 
(https://sourceforge.net/projects/dizzy-omega/), but 
implementation of my collision detector is 2D and is ugly without 
good geometry library.
Now I have even two projects which very need in good geometry 
math library.
The first one is utility to fix color profile of any printer by 
print&scan special color test pages. The task which I can't to 
solve without good library is interpolating 3D-function only some 
random points of which are known.
The second project is also game project. It will use job done in 
Dizzy Omega, but game engine must be many improved to understand 
Collada format, animation engine and more universal collision 
detector in 3D. This game will open source but commercial which 
will distributed by "pay later" principle. Anyway I again need 
here some good geometry math library.

I want in this topic discuss which features must have such 
library to be universal and useful not only for my projects, but 
also for any your projects.

Thanks.
Jun 16
next sibling parent parelt <geo geo.org> writes:
On Wednesday, 16 June 2021 at 21:48:05 UTC, unDEFER wrote:
 Hello, there!
 I already have a lot of experience with D. I have written my 
 own game engine for my game 
 (https://sourceforge.net/projects/dizzy-omega/), but 
 implementation of my collision detector is 2D and is ugly 
 without good geometry library.
 Now I have even two projects which very need in good geometry 
 math library.
 The first one is utility to fix color profile of any printer by 
 print&scan special color test pages. The task which I can't to 
 solve without good library is interpolating 3D-function only 
 some random points of which are known.
 The second project is also game project. It will use job done 
 in Dizzy Omega, but game engine must be many improved to 
 understand Collada format, animation engine and more universal 
 collision detector in 3D. This game will open source but 
 commercial which will distributed by "pay later" principle. 
 Anyway I again need here some good geometry math library.

 [...]
I would like something like: https://github.com/ianmackenzie/elm-geometry Bonus point: https://package.elm-lang.org/packages/ianmackenzie/elm-units/latest Pure and functional style.
Jun 17
prev sibling next sibling parent Guillaume Piolat <first.name domain.tld> writes:
On Wednesday, 16 June 2021 at 21:48:05 UTC, unDEFER wrote:
 Anyway I again need here some good geometry math library.

 I want in this topic discuss which features must have such 
 library to be universal and useful not only for my projects, 
 but also for any your projects.

 Thanks.
Godot math is a very nice API.
Jun 17
prev sibling parent JN <666total wp.pl> writes:
On Wednesday, 16 June 2021 at 21:48:05 UTC, unDEFER wrote:
 The second project is also game project. It will use job done 
 in Dizzy Omega, but game engine must be many improved to 
 understand Collada format, animation engine and more universal 
 collision detector in 3D. This game will open source but 
 commercial which will distributed by "pay later" principle. 
 Anyway I again need here some good geometry math library.
By the way. I wouldn't recommend Collada. It's nice to have as an option, but because it's all XML, data included, it's very slow to load. You might want to consider GLTF as a modern alternative, which uses a combination of JSON metadata and binary data.
Jun 17