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

Author
Message
Chosen One
14
Years of Service
User Offline
Joined: 27th Feb 2010
Location:
Posted: 27th Feb 2010 17:56
hi,

I'm just new to GDK and was folowing the tutorials. But I am getting stuck at the second one, about loading objects.

When I run de source code, the only thing it would do is giving a black screen and the program hangs.

The source is listed below.


The object file colonel.x is in the same dir as main.cpp. But I don't know why it won't work.

I am using windows 7 and Visual c++ 2008.

It would be great if sombody could help me. =)
kklouzal
15
Years of Service
User Offline
Joined: 15th May 2009
Location: Arizona
Posted: 27th Feb 2010 19:58
after you have loaded the object you must position it, also it wont be seen unless the camera is facing it.

Add me to your MSN!
GreenDixy
16
Years of Service
User Offline
Joined: 24th Jul 2008
Location: Toronto
Posted: 1st Mar 2010 03:42
Kinda been switching from dbpro and gdk lol here is what i use



===================
No life, Lots of love, 2 Kids, God save me LOL
Matty H
15
Years of Service
User Offline
Joined: 7th Oct 2008
Location: England
Posted: 1st Mar 2010 16:37
Quote: "the only thing it would do is giving a black screen "


This means your object has not loaded, you get a blue screen when it loads successfully.
Check you model is in the same folder as the main.cpp for that project.

If your computer is hanging I would suggest that you program has not entered the while loop, on my laptop that model takes a long time to load(about 1.5 minutes).

You could try this instead:

See if that works.

fire ball
14
Years of Service
User Offline
Joined: 15th Jan 2010
Location: indonesia
Posted: 25th Mar 2010 20:58
if your program can't be closed by escape key or close button, I think the program haven't finished load the object.. try with object which size<500KB.. it should work

Login to post a reply

Server time is: 2024-10-05 16:23:37
Your offset time is: 2024-10-05 16:23:37