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 / dbLoadObject not loading texture??

Author
Message
monotonic
18
Years of Service
User Offline
Joined: 24th Mar 2006
Location: Nottinghamshire, England
Posted: 16th May 2006 13:05
Has anyone had any problems with the dbLoadObject command not loading the assigned model texures? I have to load the image and texture the object myself. The model I'm using is straight out of my previous project in dbpro which loaded the texture fine, so its not a problem with the model (its in X format by the way).

My W.I.P project
Morcilla
21
Years of Service
User Offline
Joined: 1st Dec 2002
Location: Spain
Posted: 16th May 2006 15:01
Nope here, they load and texture... Make sure image and object are in the same folder
monotonic
18
Years of Service
User Offline
Joined: 24th Mar 2006
Location: Nottinghamshire, England
Posted: 16th May 2006 15:14
This is very stange indeed, I have just written a test project that just loaded the mesh and display it, and it was textured
here is my ocde for my project (that isn't loading the texture) both the model and image are in the same directory.



My W.I.P project
Miguel Melo
19
Years of Service
User Offline
Joined: 8th Aug 2005
Location:
Posted: 17th May 2006 01:13
Open your mesh.x object with a text editor and make sure that the reference to SWAT.bmp isn't something like some_dir\SWAT.bmp .

I have vague plans for World Domination
monotonic
18
Years of Service
User Offline
Joined: 24th Mar 2006
Location: Nottinghamshire, England
Posted: 17th May 2006 11:21
Yeah it points straight to the file, like I say I have viewed this model from another program and directx viewer, and it displays ok.

My W.I.P project

Login to post a reply

Server time is: 2024-11-19 06:47:13
Your offset time is: 2024-11-19 06:47:13