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 / help with .x models

Author
Message
younis12
16
Years of Service
User Offline
Joined: 23rd Feb 2010
Location:
Posted: 21st May 2010 08:33
hi guys

i have models (3ds)

how i can convert them to x (so ican use it in dbpro)?
Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 21st May 2010 15:08
There is a 3ds to x converter which comes with DBP. There are also a number of free apps online which can do it. I only know of Truespace and a think milkshape can do it also.

No doubt someone will reply with a whole bunch more of them.

My signature is NOT a moderator plaything! Stop changing it!
Dragon Knight
19
Years of Service
User Offline
Joined: 10th Jan 2007
Location: Newcastle
Posted: 21st May 2010 15:20 Edited at: 21st May 2010 15:21
I've done various things to convert objects to what ever type i wanted.

E.g. one example is to use anim8or to export the .3ds to .obj, then I already have written something that converts .obj to what ever I want.

Why use .obj? because it's easy to read, it simply has the data types: v vn vt f
v = vertex position
vn = vertex normal
vt = vertex texture
f = face of triangle using v/vn/vt for 3 points of the triangle

You can read up on the .x format and decide weather you can write your own object converter from .3ds straight to .x if you desire.

I've written my converters in Darkbasic because of it's easy string manipulation and file handling, could have done it in any language really though

My advice is to store all the information in arrays, then simply create a small function to export it in the desired way

younis12
16
Years of Service
User Offline
Joined: 23rd Feb 2010
Location:
Posted: 22nd May 2010 20:53
ok thanks
baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 23rd May 2010 11:56
You can import 3DS directly into DBPro with no conversion using "load object"! I do it all the time then just save it as dbo for quicker loading...

Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 23rd May 2010 23:11
Quote: "You can import 3DS directly into DBPro with no conversion using "load object"! I do it all the time then just save it as dbo for quicker loading..."

Only a small proportion of 3ds file formats.

My signature is NOT a moderator plaything! Stop changing it!
younis12
16
Years of Service
User Offline
Joined: 23rd Feb 2010
Location:
Posted: 24th May 2010 09:25
i have done that

but its too slow

is there is something like db pro texture limit?
the program can only allow 3 textures?

because my version is trial and i will buy the full version next week
baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 24th May 2010 10:38 Edited at: 24th May 2010 10:39
Quote: "Only a small proportion of 3ds file formats"

Really, I didn't know that. I've used output from 3DS Max, Sketchup and even AutoCAD with no problems so far (maybe even a couple of other editors...)

Quote: "but its too slow"

That's why I usually save it as a "dbo" after loading it, the dbo version always loads a lot faster!

Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 24th May 2010 14:29
The 3DS support was officially dropped due to the varying amount of 3DS formats. It may be that the software you're using just happens to be one of the formats for which an importer is supplied.

My signature is NOT a moderator plaything! Stop changing it!
baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 24th May 2010 15:00
That's worth knowing if anyone's having problems with 3DS... thanks Mobiius!

Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 24th May 2010 15:17
No worries.

My signature is NOT a moderator plaything! Stop changing it!

Login to post a reply

Server time is: 2026-07-25 08:29:22
Your offset time is: 2026-07-25 08:29:22