- edited description
Fix TGDSProject3D using OpenGL in real hardware
It’s been a year since I tried running several TGDSProject3D projects on real hardware (DS Lite), and as expected, they work properly on emulators, but on TWL Unit, they cause issues:
SnakeGL: Missing textures on TWL Unit
TGDSProject3D: Black screen, but still ARM7 core working
AquariumGL: Missing textures on TWL Unit
BatallionNDS: boots but locks up after a while (possible GX FIFO overflow error, due to either malformed or overflowed triangles/quads count.
Comments (20)
-
reporter -
reporter - edited description
-
reporter culprit is an untested ndsdisplaylistutils.
Todo:
roll back to ndsdisplaylistutils which used to work on real hardware (September-October 2022) which was SnakeGL on NDS Lite, then re-do all commits until it’s working in TWL unit.
Note:
TexturedBlenderModelNDSRender also shows blackscreens on real hardware whereas on emulators they work, this means the lighting code is broken on NDS hardware as of at least September-October 2022 ndsdisplaylistutils):
-
reporter - edited description
-
reporter - edited description
-
reporter tests so far: Codebase pertaining to TGDS, newlib-nds and TexturedBlenderModelRender from this commit: 26 sept 2021:
- ARM9: restore adpcm decoder to armv5te
is broken on real hardware, so it’s 2 years of commits I have to re-do. I tried building against newer newlib-nds, TGDS but lighting code is broken.
-
reporter - edited description
-
reporter OK. Got a base stable codebase, working on TWL hardware as of today: December 5th of 2023 (Coto88 / twl_ntr_environment2 / Commit d2f67ea582e6 — Bitbucket), and will be merged into the following TGDSProject3D repos: https://bitbucket.org/Coto88/toolchaingenericds/commits/branch/TGDS-1.65-HardwareOpenGLFix / https://bitbucket.org/Coto88/cgmodels/commits/branch/TGDS-1.65-HardwareOpenGLFix
-
reporter after done, recompile TGDS3DProject and it should render properly on NTR/TWL hardware.
-
reporter merge VideoGL 0.2 from 2021 into TGDS1.65, thus, very old but stable code base to begin integrating OpenGL + DisplayList + Lighting fixes into GX 3D hardware across TGDS Projects.
Both Env_Mapping & TexturedBlenderModelNDSRender working properly in NTR/TWL mode along TWL hardware, including GX DisplayLists + Normals + Vertices + Light sources + Texture Coordinates: Coto88 / toolchaingenericds / Commit c5aabeaee4d5 — Bitbucket / Coto88 / cgmodels / Commit 8114ae3e5f47 — Bitbucket -
reporter merge VideoGL 0.4's videoGL.h from latest TGDS1.65 into VideoGL 0.2 codebase : Coto88 / toolchaingenericds / Commit 117c7dd486a5 — Bitbucket / Coto88 / cgmodels / Commit 745442700173 — Bitbucket
-
reporter fix TGDS Project + OpenGL on NTR/TWL hardware.
Note: Textures still missing on TGDSProject3D, it's got to do with another issue: Coto88 / toolchaingenericds / Commit 65e655754216 — Bitbucket / Coto88 / cgmodels / Commit d6ca4c158bb5 — Bitbucket / Coto88 / tgdsproject3d / Commit 761da9a51024 — Bitbucket
-
reporter fix TGDS Project on TWL hardware, at least boots. But GX 3D hardware lockups due to polygon overflow, not much I can do about it.
Still working nicely on emulatorsCoto88 / batallionnds / Commit b4d052443e3d — Bitbucket -
reporter Batallion NDS (NTR/TWL) port fixed in real hardware (TWL):
Coto88 / batallionnds / issues / #3 - fix segfaults in real hardware (TWL unit) — Bitbucket
-
reporter NDSDisplayListUtils (TGDS OpenGL driver) has been fixed on real hardware! (again). Working stable on TWL unit.
-Fixed OpenGL (1.0) Display Lists on GX 3D hardware.
-Fixed texture detection, any OpenGL call will correctly map 1:1 Texture offsets according to spec.
-Remove legacy VideoGL code (non standard OpenGL spec)https://bitbucket.org/Coto88/toolchaingenericds/commits/a01c67ccb2427f0b03638fcb04f627276eb46ab3
https://bitbucket.org/Coto88/cgmodels/commits/8fee6e40ae048f50c39956edcb3ea39bae52f297
todo:Port the fixes across TGDSProject3Ds.TGDS-unittest no longer has the OpenGL Display List utils code, it's in cgmodels/targetClientRenderers/NintendoDS/TexturedBlenderModelNDSRender now.
-
reporter Fixed AquariumGL on TWL hardware, rendering textures as well.
Coto88 / toolchaingenericds / Commit b24bcb15859b — Bitbucket
-
reporter Fixed TGDSProject3D on TWL hardware, rendering textures as well.
-
reporter Fixed SnakeGL on TWL hardware, rendering textures as well.
Coto88 / tgdsproject3d / Commit 909c2f929a23 — Bitbucket
Todo:
https://bitbucket.org/Coto88/snakegl/issues/4/backport-to-c
-
reporter -fixed SnakeGL in TWL hardware, textures rendering properly, light, normals, vertices etc. Key input fixed as well.
-update TGDS-multiboot to commit: https://bitbucket.org/Coto88/toolchaingenericds-multiboot/commits/71a6fbb4bb0c1ad0d25e030d73fcf1b40b633b58
Coto88 / toolchaingenericds / Commit 6c9d902c2a83 — Bitbucket
-
reporter - changed status to resolved
remove OpenGL DL code, moved to https://bitbucket.org/Coto88/cgmodels/src
- Log in to comment