You are not logged in.

#1 2008-07-27 03:48:10

Jroque
Member

Black Screen Issue

Well first of all let me introduce myself.. smile
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

 

#2 2008-07-27 04:56:20

Wil
Member

Re: Black Screen Issue

If you compile the tutorials without modification do they display correctly?

Offline

 

#3 2008-07-27 06:10:08

Jroque
Member

Re: Black Screen Issue

nope.... i'e already tried that....

smile

Offline

 

#4 2008-07-27 11:02:44

Wil
Member

Re: Black Screen Issue

Do any homebrew applications work for you at all, or is it just applications compiled by you?

Offline

 

#5 2008-07-27 18:19:56

Jroque
Member

Re: Black Screen Issue

only the ones that i've compiled BUT the older verisons of grrlib dont seem (1st version) it compiled correctly and runned correctly..... sad

Offline

 

#6 2008-07-27 21:34:52

Wil
Member

Re: Black Screen Issue

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

 

#7 2008-07-28 04:41:21

Jroque
Member

Re: Black Screen Issue

good idea i think i will.... thnx for your help smile
i'll post the results when i've done it smile

Offline

 

#8 2008-07-29 18:50:53

_CONEJO
Member

Re: Black Screen Issue

same here. And i dont know what i'm doing wrong U_U

Offline

 

#9 2008-07-29 19:53:45

RedShade
Member

Re: Black Screen Issue

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

 

#10 2008-07-29 20:05:41

_CONEJO
Member

Re: Black Screen Issue

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

 

#11 2008-07-29 21:11:09

RedShade
Member

Re: Black Screen Issue

Anything related to image height/widths, or vertex counts, or formats of vertexes provided are all easy ways to crash

Offline

 

#12 2010-07-22 21:07:49

mrthekod
Member

Re: Black Screen Issue

I'm having the same issues.

Code:

//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

 

#13 2010-07-22 23:22:20

Crayon
Bad Mother Fucker

Re: Black Screen Issue

mrthekod what version of GRRLIB are you using?
What king of image are you using (PNG, JPEG, BMP)?
What size, width and height?

Offline

 

#14 2010-07-23 01:55:47

mrthekod
Member

Re: Black Screen Issue

- 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

 

#15 2010-07-23 01:59:25

Crayon
Bad Mother Fucker

Re: Black Screen Issue

Instead of GRRLIB_LoadTexture, try using GRRLIB_LoadTextureJPGEx : http://grrlib.santo.fr/doc/group___all_ … 6dea920630

Offline

 

#16 2010-07-23 10:17:05

mrthekod
Member

Re: Black Screen Issue

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

 

Board footer

Powered by FluxBB