- Joined
- Apr 19, 2015
- Messages
- 1,023
- Trophies
- 1
- Location
- Stuck in the PowerPC
- Website
- heyquark.com
- XP
- 3,912
- Country
Hey all!
So I've been trying to get GX2 (the graphics engine, not loadiine!) running under 5.5 browserhax and, well, I've gotten stuck and need some help F:
I've been following Dimok's coloured cube example basically to a T. With the help of my funky memory library thing with a terrible name (shameless link) I've successfully allocated a command buffer (0x400000 big at 0x102CF780), ran GX2Init, gotten the current scanmode, calculated the size of the TV's buffer (0xFF0000 @ 1080p) and even allocated it from bucket memory (at 0xE0001000.) However, when I try to run GX2SetTvBuffer it crashes. Every time. I can't figure out why
It's ran like so:
Where tvScanBuffer is an unsigned char pointer (0xE0001000, allocated as 0xFF0000 big), scanBufferSize is an unsigned int set to 0xFF0000, and tvRenderMode is set to GX2_TV_RENDER_1080 (0x5). All the other constants are exactly the same as the coloured cube example. It's also worth noting that I have OSScreen up and running to help with logging (but removing it doesn't seem to affect anything).
I have an exception handler installed so I can tell you all the registers if required, but I'd rather not type them all out.
Anyway, I hope you guys have some ideas. As I said, I'm a bit stuck.
So I've been trying to get GX2 (the graphics engine, not loadiine!) running under 5.5 browserhax and, well, I've gotten stuck and need some help F:
I've been following Dimok's coloured cube example basically to a T. With the help of my funky memory library thing with a terrible name (shameless link) I've successfully allocated a command buffer (0x400000 big at 0x102CF780), ran GX2Init, gotten the current scanmode, calculated the size of the TV's buffer (0xFF0000 @ 1080p) and even allocated it from bucket memory (at 0xE0001000.) However, when I try to run GX2SetTvBuffer it crashes. Every time. I can't figure out why
It's ran like so:
Code:
GX2SetTvBuffer(tvScanBuffer, scanBufferSize, tvRenderMode, GX2_SURFACE_FORMAT_TCS_R8_G8_B8_A8_UNORM, GX2_BUFFERING_DOUBLE);
I have an exception handler installed so I can tell you all the registers if required, but I'd rather not type them all out.
Anyway, I hope you guys have some ideas. As I said, I'm a bit stuck.
Last edited by QuarkTheAwesome,