• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Ingame Importless Model Viewer (map)

Status
Not open for further replies.
Edit: A new version with more features can be found here.

I modified Gekigengar's Epic Animation Viewer so it can load models without importing them to the map, or even opening the World Editor at all, by loading them as Effects.
I also removed the "grid" and replaced it with a simple black texture.
Unfortunately Gekigengar is inactive, so I can't get permission to submit this to the Maps repository.

Features
  • Load model from war3mod.mpq (folder) or through Local Files
  • Models are loaded dynamically, so you can add models without restarting the game or reloading the map
  • Chat commands to change animation, camera presets, team color, animation speed and more
  • Because models are loaded as effects, only preset animation names can be used

Instructions
It's pretty simple, just put the models in one of two places:
  • C:\Program Files (x86)\Warcraft III\war3mod.mpq - war3mod.mpq is a folder, NOT an MPQ file (although that might also work, I haven't tested)
  • Enable Allow Local Files and put the models in the WC3 install directory (default: C:\Program Files (x86)\Warcraft III)
Now load the map, and type: "-load filename" - without the extension, e.g. for a model named footman.mdx type "-load footman".
That's it, you should now be looking at your model.

Chat commands
For convenience, these are also listed in the Quest Log.
  • -cam [integer] - Set camera (0-2); each camera also has its own roll (see below); default: 0
  • -load [string] - Load model (don't include extension (.mdl/.mdx), it's added automatically)
  • -anim [string] - Set animation (stand | birth | death | decay | dissipate | walk | attack | morph | sleep | spell | portrait); default: stand
  • -color [integer] - Set team color by player number (1-28; 25-28 are neutral/black); default: 1 (red)
  • -height [real] - Set model height (distance from ground); default: 0
  • -timescale [real] - Set animation time scale (normal is 1.00); this determines the speed; default: 0
  • -yaw [real] - Set model yaw (yz rotation); default: 0
  • -roll [real] - Set model roll (xy rotation); default: 0
  • -pitch [real] - Set model pitch (xz rotation); default: 0
  • -tod [real] - Set Time of Day; default: 12
  • -tods [real] - Set Time of Day Speed (%); default: 0
Known issues
  • The animation name isn't updated in the leaderboard (will always read Stand)
  • It's possible to load Sub-animations in the same way as normal animations, but this currently isn't implemented. I can add them individually on request :)
 

Attachments

  • Importless Model Viewer.w3x
    106.3 KB · Views: 55
Last edited:
Status
Not open for further replies.
Top