Skip to main content

Convert OBJ to X (DirectX) Online — Legacy Game Engine Format

Convert OBJ files to X (DirectX) format for use in legacy DirectX game engines, modding tools, and visualization applications from the DirectX 7-9 era. The X format was Microsoft's native 3D model format before FBX became the industry standard.

Last updated Mar 2026

1
Upload
2
Convert
3
Download

Drag OBJ file here (with MTL & textures), or upload a ZIP

Supports .obj files (+ .mtl, textures, or .zip) up to 150MB

Usually under 3 seconds — depends on file size.

What You Should Know

What Changes During Conversion

Geometry (vertices, faces, normals) is preserved. UV coordinates are maintained. Materials are converted from OBJ's MTL format to X's material templates (basic diffuse/specular). Polygon faces are triangulated if needed — the X format works best with triangle meshes. Object groups from OBJ become Frame nodes in the X hierarchy.

X Format Characteristics

The DirectX X format supports geometry, materials, UV mapping, and skeletal animation. It uses a template-based structure that can be text (human-readable) or binary. The format was introduced with DirectX 2 and was the primary 3D format through DirectX 9. While largely replaced by FBX and glTF in modern pipelines, it remains essential for legacy DirectX applications.

OBJ vs X (DirectX): Quick Comparison
FeatureOBJX (DirectX)
GeometryPolygons + trianglesTriangles preferred
MaterialsMTL files (basic)Inline templates (basic)
AnimationNot supportedSkeletal animation supported
UV MappingSupportedSupported
Primary EraUniversal (1990s–present)DirectX 7-9 (late 1990s–2000s)
File TypeText onlyText or binary

Use OBJ for universal compatibility across all 3D tools. Convert to X only when targeting legacy DirectX engines, game modding tools, or educational DirectX projects that require .x format.

When to Convert OBJ to X (DirectX)

Legacy DirectX Game Development

Load models into DirectX 7-9 era game engines and frameworks. Many educational DirectX tutorials and older game engines (including custom engines built on D3DX) require .x format input for mesh loading via D3DXLoadMeshFromX.

Game Modding

Create mods for older DirectX-based games that accept .x model files. Many classic PC games from the early 2000s use the X format for custom assets, vehicles, weapons, and map objects.

DirectX Programming Education

Many DirectX programming textbooks and courses use .x files for examples. Convert freely available OBJ models to X format for use in DirectX learning projects and shader development.

Frequently Asked Questions
Basic material properties (diffuse color, texture references) are converted. However, X format uses a different material model than OBJ's MTL files. Complex PBR materials will be simplified to basic diffuse/specular. Texture file paths are referenced but textures themselves are not embedded — keep texture files alongside the .x file.
The converter outputs text-based X format by default, which is human-readable and easier to debug. Text X files are slightly larger than binary but widely compatible with all DirectX-era tools and game engines.
Directly, mostly no. Unity and Unreal Engine 5 do not natively import .x files. However, many legacy engines (DirectX 7-9 era), modding tools, and older middleware still require .x format. For modern engines, convert to GLB or OBJ instead.
OBJ groups (g) and objects (o) are converted to X Frame nodes, preserving the logical structure. Object names are carried over as Frame names. This hierarchy is accessible via D3DXLoadMeshFromX with hierarchy traversal in DirectX applications.
Yes. The converter runs in your browser using WebAssembly and can handle OBJ files up to 100–150 MB depending on available browser memory. A 50 MB OBJ with ~500K polygons typically converts in 3–8 seconds on a modern machine. For very large files, close other browser tabs to free memory.
Yes. UV texture coordinates from the OBJ are mapped to the X format's MeshTextureCoords template. If your OBJ references texture images via the .mtl file, the X file will reference those same texture filenames — keep the texture files in the same directory as the .x output.

Related Converters

What's Next? Try These Tools

Learn More

More OBJ Conversions