BMD file

From Pikmin Technical Knowledge Base
Jump to navigation Jump to search

Editor's note: This page is under construction.

Pikmin 2's 3D models exist inside .bmd files.

Material data[edit]

SuperBMD can dump the material data of a model into a handy JSON (JavaScript Object Notation) file. This dump outputs a mat.json file and a texheader.json file. mat.json contains the data related to the model's material. This section will document these JSON files instead of the actual material format used by Pikmin 2.


"Name" Name of material that is being defined.
"Flag" Material flag value.
"ColorChannelControlsCount" Amount of color channel controls.
"NumTexGensCount" Amount of texture generators.
"NumTevStagesCount" Amount of tev stages.
"Textures" The list of textures that the material uses, in square brackets
"CullMode" Determines which faces to render.
"SwapModes" Determines the channel that each channel will draw from. 0 = Sample from Red 1 = Sample from Green 2 = Sample from Blue 3 = Sample from Alpha.
"AlphCompare" Creates a filter based on the Alpha of the pixel that determines whether or not that pixel is rendered.
"BMode" Determines how a mesh is rendered in relation to meshes that have already been rendered.