Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Another problem with Dark GDK... :(

Author
Message
Skolmen
15
Years of Service
User Offline
Joined: 28th Aug 2009
Location:
Posted: 29th Aug 2009 20:38
Hi again!

OK, so now I've got the Dark GDK wizards working, anyhow, a new problem came up. When I try to debug a C++ file that includes a 3d model, the "program-screen" (where you're supposed to see the program) goes all black. I've done everything exactly as they say in the tutorials, but the models won't show. Anyone know how to solve this? It wasn't like this before I installed Dark GDK (allthough, I couldn't play 3D models back then).

If anyone's familiar with this problem, please tell me how to solve it, because I really wan't to get my game programming skills going!

C++ newbie.
Lilith
16
Years of Service
User Offline
Joined: 12th Feb 2008
Location: Dallas, TX
Posted: 29th Aug 2009 21:00
Are you saying that you stop the program execution during a debug session and the display window goes black? Or that just running in debug mode presents nothing but a black screen?

Lilith, Night Butterfly
I'm not a programmer but I play one in the office
Skolmen
15
Years of Service
User Offline
Joined: 28th Aug 2009
Location:
Posted: 29th Aug 2009 22:06
Running in debug mode shows a black screen. I have no idea of how to solve the problem myself...

C++ newbie.
Mista Wilson
16
Years of Service
User Offline
Joined: 27th Aug 2008
Location: Brisbane, Australia
Posted: 29th Aug 2009 23:52
Can you post your code ?

It is most likely that you arent calling dbSync somewhere that you should, but I cant say without seeing how you are setting up your program.

If it ain't broke.... DONT FIX IT !!!
Skolmen
15
Years of Service
User Offline
Joined: 28th Aug 2009
Location:
Posted: 30th Aug 2009 00:30
#include "DarkGDK.h"

void DarkGDK ( void )
{

dbSyncOn ( );
dbSyncRate ( 60 );

dbLoadObject (" Colonel-X.x", 1);

dbPositionCamera (0, 50, -80);


while ( LoopGDK ( ) )
{

dbSync ( );
}


return;
}


____________________________
This is the small code I got from following the tutorial. The tutorial also said that I should be able to see the character...

I'm just a newb, but this seems more like it has to do with the options to me :S

C++ newbie.
Lilith
16
Years of Service
User Offline
Joined: 12th Feb 2008
Location: Dallas, TX
Posted: 30th Aug 2009 01:19
Quote: "dbLoadObject (" Colonel-X.x", 1);"


I doubt seriously that the name of the file actually starts with a blank space.

Lilith, Night Butterfly
I'm not a programmer but I play one in the office
puppyofkosh
17
Years of Service
User Offline
Joined: 9th Jan 2007
Location:
Posted: 30th Aug 2009 01:30
I always find using the command dbFileExist() useful for debugging problems like these.
AndrewT
17
Years of Service
User Offline
Joined: 11th Feb 2007
Location: MI, USA
Posted: 30th Aug 2009 05:19
The only real possibility is that the file isn't being loaded correctly, possibly due to the space Lility pointed out. Unfortunately, unlike DBP DGDK does not give you error messages when a file doesn't exist, an object doesn't exist, etc--it's up to you to figure these things out. Remove the space at the beginning of "Colonel-X.x" and make sure that the model file is placed in the same directory as your EXE.

i like orange
Skolmen
15
Years of Service
User Offline
Joined: 28th Aug 2009
Location:
Posted: 30th Aug 2009 15:20
Hmm... I might have solved it now! Seems like the loading time is kinda long for some reason... I accidentally forgot to close down the program earlier, and when I looked at it again, the animation was there... Silly!

C++ newbie.
Skolmen
15
Years of Service
User Offline
Joined: 28th Aug 2009
Location:
Posted: 1st Sep 2009 20:40
By the way, how long time is it supposed to take for a model to load? Because it feels like my loading time of 3 minutes is kinda long?

C++ newbie.
Potassium
15
Years of Service
User Offline
Joined: 12th Jul 2009
Location:
Posted: 2nd Sep 2009 21:58
System specs to determine speed?

Send us a C++ project and we'll se whats the problem here.

There are 2 ways to develop for the N64:
1. Develop C code with PsyQ SDK and illegal Nintendo libs
2. Develop C code with legal kits, such as the Ground Zero devkit (g0dev.zip)

Login to post a reply

Server time is: 2024-11-20 17:45:31
Your offset time is: 2024-11-20 17:45:31