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 / Models Load in DBPro - but are black.

Author
Message
Panther1965
15
Years of Service
User Offline
Joined: 10th Nov 2009
Location:
Posted: 11th Nov 2009 00:45
Hi, I did a search and could find no entry concerning this problem.
I use the following code:

LOAD OBJECT "jeep.x", 1
DO
YROTATE OBJECT 1, OBJECT ANGLE Y(1) + 0.1
LOOP
END

The model loads and rotates as it should, but the whole model is just black.
I have tried other models with the same result.
Any ideas are greatly appreciated.

Regards

Panther1965
Kira Vakaan
15
Years of Service
User Offline
Joined: 1st Dec 2008
Location: MI, United States
Posted: 11th Nov 2009 01:57
Sounds like the models were separated from their textures. Are the texture files in the same folder as the models?
ShaunRW
DBPro Developer
16
Years of Service
User Offline
Joined: 7th Jan 2008
Location: Brisbane, Australia
Posted: 11th Nov 2009 02:56
But wont they just load as the default grey? thats what happens to me.


Panther1965
15
Years of Service
User Offline
Joined: 10th Nov 2009
Location:
Posted: 11th Nov 2009 03:21
The textures are in the same folder as the models and the source code.
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 11th Nov 2009 04:49
What format are the texture images? BMP and JPG are good - others may not be compatible with the .X format.

In DBC, you have problems if texture filenames are not DOS 8.3 format and if that's a DirectX restriction it might also be true with DBP too.

TDK

zeroSlave
15
Years of Service
User Offline
Joined: 13th Jun 2009
Location: Springfield
Posted: 11th Nov 2009 04:54


I always had black objects until I started texturing objects using the texture object command.

There's something in this room that makes you can't speak well.
Panther1965
15
Years of Service
User Offline
Joined: 10th Nov 2009
Location:
Posted: 11th Nov 2009 09:47
Must have had problems with the first couple of models.
Tried some others and they work fine.

Thank you everyone for your help.

Regards

Panther65
pcRaider
17
Years of Service
User Offline
Joined: 30th May 2007
Location:
Posted: 11th Nov 2009 12:19
DarkMATTER1 has the bug that cannot read texture.
Extension of texture name makes a mistake in it.

Login to post a reply

Server time is: 2024-11-24 23:31:09
Your offset time is: 2024-11-24 23:31:09