Sajt wrote:- The model's skin's height is greater than 200px (won't run in DOSQuake)
Aha! I thought this limit found its way into WinQuake too, but I got proven wrong, making me feel very confused, as I couldn't possibly have made this up.
goldenboy: apparently it was only a limit in DOSQuake
Sajt wrote:Yes, I would be willing to add OBJ support. I would just need a few example OBJ models for testing.
"Some more far-fetched major features for later versions: ...Convert MAP files (e.g. the health/ammo pickups) to models."
This would be a great feature for mappers wanting to make more geometric-style models and who have an easier time using their mapping software to make the shapes they want.
It would probably be better to convert from BSP rather than MAP, since BSP won't have any hidden, overlapping, or inter-penetrating surfaces, no t-junctions, and it would probably be easier to convert since all the faces, vertices, and edges already exist.
But as for difficulty, I already have code to convert a MAP to polygon mesh. The only difficulty will be creating a skin which includes all textures used by the MAP, including tiling them where they repeat...
F. A. Špork, an enlightened nobleman and a great patron of art, had a stately Baroque spa complex built on the banks of the River Labe.
I would rather you wait until a somewhat more polished release. The next release is coming soon and includes MD2 exporting, and a more friendly viewer.
F. A. Špork, an enlightened nobleman and a great patron of art, had a stately Baroque spa complex built on the banks of the River Labe.
No, don't worry Spirit, I've been thinking about it - lossless load/save of MDLs. But I was not sure if it should be in the same tool or a different one. It could make the model converter more complicated. In a separate tool there would be some redundant code but it would be similar.
I would be able to fix bad skin sizes, change flags and other simple fields, import/remove skins, as well as do other interesting things like change the overall scale of the model or optimize the skin map (reducing skin size), while being completely lossless as to vertex position quantization.
I should make it clear that the current tool can import/export MDL, but it will probably "drift" the vertex positions by a small amount.
Another note about bad skin sizes: the skin is stored early in the model file, so if the overall skin width times height is not a multiple of four, it throws the alignment of all subsequent integer values out of whack. Such models would probably load on a normal x86 system (but be slow) but would totally crash certain other systems. I could still load such a model safely but it would take extra code to read every field byte by byte and reconstruct the integers. I don't know if there are any models out there with bad skins which would make this effort worthwhile.
F. A. Špork, an enlightened nobleman and a great patron of art, had a stately Baroque spa complex built on the banks of the River Labe.
Ok I've converted a md3 to mdl and the skin is all squiffy. I've tried conversion with Quick3d, which doesn't result in a squiffy skin, but the model won't run in many engines (fitzquake for one, DP plays it fine) due to the skin being >480.
So I've tried reducing the skin size (but this results in the squiffy skin on the model as with qwalk) I've tried reducing the model size (here's my semi-logical brain missing something relevant) by a corresponding amount (90%) but the skin is still squiffy, which confuses me but there's probably a good reason for it.
Is there a way of solving this ('this' being something I may not have explained too well.
Dang... I forgot to include palettes.o in the makefile. That's fixed.
As for the warnings, they're all "value computed is not used", which is really annoying but I'm not sure if it can be disabled without disabling a bunch more warnings. All the warnings are triggered by my kind of sneaky way of returning descriptive errors from functions in one line of code. If I ever implemented a better error handling system (using setjmp/longjmp) these warnings would disappear. Once real life cools down I'll take a look at that.
Also, if you are any good at computers and whatnot, maybe you can rewrite the makefile! I know absolutely nothing about makefiles, and I think mine is a piece of crap (and it doesn't load dependencies either).
F. A. Špork, an enlightened nobleman and a great patron of art, had a stately Baroque spa complex built on the banks of the River Labe.