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 / Cant see anything when i build solutions

Author
Message
apollo1
16
Years of Service
User Offline
Joined: 17th May 2008
Location:
Posted: 17th May 2008 15:29
Im a beginner in this and ive been teaching myself for about a week now and i recently installed microsoft C++ 2008 express edition, the Dark GDK SDK and the direct x augst 2007 SDK needed and when i debug or build any solutions the screen just comes up blank and i dont know why. Any ideas?

Here is an example of what im talking about (I also attached the Build Log):

Attachments

Login to view attachments
jezza
16
Years of Service
User Offline
Joined: 8th Mar 2008
Location: Bham, UK
Posted: 17th May 2008 15:59
Try
File>New>project then
Wizards>Dark GDK - 3D Game
this will; create a new project. Run this and see if it still gives you blank.
apollo1
16
Years of Service
User Offline
Joined: 17th May 2008
Location:
Posted: 17th May 2008 16:26
no this doesnt give me a blank screen. When i try any other example it does.
apollo1
16
Years of Service
User Offline
Joined: 17th May 2008
Location:
Posted: 17th May 2008 17:27
It shows for that but for any other it just gives me a blank screen liek what you see above.
Lilith
16
Years of Service
User Offline
Joined: 12th Feb 2008
Location: Dallas, TX
Posted: 17th May 2008 17:39
Most likely the program isn't finding your .png file. Make sure it's in the right place. When dealing with the compiler it's a bit vague whether it considers the current directory to be the one the executable is in or the one where the source code resides.

Try using dbFileExist(char *filename) to make sure the file exists before initiating your image.

Lilith, Night Butterfly
I'm not a programmer but I play one in the office
apollo1
16
Years of Service
User Offline
Joined: 17th May 2008
Location:
Posted: 17th May 2008 17:59 Edited at: 17th May 2008 20:38
What does "error C2065: 'Media' : undeclared identifier" mean i keep on getting it. And im still getting a blank screen sadly, can anyone give me a template for a game please?
jinzai
18
Years of Service
User Offline
Joined: 19th Aug 2006
Location: USA
Posted: 18th May 2008 04:27
You have not put quotes around the string...it should be "media". When you type media, the compiler thinks it is a variable, and it cannot know the type.

Post the offending code.
apollo1
16
Years of Service
User Offline
Joined: 17th May 2008
Location:
Posted: 18th May 2008 16:22
Ive attached the sample file that im testing thats giving me the black screen.

Attachments

Login to view attachments
jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 19th May 2008 19:14 Edited at: 19th May 2008 19:16


Is the wrong syntax for DarkGDK. Try dbSetDir("media");

this would try to go: yourprojectdir/media

where yourprojectdir is where your main.cpp usually is.

I personally found it better to put the media in the directory above - the one inside the solution normally:

SolutionDir
--MediaDir
--MyProjectdir

then I don't even change directories.... I just do:
dbLoadObject("../media/filename.x");

but - I'm weird - though my files load

[edit] eidt, if you have trouble becuase the textures aren't found or something... do what you were.... but I recommend:


Login to post a reply

Server time is: 2024-11-20 11:23:24
Your offset time is: 2024-11-20 11:23:24