Skip to content

Maya .NET plugin to load BLP image files (Warcraft III/World of Warcraft)

License

Notifications You must be signed in to change notification settings

wiselencave/maya-wartex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Maya WarTex (BLP Image Loader)

This is a small Autodesk Maya plugin written using the .NET API. It adds support for loading BLP (a legacy texture format used by Warcraft III and World of Warcraft) image files via MPxImageFile, allowing them to be opened as regular image files inside Maya.

There's no direct GPU loading (the glLoad() method) here, only the MImage instance is initialized. Mipmaps are ignored.

Dirty MEL hack

The project also demonstrates how image file extensions can be registered in Maya’s Image Types list at runtime using MEL from managed code.

Maya does not provide a public API for this in MPxImageFile, so a MEL-based workaround is required.

Target DCC

Made for .NET 8 compatible versions of Maya (Maya 2025 or later), Windows only.

For Maya 2024 and earlier, plugin requires a BLP reader library compatible with .NET Framework 4.8. The image format integration code remains relevant for these versions, but adjustments to syntax may be necessary.

Dependencies

  • War3Net.Drawing.Blp by Drake53. Used as a NuGet package for reading and decoding BLP textures.
  • openmayacs.dll. Maya .NET API assembly provided with Autodesk Maya.

About

Maya .NET plugin to load BLP image files (Warcraft III/World of Warcraft)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages