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.

Newcomers DBPro Corner / i cant figure out what is wrong with this

Author
Message
viking
16
Years of Service
User Offline
Joined: 20th Jun 2008
Location:
Posted: 21st Jun 2008 06:58
every time i try to load this the debugger crashes. it happened when i tried to apply an obj model with a basic texture, what happened?

code:
boxobj = 2 : load object "media\models\box.obj", boxobj
castek
17
Years of Service
User Offline
Joined: 15th Aug 2007
Location: Right behind you!
Posted: 22nd Jun 2008 05:16 Edited at: 22nd Jun 2008 17:36
Edited

"The Beginning is the end."
Virtual Nomad
Moderator
18
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 22nd Jun 2008 08:15 Edited at: 22nd Jun 2008 08:19
@viking:
Quote: "

LOAD OBJECT
This command loads a model into the specified 3D object number. You must specify a model in the X, 3DS,
MDL, MD2 or MD3
format.
...

"


@castek:
one word...


Virtual Nomad
AMD XP 1800+ (~1.6 Ghz) / 1.5 GB RAM
ATI Radeon 8700LE 128 MB / Windows XP
Erios
18
Years of Service
User Offline
Joined: 17th Jun 2006
Location:
Posted: 22nd Jun 2008 09:03
I think what Castek means is that if that is the whole program, it will create the object, and then close before the human eye can see it. I am assuming that he thought this because the OP said the debugger was "crashing".

@Viking: What exactly do you mean by "crashing"? Does it give an error? Or does it just blink and then go back to the editor? If the latter is the case, then yes, you will need do something to make sure you can see the end result before your program terminates. Try adding a WAIT KEY command at the end of that code, and see if it creates anything. Is this all of your code?

Login to post a reply

Server time is: 2024-11-25 22:50:05
Your offset time is: 2024-11-25 22:50:05