You are not logged in.
Well first of all let me introduce myself..
i've been using grrlib to try porgramming some homebrew as i did with my nintendo ds...
n i've realized that its much more difficult on wii than on nds... xD
well getting to the topic i've started to program with grrlib (1st version) just displaying images and text) simple things like that..
BUT....
i downloaded the newest versions of grrlib and followed the tutorials (actually i just did copy paste and modified the text and images xD
and it obviously compiled hehe... but just when i use wiiload or any other method to run .dol n .elf files the application kinda freezes the screen of my tv stays black.. O.O COMPLETELY. It stays black with any kind of program (made by my self)
and im really frustrated ...... so i thought that maybe you could help me..... the really strange thing is that the code compiles perfectly..... =.=
Offline
If you compile the tutorials without modification do they display correctly?
Offline
Do any homebrew applications work for you at all, or is it just applications compiled by you?
Offline
only the ones that i've compiled BUT the older verisons of grrlib dont seem (1st version) it compiled correctly and runned correctly.....
Offline
I'd delete your entire devkitpro directory and download it again. If that doesn't fix it, I really don't know what to tell you.
Offline
good idea i think i will.... thnx for your help
i'll post the results when i've done it
Offline
If it is the latest GRRLIB, cvs of libogc, same source as the page, and the same text and images, I don't know why it wouldn't work.
I will note that it is very easy for GPU related programs to compile and be perfect in terms of C/C++ code, but freeze or crash the machine, since the graphics chip wants specific information, in a specific order, or it will crash. The compiler doesn't know those rules though.
Offline
for me examples works well, its my own code (porting from GRRLIB 1.6 to v3) which "crash" (it only output a black screen and the wiimote disconnect). So i supossed its my code (which works fine with prev. versions of GRRLIB) but dont know what part exactly (no code dump!)
Offline
Anything related to image height/widths, or vertex counts, or formats of vertexes provided are all easy ways to crash
Offline
I'm having the same issues.
//Includes #include <grrlib.h> #include <stdlib.h> #include <wiiuse/wpad.h> //GFX #include "gfx/bg.h" GRRLIB_texImg *IBG; int main(void) { //STD Setup GRRLIB_Init(); WPAD_Init(); // Setup Gfx IBG = GRRLIB_LoadTexture(bg); // Main loop while(1) { WPAD_ScanPads(); GRRLIB_FillScreen(0xFFFFFFFF); GRRLIB_DrawImg(0, 0, IBG, 0, 1, 1, 0xFFFFFFFF); if (WPAD_ButtonsDown(0) & WPAD_BUTTON_HOME) break; GRRLIB_Render(); } GRRLIB_Exit(); // Cleanup exit(0); // NightNight }
You can't get much simpler than that eh? I just get a black screen for meby 5 seconds then back to Homebrew Channel. I'm gonna try nuking and re-downloading, I'll post if it works.
Offline
mrthekod what version of GRRLIB are you using?
What king of image are you using (PNG, JPEG, BMP)?
What size, width and height?
Offline
- GRRLIB 4.3.0 Freshly installed.
- 400x400 Jpeg 8bit (I'm pretty sure that's divisible by 4)
There's nothing obviously wrong with the code surely. I'm hoping it's a niggly install problem I'v missed. The fact it compiles, leads me to believe I have GRRLIB in ok.
Offline
Instead of GRRLIB_LoadTexture, try using GRRLIB_LoadTextureJPGEx : http://grrlib.santo.fr/doc/group___all_ … 6dea920630
Offline
Yeh, still nothing. I'v gone down the only sensible route and converted to PNG. All is right with the world again.
Thanx for the help tho Crayon.
Offline