Recursive template math library

Discussion about everything. New games, 3d math, development tips...
Post Reply
REDDemon
Developer
Posts: 1044
Joined: Tue Aug 31, 2010 8:06 pm
Location: Genova (Italy)

Recursive template math library

Post by REDDemon »

Does anyone know a zlib licensed recursive template math library? Armadillo is good but is LGPL..
Junior Irrlicht Developer.
Real value in social networks is not about "increasing" number of followers, but about getting in touch with Amazing people.
- by Me
hendu
Posts: 2600
Joined: Sat Dec 18, 2010 12:53 pm

Re: Recursive template math library

Post by hendu »

Oh noes, you will have to supply source for Armadillo if you change it :roll:

(seriously, I don't get the LGPL hate)
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Recursive template math library

Post by CuteAlien »

@hendu: The problem with lgpl when working in the game-industry is that there are many platforms where you can't link dynamically (all consoles). So to use lpgl there you would also have to deliver your game-sources.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
REDDemon
Developer
Posts: 1044
Joined: Tue Aug 31, 2010 8:06 pm
Location: Genova (Italy)

Re: Recursive template math library

Post by REDDemon »

and you can't put templates in dlls since are only in headers. anyway I need zlib licensed code because I'm doing a project wich is licensed zlib and wanna use only zlib code. If I start putting different licenses than I must warn users, make a bigger license and definitively make users to go away from the project since they don't understand so many licenses etc.
Junior Irrlicht Developer.
Real value in social networks is not about "increasing" number of followers, but about getting in touch with Amazing people.
- by Me
hendu
Posts: 2600
Joined: Sat Dec 18, 2010 12:53 pm

Re: Recursive template math library

Post by hendu »

Indeed, now that I took a closer look LGPL c++ templates are effectively GPL.

@CuteAlien

Sure, but I was only aware of Irrlicht running on the old Xbox, and iProducts?
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Recursive template math library

Post by CuteAlien »

I think the the c++ standard libraries delivered on Linux have made some license exceptions to ensure you can still use those. Maybe Armadillo has the same.

And yeah - I don't know on how many platforms Irrlicht runs where lgpl is a problem for closed-source games (I don't develop for mobile phones so far - so no idea how the situation is there).
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
REDDemon
Developer
Posts: 1044
Joined: Tue Aug 31, 2010 8:06 pm
Location: Genova (Italy)

Re: Recursive template math library

Post by REDDemon »

I tried creating some simple function on my own. That's much much interesting. Actually only few vector and matrix functions. there is gain only for complex expressions like (vec1*vec2)+vec3. If you need to do just (vec1=vec3) is faster (not too much) a non-templated inlined library. Templates are really a hell anyway O_O. I don't know If I'll finish that library afterall. at least that was a good learning session, but finishing will require lot of time that I don't have. still looking for a zlib licensed alternative.
Junior Irrlicht Developer.
Real value in social networks is not about "increasing" number of followers, but about getting in touch with Amazing people.
- by Me
Post Reply