Restored from previous forum. Originally posted by cfriedel.
Hi all. My wish would be to have good math and matrix libraries. This could help making vector games and 3D engine creation possible. The functions I can think of now would be sin, cos, tan, matrixmultiply, identitymatrix, vector, power, sqrt, modulus, etc. Basically linear algebra stuff and some standard trig and geometry stuff. Saw that somebody had a math library already so if this is already done I apologize for putting it up again.
Would be glad to help if needed. Not much of an x86 assembler programmer (would have to teach myself to think in a twisted manner again ), but with a little time I am sure I could do my part.
With my wish said, I want to thank all the people who have written this software. This is great stuff and definitely worth the money I spent on purchasing a license! Keep up the great work.
Cliff
Math Libraries
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by wavemaker.
Hi cfriedel,
That's a good idea, and I'd like to contribute with those libraries. I would have something to start if you explained what some of the functions you ask for are supposed to do. The functions which I don't understand are: matrixmultiply, identitymatrix and vector.
The other three are already available in PureBasic:
Undocumented but working: sin(), cos(), sqr() and power (use ^ to power).
Tan() doesn't work yet but, as you know, it equals to Sin()/Cos(), so...
You have a modulus function in the MathExtras library at Paul's site.
Please, precise your needings for 3D programming as much as possible so people is able to code for them.
And thanks for your game!
Bye,
PS: I've seen that power is not implemented as I thought -was confusing it with my good old MSX-. It has been added to the MathExtras library, which can also return floats now:
result.l/f = IPow(base,exponent)
I guess Paul will post it tomorrow.
Juan Calderón Alonso
Registered user
Edited by - wavemaker on 13 November 2001 00:32:34
Hi cfriedel,
That's a good idea, and I'd like to contribute with those libraries. I would have something to start if you explained what some of the functions you ask for are supposed to do. The functions which I don't understand are: matrixmultiply, identitymatrix and vector.
The other three are already available in PureBasic:
Undocumented but working: sin(), cos(), sqr() and power (use ^ to power).
Tan() doesn't work yet but, as you know, it equals to Sin()/Cos(), so...
You have a modulus function in the MathExtras library at Paul's site.
Please, precise your needings for 3D programming as much as possible so people is able to code for them.
And thanks for your game!
Bye,
PS: I've seen that power is not implemented as I thought -was confusing it with my good old MSX-. It has been added to the MathExtras library, which can also return floats now:
result.l/f = IPow(base,exponent)
I guess Paul will post it tomorrow.
Juan Calderón Alonso
Registered user
Edited by - wavemaker on 13 November 2001 00:32:34
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by wavemaker.
Hi again,
Cfriedel, I´ve seen some OpenGL related stuff intended precisely for what you asked for (multiplying matrix functions, etc.). If you tell me the basic functions you would need to code a 3D game in PB, I could try to code them.
Regards,
Juan Calderón Alonso
Registered user
Hi again,
Cfriedel, I´ve seen some OpenGL related stuff intended precisely for what you asked for (multiplying matrix functions, etc.). If you tell me the basic functions you would need to code a 3D game in PB, I could try to code them.
Regards,
Juan Calderón Alonso
Registered user