gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > libnds cvs version trig.c TAN ?!

#151400 - a128 - Mon Feb 25, 2008 9:27 am

I noticed very often when I download the CVS version of libnds that I always get some compile errors.

Code:

extern const char SIN_bin[];

is missing in arm9/source/trig.c

BTW is the new tan() function correct? I guess sin/cos is ok but
I noticed a different perspective using gluPersp...()

#151466 - eKid - Wed Feb 27, 2008 10:14 am

I believe theres going to be some new trig functions that only use a small half(or quarter?)-sine table. I don't know much about them though.

#151583 - dovoto - Fri Feb 29, 2008 10:20 pm

a128 wrote:
I noticed very often when I download the CVS version of libnds that I always get some compile errors.

Code:

extern const char SIN_bin[];

is missing in arm9/source/trig.c

BTW is the new tan() function correct? I guess sin/cos is ok but
I noticed a different perspective using gluPersp...()


There was a bit of an error with tan in the previous version that should have been corrected. The gluPersp never seemed quite right to me before so can you be a bit more specific about how it is different? I was sort of shooting for different but better ;)
_________________
www.drunkencoders.com

#151609 - wintermute - Sat Mar 01, 2008 9:35 am

a128 wrote:
I noticed very often when I download the CVS version of libnds that I always get some compile errors.


Hazards of the bleeding edge I'm afraid. It's not always possible to maintain CVS in a state where it will build with current stable release toolchains and libraries. This is usually especially apparent when a new toolchain is undergoing test prior to release.

Quote:

BTW is the new tan() function correct? I guess sin/cos is ok but
I noticed a different perspective using gluPersp...()


Would you mind doing a few screenshots if you could? The calculation is correct but there may be some difference in accuracy.

The next thing I want to do in there is figure out why libnds GL rotations are backwards compared to regular GL.
_________________
devkitPro - professional toolchains at amateur prices
devkitPro IRC support
Personal Blog

#151624 - a128 - Sat Mar 01, 2008 5:42 pm

I will do some screenshots.....will upload this in a few hours


Regarding the compile errors.....never mind .

offtopic:

I liked your idiom "hazards of the bleeding edge" :-)

what's the background of the funny sounding idiom?

#151625 - tepples - Sat Mar 01, 2008 5:50 pm

a128 wrote:
I liked your idiom "hazards of the bleeding edge" :-)

what's the background of the funny sounding idiom?

"Bleeding edge" on Wikipedia
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#151689 - a128 - Mon Mar 03, 2008 9:48 am

a128 wrote:

BTW is the new tan() function correct? I guess sin/cos is ok but
I noticed a different perspective using gluPersp...()


Just used the latest CVS version....and the perspective looks ok.