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 / Having trouble loading a simple 3d object.

Author
Message
midnitetoker0
14
Years of Service
User Offline
Joined: 4th Feb 2010
Location:
Posted: 4th Feb 2010 22:39
So, I am following the 3D Objects tutorial, and the 3D object won't load for me. Here is the code:


All this returns is a black window. In the 3D Objects folder, everything is where it should be, Colonel-X.X exists, as well as all of it';s direct-x counterparts. (Supplied by TCG, and untouched by me.)

Thanks.
Matty H
16
Years of Service
User Offline
Joined: 7th Oct 2008
Location: England
Posted: 6th Feb 2010 00:21
Is "Colonel-X.X" in the same directory as your main.cpp?

Freedom Fighters
15
Years of Service
User Offline
Joined: 2nd Nov 2009
Location:
Posted: 6th Feb 2010 01:04
what about positioning the object?
what about positioning the camera and pointing it at the object?

that might help.

Problem Solution That Never Fails: "Build A Bridge And Get Over It"
Matty H
16
Years of Service
User Offline
Joined: 7th Oct 2008
Location: England
Posted: 7th Feb 2010 12:05
A black window suggests that the model has not loaded.

Amnzero
15
Years of Service
User Offline
Joined: 1st Aug 2009
Location:
Posted: 9th Feb 2010 08:11
Unless there is no light...

if(enemy == Amnzero) runAway();
Amnzero->WebSite = L"http://neovance.com/";
Aldur
17
Years of Service
User Offline
Joined: 8th Oct 2007
Location: Melbourne, Australia
Posted: 9th Feb 2010 08:46 Edited at: 9th Feb 2010 08:47
I've had this problem before.
Try putting something, anything, into your game loop.

Like controls to move the camera.
May be a fix.

EDIT:

Also, a black window is not normal, because he hasn't specified a black backdrop, and the default backdrop color is blue.

Isocadia
15
Years of Service
User Offline
Joined: 24th Jul 2009
Location:
Posted: 9th Feb 2010 16:03
The backdrop only gets blue when you load a 3D object ( and it succedes ). Else it stays black unless you use dbBackdropOn ().

Isocadia

Freedom Fighters
15
Years of Service
User Offline
Joined: 2nd Nov 2009
Location:
Posted: 9th Feb 2010 21:14
check if it loads?
if so does it exist?
draw 2d screen coordinates.

try this


i came up with that just then. so i dont know if it would work. but i think it should.

Problem Solution That Never Fails: "Build A Bridge And Get Over It"

Login to post a reply

Server time is: 2024-11-20 05:40:46
Your offset time is: 2024-11-20 05:40:46