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 / where is my mistake..?

Author
Message
iammfa
15
Years of Service
User Offline
Joined: 14th Feb 2009
Location:
Posted: 15th Nov 2009 12:35 Edited at: 15th Nov 2009 12:37
Hi all,
I'm trying practice GDK and i started by loading small .x model with static camera, although the compiler didn't gave me any errors, but the model can't appear, i can't know where is my mistake, i think it may be in my headers, but i can't find it..!

i attached my source code may be someone help me

Attachments

Login to view attachments
Mireben
16
Years of Service
User Offline
Joined: 5th Aug 2008
Location:
Posted: 15th Nov 2009 14:59
The gameSetup function is never called. Call it somewhere before the main loop. (And there is not much point in deleting 50 objects when only one is loaded but I guess that's for further development?)
iammfa
15
Years of Service
User Offline
Joined: 14th Feb 2009
Location:
Posted: 15th Nov 2009 15:45
I called it before main loop but it didn't work also..
i created many headers and many source codes trying practice c++..
Mireben
16
Years of Service
User Offline
Joined: 5th Aug 2008
Location:
Posted: 15th Nov 2009 15:52
Well I ran the code, after adding the call to the setup function:



and your model object appears on the screen.
Mireben
16
Years of Service
User Offline
Joined: 5th Aug 2008
Location:
Posted: 15th Nov 2009 15:56
P.S. Do you run the code from the Visual Studio? Just to make sure, because the working directory is different when you run the code from VS or if you start the compiled EXE from the file manager.

You can use dbFileExist to verify that at least the program finds the file in the models directory.
iammfa
15
Years of Service
User Offline
Joined: 14th Feb 2009
Location:
Posted: 15th Nov 2009 16:28
Thanks Mireben, I put gameSetup(); and worked well..thanks

regards
iammfa

Login to post a reply

Server time is: 2024-10-01 18:23:06
Your offset time is: 2024-10-01 18:23:06