Resource Shape Viewer

    Simple example for my re-implementation of Mii character rendering in Fusion. You can find more info about it on my blog.

    This demo reads and displays shapes from the proprietary "resource" format across all consoles. Parsing and glTF exporting are implemented with Fusion code transpiled to pure JavaScript, with Three.js consuming vertex buffers and rendering the scene.

    Please read!

    This is meant to be a tech demo, not a library and not a reference.

    I ask that you please don't lift the code out of this page, I appreciate it.

    Those who are interested are encouraged to look into their own research instead, which will produce better code than what's on this page.

    My project will 100% be released as open source in the future, and that's the version you will want to wait for. Until then, thanks for checking this out!

    Loading a file

    The following archives are supported for loading. On all systems except the DS, these files are located on the system, and you can usually look up the filenames online.

    • Wii: RFL_Res.dat
    • 3DS: CFL_Res.dat
    • DS: NFL_Res.dat
    • Wii U: FFLRes{High,Middle}.dat + "LG" variants
    • Miitomo: AFLResHigh.dat, AFLResHigh_2_3.dat
    • Switch/Switch 2: ShapeHigh.dat, ShapeMid.dat

    Wii and DS: These have less parts and no "headwear" variants or transforms.
    Miitomo and Switch: Identical to Wii U.

    The easiest file to obtain, if you don't already have one, is AFLResHigh_2_3.dat. Download and extract it from here.

    Viewing

    The controls should be intuitive.

    • Some parts (many caps, beard 0) show nothing. That is not a bug, they are just empty.
    • The link updates whenever a new part is viewed, so it returns when you refresh.
    • "test UVs" applies any image as a texture, for shapes that support it.
    • For Wii U and later, some shapes like hairs may be colored green or be semi-transparent due to the vertex colors that are applied. (Also, colors/tangents are not included in the model exports.)

    What does this not do?

    • Editing or repacking resource files is not supported at this time.
    • This only shows an individual part, not the entire Mii head model.
    • Textures are not handled in this demo. Parts like caps and faces are un-textured, unless you supply your own via "test UVs".