Is that possible?
Yes, and this is true in most cases.
In order to translate from one 3D object file format to another, all you need to do is look up the specifications ('specs') of those two file formats, and then write a program that can read file format A, and write to file format B.
You can find example sourcecode for converting several common file formats on the net, for example read OBJ plaintext and write X binary.
I have written many loaders, but generally when I want to write data, I'll write it to my own custom file format, so I have not written quite as much code involving writing to a specific format.
But you can always forget all that and write a 'file dumper' which loads a given format, then spits out plaintext in your own format, according to your needs.
Regardless, you need to start poking around for information about the source file structure as your first step.
In order to translate from one 3D object file format to another, all you need to do is look up the specifications ('specs') of those two file formats, and then write a program that can read file format A, and write to file format B.
You can find example sourcecode for converting several common file formats on the net, for example read OBJ plaintext and write X binary.
I have written many loaders, but generally when I want to write data, I'll write it to my own custom file format, so I have not written quite as much code involving writing to a specific format.
But you can always forget all that and write a 'file dumper' which loads a given format, then spits out plaintext in your own format, according to your needs.
Regardless, you need to start poking around for information about the source file structure as your first step.
Yes, and this is true in most cases.
In order to translate from one 3D object file format to another, all you need to do is look up the specifications ('specs') of those two file formats, and then write a program that can read file format A, and write to file format B.
I was hoping for a 'quick fix' i.e some util that would have done the conv for me.
But thanks anyway.
Doesn't lightwave have a native .ASC (or something) output format?
For a quick fix, get the .obj exporter for lightwave. It was on some japanese site, you can't miss it.
Doesn't lightwave have a native .ASC (or something) output format?
:shock: oops you're right.
the .obj format is pure Ascii i thought it was some sort of object file similar to what a compiler spits out.
And in 3dsmax it's called "ase".
Ah yes, ASE... I remember writing a parser for that ages ago when a friend and I did a 3D engine (he did all the mathy stuff :))
Yeah, my friend way back in grade 10 made a wireframe rendering system from scratch in VB6 and exported his wireframes from 3dsmax and loaded them with his own custom loader, lol. He actually stripped some extra info out of the format to make it a bit smaller, lol.
Dudes, you too? ^^ I still have a converter from ASE to my own ultra-simple geometry format ^^ I made an opengl demo way back then ^^ Gosh, this brings back memories :P
^^ Gosh, this brings back memories :P
That's the reson I got in to this again... Flashbacks from the good old Amiga days. :-)