Author
Topic: MDL files / level editing (Read 606 times)

If you remember our research regarding the umires.arc found in Umihara Kawase Steam Edition, you know that the level files come in MDL/ATR pairs. I did a spec on the ATR format back then, but now I've been working on a MDL to OBJ converter for a few days nowHere's a video:https://youtu.be/91PBrXLY_rc

Theres still a few things left to figure out but mostly this isn't too complex of a format to understand. My primary objective is to make a 1:1 exporter so we can host 3D models of the fields onsite, but maybe we could make an OBJ > MDL converter eventually as well.I'll try to update this thread as I progress.

Glad to hear that!Unfortunately, it appears that OBJ doesn't support animated UV maps or vertex colors. I might have to look into other formats or devise a strictly webGL-optimised solution.

I'm also confident that ripping the Sayonara maps is totally possible, but I'll get back to that later.

Animated UV maps? That's a thing? I don't see why the UV map itself would be modified in real time. The texture itself might be the one changing to give the impression of animation..obj can support vertex color for some graphics renderers; It's a set of three floating point numbers after you define the position of a vertex. Another way is to use one material for one color and apply each material to a group(s) of meshes.

Animated UV maps? That's a thing? I don't see why the UV map itself would be modified in real time. The texture itself might be the one changing to give the impression of animation.

To be perfectly honest, I actually don't know if the UV map is animated, I just assumed the UV coords move along the texture because the conveyor movement is so smooth. Could be animated textures, too, though. Even animated palettes for all I know, much like the first game. Maybe animated GIFs would work as the textures if all else fails?

.obj can support vertex color for some graphics renderers; It's a set of three floating point numbers after you define the position of a vertex. Another way is to use one material for one color and apply each material to a group(s) of meshes.

I know, but it's not in the standard so it's more of a hack really. Also, I use Cinema 4D for my modeling stuff which unfortunately does not support this implementation of vert colors in OBJs.

There are still three big unsolved problems regarding the models:• Animated parts in level geometry. How they work, and how to implement them in the web viewer (OBJ doesn't support animation, right?)• Enemies and objects. How do they work?• Z-fighting. There are multiple cases where triangles share the exact same Z value but have separate textures, usually the "top" one having a texture with an alpha channel. See my tweet.