Search found 358 matches

by elhobbs
Thu Mar 26, 2015 12:18 am
Forum: 3DS Development
Topic: Does the Geometry Shader not accept definable uniforms?
Replies: 2
Views: 9777

Re: Does the Geometry Shader not accept definable uniforms?

I've been attempting to reduce the amount of input that gets sent to the vertex shader by having the geometry shader handle generating vertices that are a set distance from the single vertex input through the use of uniforms. When using a uniform constant set from within the shader, it works fine, ...
by elhobbs
Sat Mar 07, 2015 4:32 am
Forum: Announcements
Topic: devkitARM release 44 and libraries
Replies: 12
Views: 63292

Re: devkitARM release 44 and libraries

Is the libctru section of the forum supposed to be accessible?
by elhobbs
Sat Jan 17, 2015 6:50 pm
Forum: DS/DSi Development
Topic: Enabling VBlank counter
Replies: 1
Views: 7923

Re: Enabling VBlank counter

The VBlank counter is constantly stuck at 160, causing the DS to freeze if a swiWaitForVBlank is executed. I couldn't work out which registers to set in order to re-enable it, BIT(2) of DISPSTAT is a read only value for whether the VBlank counter is enabled or not, but I don't know what I have to d...
by elhobbs
Sun Jan 11, 2015 4:39 pm
Forum: devkitARM
Topic: Can't write file to nitrofs
Replies: 7
Views: 15665

Re: Can't write file to nitrofs

Libfat requires that the nds file be patched for your specific loader card. for first gen cards this was a manual process. Newer cards auto patch. the libfat examples do work. i do not think libfat works on no$gba and desmume requires configuration and both are version dependant. Which loader card a...
by elhobbs
Sat Jan 10, 2015 7:52 pm
Forum: devkitARM
Topic: Can't write file to nitrofs
Replies: 7
Views: 15665

Re: Can't write file to nitrofs

Nitrofs is read only. Also keep in mind that desmume is not perfect. Generally you should test on hardware too. The issue could be desmume.
by elhobbs
Wed Dec 10, 2014 5:29 pm
Forum: Off Topic
Topic: why C
Replies: 2
Views: 13564

Re: why C

for the 3ds I do not think that it really matters. I think the issue is primarily aimed at more resource constrained devices like the gba or even the ds - be that limited amounts of ram or memory access issues, like not having byte addressable memory for certain regions. I suspect the libraries are ...
by elhobbs
Fri Oct 31, 2014 7:18 pm
Forum: DS/DSi Development
Topic: What is going on on ARM7 CPU?
Replies: 3
Views: 11687

Re: What is going on on ARM7 CPU?

audio, wifi, touchscreen, and some of the buttons can only be accessed from the arm7. These features are made accessible to arm9 by the FIFO IPC communications that are built into libnds. so the arm9 and arm7 code need to be kept in sync. The danger with developing for the arm7 is that you might bre...
by elhobbs
Wed Oct 22, 2014 1:31 am
Forum: DS/DSi Development
Topic: Using quaternions
Replies: 15
Views: 20986

Re: Using quaternions

why do you have a mixture of atan2 (which is looking for doubles) and atan2Lerp(which is looking for fixed point)?
by elhobbs
Mon Oct 20, 2014 5:43 pm
Forum: DS/DSi Development
Topic: Using quaternions
Replies: 15
Views: 20986

Re: Using quaternions

you can use the version in <math.h> - you will need to add libm to your make file. add -lm to LIBS after -lnds9
you will need to do some conversion of input/outputs to/from fixed/float etc.
by elhobbs
Sat Oct 18, 2014 8:50 pm
Forum: DS/DSi Development
Topic: Using quaternions
Replies: 15
Views: 20986

Re: Using quaternions

I think your main issue is dealing with fixed point numbers. There is no automatic conversion to and from floats - and you have a lot of mixing of the two in your code. I have not fixed all of the code - just the bare minimum needed to get the teapot to spin around the y axis. you should be able to ...