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.

DarkBASIC Professional Discussion / .obj to .x texture issues

Author
Message
Paronamixxe
AGK Bronze Backer
14
Years of Service
User Offline
Joined: 10th Feb 2012
Location: Sweden
Posted: 15th Jun 2013 13:11 Edited at: 15th Jun 2013 16:08
----------------------------SOLVED----------------------------
Hello again! So, I've downloaded a few really awesome models which I want to use in my game, the only problem is that they only come in .3ds and .obj format. The .obj format does not want to load at all, and the .3ds just crashes the game instantly. So, I converted the .obj into a .x file and it loads fine and the model looks like it should... however, the models I have use multiple textures, and when I convert the .obj to a .x, it loses its default draw commands. Which means I have to set the texture manually, which does not work if I need to set several!

I have attached one of the models with all necessary files. If someone could help me, either to get DBP to load .obj files or to sort out the multiple textures, I would be extremely grateful!

Here is a screenshot of the .x being loaded:


And here is a screenshot of how the model should look:


Thanks in advance!
Pincho Paxton
23
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 15th Jun 2013 14:01 Edited at: 15th Jun 2013 14:03
DB Pro can't load Obj. So you have to convert them. But X shouldn't lose the textures, so something is wrong with the conversion. There are lots of converters, and some are free, so try converting it again.

Or it might just be that DB Pro can't find the textures in the right place. The textures have to be in the same directory as the x model.

Paronamixxe
AGK Bronze Backer
14
Years of Service
User Offline
Joined: 10th Feb 2012
Location: Sweden
Posted: 15th Jun 2013 14:06
Do you have one that you can suggest? At the moment, I am using C4D (cinema 4D) to convert my models.
chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 15th Jun 2013 14:27
Hi there.
I have converted your 3ds to .x, and it works ok, but all textures and object must be in the same folder. Some exporter keep the whole path but not all of them. There are a piece of code in the forum that can load Obj and then we could save it as Dbo.

Test the rar file with your model to .x

Cheers.

I'm not a grumpy grandpa
Paronamixxe
AGK Bronze Backer
14
Years of Service
User Offline
Joined: 10th Feb 2012
Location: Sweden
Posted: 15th Jun 2013 14:51 Edited at: 15th Jun 2013 14:52
It works! Thank you sooooo much!! ... now i just need to convert all the other files aswell... Which software did you use? So I can convert the others
chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 15th Jun 2013 15:07
I have used 3D exploration 2, but you could use the free one that comes with darkbasic "Dbconv" ...if I'm not wrong, it came in old DBC (Darkbasic clasic).


Cheers.

I'm not a grumpy grandpa
Paronamixxe
AGK Bronze Backer
14
Years of Service
User Offline
Joined: 10th Feb 2012
Location: Sweden
Posted: 15th Jun 2013 15:23
I cannot seem to find Dbconv anywhere? And I also tried to find 3D exploration 2... however, to no avail?
Paronamixxe
AGK Bronze Backer
14
Years of Service
User Offline
Joined: 10th Feb 2012
Location: Sweden
Posted: 15th Jun 2013 15:35
Ok, I found DBconv, although the converted .x files were texture less. So I'm still in need of a good converter... Can you link me to the website for 3D exploration 2? I have yet to find it.
Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 15th Jun 2013 16:02
Quote: "the converted .x files were texture less. "

Are the textures in the same location as the .x file?

This is my current project, check it out! [href]forum.thegamecreators.com/?m=forum_view&t=204576&b=8[/href]
This is my website, check it out! [href]http:\\www.TeamDefiant.co.uk[/href]
Paronamixxe
AGK Bronze Backer
14
Years of Service
User Offline
Joined: 10th Feb 2012
Location: Sweden
Posted: 15th Jun 2013 16:07
Dont worry, got a trial version of 3D exploration 2... and converted all the models. It worked great! thanks //anton
Chris Tate
DBPro Master
17
Years of Service
User Offline
Joined: 29th Aug 2008
Location: London, England
Posted: 15th Jun 2013 16:10
Side note; if you happen to own Dark Dynamix; it ships with a tool called ObbJob which converts Obj to DBo and can also apply basic texture settings.

Login to post a reply

Server time is: 2026-07-07 15:11:31
Your offset time is: 2026-07-07 15:11:31