Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Does anyone know of a nice non-GPL vecmath-like library (ASF 2, BSD or similiar not-copyleft license)?
jMonkeyEngine math classes have some jME specific inheritance which makes it hard to just rip the math classes, libgdx uses native-code which I'd rather not use and then I ran out of ideas. |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Administrator
|
Xith3D and Ardor3D have their own vecmath libraries. ardor3d-math is easy to use without the rest of the engine. Xith3D uses Jagatoo, it is similar in terms of modularity. Maybe Sven can confirm that JOGL itself (or the scenegraph API) has a math library too.
Julien Gouesse | Personal blog | Website
|
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Thanks, good tips. I finally remembered that Kenji Hiranabe did an OSS implementation of javax.vecmath that I used back in 97, managed to find the sources for that also so now I have a lot to choose from :-)
http://objectclub.jp/download/vecmath_e |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Administrator
|
In reply to this post by gouessej
On 05/05/2014 12:20 PM, gouessej [via jogamp] wrote:
> Maybe Sven can confirm that JOGL itself (or the > scenegraph API) has a math library too. Yes, in package com.jogamp.opengl.math we have VectorUtil and FloatUtil. Most of those utility math methods operate on 4x4 float and 3x3 float matrices as well as 3f and 4f vectors while utilizing simple float arrays instead of custom class definitions. The latter would reduce memory footprint efficiency especially when dealing w/ bulk data. Here float arrays allows fast and efficient memory utilization. Our current git master for the next 2.2 release contains the latest version, which API has changed quite a bit to comfort GraphUI and exposing more uniform method names. You will also find working (tested) versions of the classes Quaternion and Ray here. Package 'com.jogamp.opengl.math.geom' holds more geometry related utilities like AABBox .. Cheers, Sven |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
There's also the vecmath libs we've released in jaamsim (gpl3....but that part can for sure get licensed more permissive if there's interest)
The jaamsim stuff is all double-based, with explicit doubles in each type, not array based. https://github.com/AusencoSimulation/JaamSim package: com.jaamsim.math Harvey |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Thanks everyone for all the tips, I missed the jogl FloatUtil, I even looked in the right package but the class name fooled me into thinking it wasn't matrix math :-)
JaamSim looks really good too although I tend to avoid GPL mostly because it is inconvenient. I only do hobby projects and maybe give object code to friends or enter into programming contests, I don't mind giving credit in a notice file or "About"-dialog but providing source or even having to GPL my own work is more trouble than benefit to me. |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Yeah, if you really want to use the jaamsim stuff, we can selectively relicense the math package as apache2 or even 2-clause BSD...it's mostly a matter of someone actually asking ;-)
Harvey |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Administrator
|
On 05/05/2014 08:30 PM, hharrison [via jogamp] wrote:
> Yeah, if you really want to use the jaamsim stuff, we can selectively > relicense the math package as apache2 or even 2-clause BSD...it's mostly a > matter of someone actually asking ;-) > I did a while ago - I guess :) Looking fwd to your BSD/APL licensed code, I am sure we can utilize part of the [missing] math. Thank you! ~Sven > Harvey |
Free forum by Nabble | Edit this page |