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 / Object loading black in main project yet in a test loading fine.

Author
Message
Chris Franklin_
17
Years of Service
User Offline
Joined: 21st Dec 2006
Location: Home
Posted: 14th Mar 2010 18:05 Edited at: 14th Mar 2010 18:31
Not sure what's caused this, been following the simple dodging tutorial to get back into dbp after ages of not touching it. Can't remeber any of it.

Got the model from turbosqid and it loads fine in a simple:




However in:



It just loads as a black model, I've tried the texture object command e.t.c and got nothing so far. I've attahced the model + texture.

Edit: Fixed now, loaded in as a DBO and it worked instantly, but if anyone knows what was causing it that'd be appreciated.

Coding.....again, back to the basics xD

Attachments

Login to view attachments
LBFN
17
Years of Service
User Offline
Joined: 7th Apr 2007
Location: USA
Posted: 14th Mar 2010 21:06
From what I can tell, the path to the lamborghini is:
Media\Models

whereas the texture for it resides in:
Media\Models\Textures

You need the texture for an .x model in the same folder as the model.

I dl'ed the media and put it in the same folder and it worked fine for me.

LB

Chris Franklin_
17
Years of Service
User Offline
Joined: 21st Dec 2006
Location: Home
Posted: 16th Mar 2010 23:50 Edited at: 17th Mar 2010 03:50
Not sure, I'd tried that before and it worked fine in a diff app, converting to dbo worked though, thanks.

Coding.....again, back to the basics xD
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 17th Mar 2010 15:29
LBFN is correct.

Open up your .x file with a text editor and look for the line containing 'TextureFilename' - the filename there is just a filename and has no directory name as a part of it. If you relocated the texture to the Textures directory then you needed to change the file to include that.

Before:


After:


TDK
Retired Moderator
21
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 18th Mar 2010 20:34 Edited at: 18th Mar 2010 20:34
Ian:

Would that also work with non-ASCII .X files?

I know you can still load non-ASCII files into Notepad, but wasn't sure if it would let you add more characters or it was like using a hex editor where you can only change what is already there, but not alter the length of the file.

TDK

Login to post a reply

Server time is: 2024-09-28 16:37:20
Your offset time is: 2024-09-28 16:37:20