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 Discussion / Help saving .X files

Author
Message
thinkdigital
21
Years of Service
User Offline
Joined: 18th Oct 2003
Location:
Posted: 19th Oct 2003 20:34
I'm making a model generator in my spare time, so I can make all my own models. But I have no idea of how to save the objects created as a single .x file! Any tips?

Gentlemen, your physics books were wrong. All of everything consists of two elements: me and the computer.
JoelJ
21
Years of Service
User Offline
Joined: 8th Sep 2003
Location: UTAH
Posted: 20th Oct 2003 00:29
if you could save it as a *.3ds file you could convert it using the 3ds2x command in DB

3ds2x c:\file\object.3ds,c:\file\object.x
they dont have to be the same file but you HAVE to include the .3ds and the .X and the full file name.
but i dont know how you would save it as a 3ds file, i dont know enough to tell you.

<{^_^<}
thinkdigital
21
Years of Service
User Offline
Joined: 18th Oct 2003
Location:
Posted: 20th Oct 2003 01:42
Thanks Darwin, but I don't need that, because I can't save as *.3ds. You're right, DB won't do that. I need to save all objects I have created and loaded as a single *.x file. Thanks for the suggestion though, because I would love to work that *.3ds to *.x process in reverse! Can it be done? . I still have to save as *.x files, though, even to do that. Thanks for Your Inspiration, Darwin.

Gentlemen, your physics books were wrong. All of everything consists of two elements: me and the computer.
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 20th Oct 2003 07:32
There was a thread on the microsoft .x format somewhere here... but i can't be bothered to find it...

Go to the microsoft or Directx websites and look for the file format's there... That's your best bet, or put into a search something like ".x file folrmat" or something...

Knowledge Belongs To The People...
thinkdigital
21
Years of Service
User Offline
Joined: 18th Oct 2003
Location:
Posted: 20th Oct 2003 07:57 Edited at: 20th Oct 2003 07:58
I dunno, JessTicular, why would Microsoft tell me how to operate a .x save?
This is DBC I'm programming with here, not DOS.

Gentlemen, your physics books were wrong. All of everything consists of two elements: me and the computer.
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 20th Oct 2003 09:32
No, they released a thingo that tells you the format of the .x files, so when you create one, you get it right, so other program's can read it

Knowledge Belongs To The People...
Pal
22
Years of Service
User Offline
Joined: 13th Apr 2003
Location:
Posted: 20th Oct 2003 10:01
i heard that there was a plugin for saving x files. dunno where really can find it.u may like to check it out.

I am da man! Beware of my LAZER EYES!
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 20th Oct 2003 14:47
Look Here. This is the .x file format, that is how you have to save your information... It's hard work, but once you've done the engine for saving it, then you don't have to do it again...

Hope I Helped...

Knowledge Belongs To The People...
thinkdigital
21
Years of Service
User Offline
Joined: 18th Oct 2003
Location:
Posted: 21st Oct 2003 05:25 Edited at: 21st Oct 2003 05:34
Oh, it works with any language? Cool! Only problem is, how this works confuses me. If I'm not mistaken, I have to make an engine that transfers a DB cube into a DirectX one to save the file. Is that right, or am I just stupid?

Gentlemen, your physics books were wrong. All of everything consists of two elements: me and the computer.
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 21st Oct 2003 05:33
Yeah, that's what i was trying to say...

Have fun...

Knowledge Belongs To The People...
thinkdigital
21
Years of Service
User Offline
Joined: 18th Oct 2003
Location:
Posted: 21st Oct 2003 05:35 Edited at: 21st Oct 2003 06:09
*shudder* Oh boy, I'll have fun, all right .....
I'm all for checking that plaugin first. This DirectX is the first code that actually scares me.....

Gentlemen, your physics books were wrong. All of everything consists of two elements: me and the computer.
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 21st Oct 2003 11:47
LoL...

Well, There must be some other people out there that have dealt with this before... Mabey you could ask around on the forums, with a subject line as "Creating DirectX File Formats" or something, your sure to get some responses...

Knowledge Belongs To The People...
thinkdigital
21
Years of Service
User Offline
Joined: 18th Oct 2003
Location:
Posted: 22nd Oct 2003 06:17 Edited at: 22nd Oct 2003 06:19
Not a bad idea. Don't get me wrong, I don't mind a little hard work. But if there happens to be an easier way....

That's what this post was supposed to be for. Say, I'm using DBC V 1.13 Enhanced, and there's this command: SAVE STATIC OBJECT Filename$, where (duh) filename$ is the filename. Any idea how that works?

P.S. I almost found a DirectX saving plugin on MSDN, but it was just a dead end.

Gentlemen, your physics books were wrong. All of everything consists of two elements: me and the computer.
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 22nd Oct 2003 09:38
Hmm, im not too up-to-date on model animations and saving objects etc (I haven't needed to do anything like that in any of my projects so far).

Sucks how it was a dead link...
Good luck with finding a plug-in...


Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy
thinkdigital
21
Years of Service
User Offline
Joined: 18th Oct 2003
Location:
Posted: 8th Nov 2003 05:32
NO big deal, JessTicular. Anybody sure there's not a DirectX engine somewhere for free around here? Has anybody made and engine before that I can use?

Gentlemen, your physics books were wrong. All of everything consists of two elements: me and the computer.
waffle
22
Years of Service
User Offline
Joined: 9th Sep 2002
Location: Western USA
Posted: 11th Nov 2003 15:21
actually, I think Raven or Vandetta did an X file save thingy for DBC about 2 years ago.... Its probably been lost on the internet. It was done for creating a primative .BSP type of thingy for DBC but it was so slow as to be almost useless. Since most of us have faster computers now, it might actually work now. I don't think there is a link to it though, I'll check my archives and see what I find.

internet gaming group
waffle
22
Years of Service
User Offline
Joined: 9th Sep 2002
Location: Western USA
Posted: 11th Nov 2003 15:29
OK, here is what I found .....

this one is by Jack Kern
It is designed to save single mesh objects....
not objects with multiple limbs.

To save objects with multiple limbs,
create a mesh from each limb and save in its own file,
then in MilkShape, you can merge them together again.

Or you could "finish" his project.....
If you need an example of use, just ask. I modified his example some,
don't know if it still works.

internet gaming group
thinkdigital
21
Years of Service
User Offline
Joined: 18th Oct 2003
Location:
Posted: 11th Nov 2003 22:24
WOW! Awsome script, waffle! I'll try it, as soon as I get my program working right. (The other day I was messing with the Matrix commands and screwed the whole thing up...) That's definetly NOT going to stop it's production. Thanx!

Gentlemen, your physics books were wrong. All of everything consists of two elements: me and the computer.

Login to post a reply

Server time is: 2025-05-21 16:54:06
Your offset time is: 2025-05-21 16:54:06