BF2.US bf2-rsdeveloper wiki Parity Discord bf2.us
generated from the code

Assets: every page

Archives, meshes, textures, animations, sounds and Flash menus: the file formats and their readers.

12 pages.

  • Assets and file formats: The file formats of BF2, 2142 and Heroes content - archives, meshes, textures, animations, sounds, fonts, movies and Flash menus - the bf2-rs crate that reads each one, and what goes into a mesh, texture, material, sound, object, level, ..
  • What goes into a mesh: The three render mesh kinds (static, bundled, skinned), their geometries, LODs and materials, the collision mesh beside them, lightmap UVs and the skinned mesh's bones, shown with a village house, the Heroes jeep and a hero body.
  • What goes into a texture: DDS formats and mip chains, the file name conventions the loaders act on (_b normal maps, _de detail, _w wreck), alpha, the Heroes hero atlas and its Colors.xml skin and hair tables.
  • What goes into a material: A material is one draw batch of a mesh LOD - effect file, technique, alpha mode and texture slots - and the technique's words pick the shader permutation the renderer draws it with.
  • What goes into a sound: Sound templates in CON, the WAV and Ogg samples they play, how the engine loads them (loop blocks, decimation, streaming Vorbis), pitch and volume envelopes, and the 3D distance settings, shown with the Heroes jeep.
  • What goes into an object: The template tree behind the village jeep spawner - the spawner, the jeep's PlayerControlObject, its geometry, collision mesh, components and 68 child templates, and the file that created each - drawn from the editor's own object dump.
  • What goes into a level: A level on one screen - terrain, static objects, game modes and spawners - with the village of Battlefield Heroes, and where the file formats are documented in full.
  • What goes into an animation: Skeletons (.ske) and bone animations (.baf) - nodes, bind pose, run-length tracks, the 24 fps sampler with slerp and lerp, how layers blend, and why the client and the server decode positions differently - shown with a Heroes hero's ..
  • Archives and the file system: How the games find a file - the .zip archives and their mount points, the _server / _client split, the search paths for loose files, level and variant-level mounting, and the layers bf2-rs adds on top (enhanced packs with ..
  • What goes into a Flash menu: The front-end menus are Flash movies (SWF 7, ActionScript 2) that talk to the game only through native objects - the files, the encrypted .dfm movies of 2142 and Heroes, how bf2-ui and its Ruffle-based player draw them, and one frame of ..
  • What goes into a terrain: The layers of a level's terrain - the heightmap cluster, the compiled terraindata.raw with its patch grid, colour, detail, low-detail and light maps per patch, and the compiled roads - decoded from Heroes village by bf2-terrain, with ..
  • What goes into an effect: Particle effects - the EffectBundle template tree, sprite, mesh, trail, emitter and non-screen-aligned particle systems, their .tweak properties, animated sprite atlases - shown with the Heroes medium explosion e_exp_medium, and how ..
Source: tools/devwiki/build.py · built from bf2-rs e3b4f05 · part of the Battlefield 2 / 2142 / Heroes reimplementation. Not affiliated with EA or DICE.