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 / 3d Objects tutorial help!

Author
Message
Jinx
15
Years of Service
User Offline
Joined: 22nd Mar 2009
Location:
Posted: 23rd Mar 2009 05:46
Can anyone explain why debugging after loading the 3d Objects solution included with the darkGDK tutorials only displays a plain black screen?
After moving the Colonel-X.X file into the debug folder, and running the .exe I can view, but I only ever get a black screen when running the debug.
Can anyone tell me where I'm going wrong?


silenus
15
Years of Service
User Offline
Joined: 4th Mar 2009
Location:
Posted: 23rd Mar 2009 13:03
Do you got the colonel-X.X file in the same folder as your main.cpp?
But if not it should end with the message"6"
Jinx
15
Years of Service
User Offline
Joined: 22nd Mar 2009
Location:
Posted: 24th Mar 2009 11:01
Yes, its in the same directory... theres just nothing happening!
CheatCat
17
Years of Service
User Offline
Joined: 7th Mar 2007
Location: Sweden
Posted: 2nd Apr 2009 11:03
Use the CCSetGetDirTrick: dbSetDir(dbGetDir());
G0DL355
15
Years of Service
User Offline
Joined: 12th Dec 2008
Location: Between Realities...
Posted: 2nd Apr 2009 17:33
If the Colonel's in the directory folder, you cant go far wrong... but some of your code seems a little non-directed.

Turn the default/autocam off, or set up some kind of mouse-look code so you can look around the space to see the object.
Also, you may need to reposition the Colonel Xfile, as well as the camera.

Here's what I'd do:



Hope this helps

G0DL355

--------------
So Endeth What Was Begotten From That Moste Darkest and Forgotten Of Times...
DarthVader 335
17
Years of Service
User Offline
Joined: 18th May 2007
Location: Cyberspace
Posted: 5th Apr 2009 01:10
I have this problem in VC++ with some of the projects if your getting a error saying can't find the .exe file what you do is go into your debug folder and run it after you've built it and it should run. What it does (if i understand it correctly) instead of running from the folder where all your media is its running it from a temp directory so your technically trying to open files that aren't there. You can prolly change the paths in the Project options but it's easier just to go into the debug folder and run it.

Oh and when you load 3D objects usually if they load successfully you won't have a black screen, it'll be blue.

Hope this helps! happy coding!

The only limit to creating video games is your imagination

Login to post a reply

Server time is: 2024-09-30 23:25:46
Your offset time is: 2024-09-30 23:25:46