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 > 3d broken with updated devkitARM / libnds?

#116870 - melw - Tue Jan 30, 2007 4:04 pm

I can't get any 3d visible on the screen anymore after updating to latest devkitARM and libnds. Same goes with included NeHe examples (tried lesson05 and lesson06) - just blank screen everywhere. Checked the update list of what has been changed but can't see how the gabebear updates could have anything to do with this...

#116956 - jackman - Wed Jan 31, 2007 9:13 am

there are currently more problems with the new libnds, better we wait for the updated examples

my problem: when i recompile the watch example, it doesn't work correct, it seems to be that the ipc data is not queried correct in the current build, so the clock is set to 0:0:0 am
_________________
Equipment:
Nintendo DS, GBAMP v2, SuperCard SD, SuperKey, Acekard 2i


Last edited by jackman on Wed Jan 31, 2007 7:01 pm; edited 1 time in total

#116959 - Vich - Wed Jan 31, 2007 10:30 am

Same here, I have LOTS of strange 3D-related bugs (no matter what I try/set). glPerspective and glOrtho are very f'ed up and perhaps even other things.
Also, I get different visual output in no$gba versus the DS itself.
_________________
[project website] [personal website]

#116960 - jackman - Wed Jan 31, 2007 10:34 am

also when using the "old" examples, especially demos with graphical output using the gl*-functions, the ds screen flashes
_________________
Equipment:
Nintendo DS, GBAMP v2, SuperCard SD, SuperKey, Acekard 2i


Last edited by jackman on Wed Jan 31, 2007 7:02 pm; edited 1 time in total

#116962 - melw - Wed Jan 31, 2007 11:57 am

Reverting back to libnds-20060719 did the trick for now. It seems to work also together with devkit ARM r20, guess I'll go for that kind of mixed setup until the libnds and/or the examples get updated.

#116969 - jackman - Wed Jan 31, 2007 1:11 pm

is libfat-20070127-nds compatible with this release?
_________________
Equipment:
Nintendo DS, GBAMP v2, SuperCard SD, SuperKey, Acekard 2i


Last edited by jackman on Wed Jan 31, 2007 7:02 pm; edited 1 time in total

#116974 - wintermute - Wed Jan 31, 2007 1:38 pm

jackman wrote:
is libfat-20070127-nds compatible with this release?


devkitARM r20 is a prerequisite of libfat-20070127

Quote:

my problem: when i recompile the watch example, it doesn't work correct, it seems to be that the ipc data is not queried correct in the current build, so the clock is set to 0:0:0 am


Actually the clock is always set to 0:0:0 and has been for a while. The way the RTC was handled originally was quite wrong and was removed but hasn't yet been replaced with something sensible. This is related to the default ARM7 core not libnds.
_________________
devkitPro - professional toolchains at amateur prices
devkitPro IRC support
Personal Blog

#116978 - wintermute - Wed Jan 31, 2007 2:28 pm

melw wrote:
Reverting back to libnds-20060719 did the trick for now. It seems to work also together with devkit ARM r20, guess I'll go for that kind of mixed setup until the libnds and/or the examples get updated.


You'll probably have some problems using the default arm7 core doing that. It might be worth giving CVS libnds & examples a shot, we currently have a new slave^D^D^D^D^Ddeveloper sorting out some problems with the gl code.

I'll be rolling a new release shortly when that stabilises.
_________________
devkitPro - professional toolchains at amateur prices
devkitPro IRC support
Personal Blog

#116985 - melw - Wed Jan 31, 2007 3:29 pm

wintermute wrote:
It might be worth giving CVS libnds & examples a shot

Thanks! Updated & compiled the CVS libnds, and now I got 3d back on the screen again. There's still some small graphical glitches - for example textured cube at nehe/lesson06 has visible texture borders, whereas earlier there was no borders at all. Well, Gabebear said another patch is on the way to fix the examples.

#119518 - Nelzon - Fri Feb 23, 2007 11:08 pm

Lucky you.. I've also updated everything from CVS and the examples are compilable again. Unfortunately there is still no 3D output on any screen.. Anything else I need to change?

#119524 - simonjhall - Sat Feb 24, 2007 12:28 am

My 3D was invisible on both my programs until I read the release notes - gluPerspective and glOrtho no longer set the current matrix to the projection matrix (as they're not necessarily viewport-fiddling functions).
A few quick calls to glMatrixMode fixed all my 3D problems.
_________________
Big thanks to everyone who donated for Quake2

#120024 - Nelzon - Wed Feb 28, 2007 12:45 pm

Is this now working for everybody? I still can't get anything on the screen with both examples and libnds in the newest version from CVS. Everything compiles fine, though, but nothing's visible.. Are there additional fixes necessary in the examples code?
_________________
The mind creates reality.

#120035 - melw - Wed Feb 28, 2007 2:12 pm

Nelzon wrote:
Is this now working for everybody? I still can't get anything on the screen with both examples and libnds in the newest version from CVS. Everything compiles fine, though, but nothing's visible.. Are there additional fixes necessary in the examples code?


Yes, everything is working fine since one month ago. Make sure you're having the latest examples also, not just updated libnds. Also, 3d apps don't work generally too well (if at all) on emulators, test if it works on the hardware.

#122675 - ikaris - Wed Mar 21, 2007 5:02 am

Compared to r19, it just needs an extra

Code:
glMatrixMode(GL_PROJECTION);


right after
Code:
glReset();


that fixed it for me.[/code]

#123354 - Marcel24 - Tue Mar 27, 2007 5:04 pm

Tnx ikaris.

i just lost 2 day of searching a strange bug :)

tnx tnx

#123360 - ikaris - Tue Mar 27, 2007 5:39 pm

Marcel24 wrote:
Tnx ikaris.

i just lost 2 day of searching a strange bug :)

tnx tnx


No problem, I'm happy to help !