pinobatch / 240p-test-mini

Size-optimized ports of Artemio's 240p Test Suite to 8-bit consoles
GNU General Public License v2.0
232 stars 22 forks source link

Add Diagonal test to GBA siute #60

Open pinobatch opened 2 months ago

pinobatch commented 2 months ago

Upstream 240p Test Suite for Nintendo 64 has a new test called "Diagonal Test". At 3:48 in the video, see four 5-pixel-wide bars with 5-pixel spaces between them. This amounts to 35 by 200 pixels on N64 (or probably 35 by 140 on GBA).

Per the Diagonal Test source code, a plausible set of controls for the GBA is roughly as follows:

Because 1/(360*19) and 1/(360*20) are so close, the rotation angle will need all the precision it can get. Consider a 32-bit fraction of a turn, and consider evaluating the sine and cosine using CORDIC.

ArtemioUrbina commented 2 months ago

It will be awesome to see it on GBA! I have only added this test to 3d capable consoles so far, like Dreamcast, GC and Wii.