Battlefield Mesh Viewer
Screenshots
Download
Keep in mind that this program is a work in progress. New versions may include experimental
features that are unfinished and not thoroughly tested.
2011-05-15 (version 2.1.0)
- fixed skinnedmesh corruption when saving (mayor bug!)
- fixed error when selecting some geoms with BF2 skinnedmesh and skeleton loaded
- fixed viewport redraw after startup on Windows 7
- fixed viewport redraw after changing viewport background color
- added support for Battlefield Play4Free meshes
- added some form of application state recovery if errors occured during rendering of BF2 meshes
- lowered registry security priveliges in futile attempt to please Vista/Win7
- minor GUI workflow tweaks
These system files may, or may not, be needed to run BfMeshView on your computer. If BfMeshView refuses to start, place these files inside the BfMeshView executable directory.
Download: runtimes.zip (1.89 MB)
Usage
To view a model, run BfMeshView and open the file through the menu (File > Open). However, it is generally much more productive to enable file type association via Options > Preferences so that you can open the files by double clicking on the file in Windows Explorer. This will also allow you to view meshes from ZIP archives without extracting them manually.BfMeshView also supports file drag and drop for all supported file types. To play back BF2 animations, first load the skinnedmesh, then drag and drop the respective skeleton file onto the BfMeshView window, then drag and drop the animation file.
To view models with textures, add your mod directory to the texture path list (Options > Preferences).
Older Versions
2011-03-14 (version 2.0.0)
- fixed BF2/BFH mesh loader crash if material had no texture maps
- fixed more alpha rendering glitches
- fixed stubborn behavior when closing BfMeshView while loading a file
- fixed bug that allowed texture paths to become duplicated
- fixed race condition that caused flicker/rendering glitches at startup
- fixed incorrect display of number of vertex attributes
- fixed potential buffer overflow bugs that could cause UI corruption
- fixed buffer overflow in BF1942 StandardMesh loader
- added basic workspace file support
- added BF2 animation playback
- added texture mass-rename tool
- added option to skip error checks for sample generator
- added scale tool to UV editor
- added support for BF2 occluder files
- added overdraw visualization
- added "fix mesh" tool to zero out NaN vertex attributes
- added browse buttons to material editor
- added option to change viewport background color
- added debug console
- added BF1942 StandardMesh shader/texture loading
- slightly improved file loading performance
- BF2 skeletons are now rendered correctly
- UV editor channel dropdown now only lists channels present in mesh
- vertex attribute info now includes attribute types
- changed file association keys so that files can be properly sorted by extension in Explorer/WinZip
- when generating samples the user will now be prompted if the file already exist
- more drag and drop support for BF2 skeleton+mesh+animation combo
- slightly improved tree view structure display
2010-08-06 (version 1.9.0)
- fixed crash when restoring child windows under certain conditions
- fixed double clicking on texture not always opening file
- fixed error when double clicking in treeview when no BF2 mesh was opened
- fixed transparancy for some shaders
- fixed crash when selecting some .geo nodes in treeview
- fixed rare crash in normal map converter
- fixed bundledmesh shader shadow/wreck texture
- fixed bug in sample generator
- fixed assert in sample generator
- added material editing
- added UV editor
- added sample generator
- added tool to fix broken samples
- added BF2 file format version to treeview
- added BF2 vertex attribute info to treeview
- added full BF1942 tree mesh (*.tm) support
- added display of texture memory use
- added "open folder" in treeview context menu
- added support for all BF2 collisionmesh files (including weapons)
- added experimental vertex transform tool
- added normal map converter options
- invalid sample points are now no longer rendered at origin
- upgraded treeview control
- disabled annoying treeview node hover tooltips
- optimized treeview refreshing
- texture maps that fail to load are now marked in treeview
- double clicking on textures in treeview will now open the file
- can now view single unshaded texture by selecting map in treeview
- skin bone transforms are now drawn in viewport
- arrow keys now properly selects treeview node again
2009-08-14 (version 1.8.0)
- added support for OBJ files with UNIX linebreaks
- textures are now loaded from local textures directory if explicit path is missing
- fixed texture loading/rendering bug for DDS files without complete mimap chain
- added option to disable texture loading
- added option to disable samples loading
- added option to remember view settings between sessions
- added reload textures tool
- vegetation trunk textures are now shaded correctly
- information is now displayed for .obj and .samples files
- geom1 is now selected by default for .skinnedmesh files
- added additional safeguards to prevent possibly rare crash
- few minor aesthetic changes
2009-04-19 (version 1.7.0)
- full skinnedmesh support!
- fixed support for 'version 4' BF2 mesh files
2009-04-17 (version 1.6.0)
- added support for BF2 vehicle and weapon collisionmesh files
- added new file loaders
- improved emulation for several shaders
- fixed a few minor GUI bugs
2008-12-04 (version 1.5.0)
- added vertex order color rendering
- added proper BF2 texture loading
- added approximate rendering of most BF2 shaders
- fixed normal map converter crash when no input texture was specified
- fixed number of minor GUI bugs
- fixed incorrect lighting on backfaces when View > Backfaces was checked
2008-10-28 (version 1.4.0)
- fixed crash when restoring minimized child windows
- fixed .sm file loader bug
- added hierarchy tree view
- added more detailed geometry info to status bar
2008-10-09 (version 1.3.0)
- more complete BF2 .collisionmesh file loader
- added object-space to tangent-space normal map converter
2008-05-17 (version 1.2.0)
- now loads BF1942 StandardMesh (.sm) files
- restructured file loader code, meshes are now grouped
- experimental ".collisionmesh" loader
- loading ".skinnedmesh" files may now display some useful results
- fixed bug in texture loader when texture wasn't found in first path
- polygon count of the selected mesh is now displayed in status bar
- view is now zoomed in and centered on object
- added anisotropic texture filtering
- added experimental Wavefront OBJ export (works on some meshes)
- added normal/tangent vector rendering option
- added tools (experimental and undocumented)
- added experimental WaveFront OBJ export
2008-02-15 (version 1.1.0)
- much more robust ".staticmesh" and ".bundledmesh" loader
- added texture search path option and configuration file
2008-02-09 (version 1.0.0)
Currently loads most Battlefield 2 ".staticmesh" and ".bundledmesh" files, but not all.
Picks up DDS textures if they are in the same folder as the mesh.
Future versions will add support for all mesh file formats, better texture file finding
and perhaps support for Battlefield 1942 meshes as well.
Download: bfmeshview100.zip (64.3 KB)