1. Are you planning to upload your awesome spell or system to Hive? Please review the rules here.
    Dismiss Notice
  2. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  3. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still havn't received your rank award? Then please contact the administration.
    Dismiss Notice
  4. The poll for Hive's 12th Concept Art Contest is up! Go cast your vote for your favourite genie!
    Dismiss Notice
  5. Travel to distant realms and encounter scenes unknown to the common folk. The Greatest of Adventures is upon us with the 8th Cinematic Contest. Join in on a fun ride.
    Dismiss Notice
  6. The 18th Icon Contest is ON! Choose any ingame unit and give him/her Hero abilities. Good luck to all.
    Dismiss Notice
  7. Contestants are to create a scene set in the Stone Age. Come and see what you can come up with. We wish you the best of luck!
    Dismiss Notice
  8. Colour outside the lines! Techtree Contest #13 is a go. The contest is optionally paired.
    Dismiss Notice
  9. Greetings cerebrates, our Swarm needs new spawners that will have numerous children. Join the HIVE's 31st Modeling Contest - Spawners and Spawned! The contest is optionally paired.
    Dismiss Notice
  10. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

Importless Model Viewer v1.2.2b

Submitted by loktar
This bundle is marked as approved. It works and satisfies the submission rules.
  • View models without editing the map
    • Load from war3mod.mpq (folder), Local Files, and WC3 data
    • Can be added while the map is loaded
  • Mouse controls
  • Model, animation and camera interface (and chat commands)
  • Camera setup management
Tip: for a shortcut that directly loads the map, add this to Target: -loadfile "[path]\Importless Model Viewer.w3x"

Commands, Controls & Credits

    • -load [model path, no extension]
    • -modelx [CamBoundMinX - CamBoundMaxX] (position x)
    • -modely [CamBoundMinY - CamBoundMaxY] (position y)
    • -modelz [-1000 - 1000] (position z)
    • -scale [0% - 1000%]
    • -yaw [x°] (xy rotation)
    • -pitch [x°] (xz rotation)
    • -roll [x°] (yz rotation)
    • -alpha [0% - 100%]
    • -color [1 - 25] (player number)
  • [​IMG]
    • -anim [name] [subanim 1] [subanim 2] [...]
    • -anim add [subanim 1] [subanim 2] [...]
    • -anim remove [subanim 1] [subanim 2] [...]
    • -pause (pause/resume)
    • -speed [0% - 1000%]
    • -forceloop (toggle force loop)
    • -forceloop [0.1s+] (force loop duration)

    Animation Names:
    • stand | birth | death | decay | dissipate | walk | attack | morph | sleep | spell | portrait

    Subanimation Names:
    • first | second | third | fourth | fifth | defend | channel | slam | victory | throw | spin |
    • ready | upgrade | lumber | gold | work | talk | swim | flesh | entangle | chainlightning | rooted |
    • eattree | berserk | spiked | light | moderate | severe | critical | small | medium | large | alternateex |
    • looping | wounded | fast | turn | left | right | fire | one | two | three | four | five | fill |
    • puke | drain | flail | hit | off | complete

    • -cam [number] (apply camera setup)
    • -cam save (save current camera)
    • -cam delete [number] (delete camera setup)
    • -camx [CamBoundMinX - CamBoundMaxX] (position x)
    • -camy [CamBoundMinY - CamBoundMaxY] (position y)
    • -camz [0 - 4096] (position z/target height)
    • -distance [100 - 100000] (target distance)
    • -rotation [x°] (xy rotation)
    • -aoa [205° - 335°] (xz rotation/angle of attack)
    • -camroll [x°] (yz rotation)
    • -fov [20° - 120°] (field of view)
    • -farz [101 - 10000] (far clipping)

    • -tod [hh:mm] (time of day)
    • -tods [0%+] (time of day speed)

    • Switch between Camera and Model
    • Hold Left: Rotate
    • Hold Right: Move
    • Hold Left+Right: Zoom/Scale

    ↪ ScreenMouse

  • - Inspired by Epic Animation Viewer by Gekigengar and Model and Effects Viewer by CHA_Owner
    - BTNCamera by darkdeathknight
    - DialogPages by loktar


Changelog
v1.2.2b
- Minimum force loop duration now also enforced with button controls (lacks error sound for now)

v1.2.2a (fix)
- Fixed Delete Subanimation appearing in main menu after adding a subanimation
- Fixed Force Loop duration tooltip update
- Increased minimum force loop duration to 0.1s
- Fixed model Position Z tooltip (Height -> Position Z)

v1.2.2
- Switched model yaw/roll following recent patch
- Replaced Height with Position Z
- Current animation is now included in animation selection dialog
- Somewhat improved mouse controls (?)
- DialogPages updated to v1.0.2a
- ScreenMouse updated to 1.1.2
- Misc

- Camera Library v1.0.2:
-- Adding default cams now only adds those that don't already exist
-- Removed "Add defaults" from Delete cam dialog
-- Removed "Add defaults" from Apply dialog if all defaults already exist

- SFX Library v1.0.2:
-- Added field: Position Z (now used instead of Height in SetSfxPos)
-- Mouse controls now sets Yaw instead of Roll following recent patch

v1.2.1
- Added Animation Controls interface
- Added chat commands: "-anim add", "-anim remove", "-pause", "-forceloop"
- Team color dialog text is now colored
- Armor card now displays open button menu
- Customized some interface text (e.g. Quests -> Commands)
- Implemented ESC hotkey for Back button as was already shown in tooltip
- Removed autocast hotkeys because they're useless here
- Now creating dialogs with DialogPages system
- Updated ScreenMouse to v1.1.1
- Misc

- Camera Library v1.0.1:
-- Now creating dialogs with DialogPages system
-- Misc

- SFX Library v1.0.1:
-- Added ToggleSfxSubanim(), PauseSfxAnim(), IsSfxAnimPaused() and GetSfxAnimStr()
-- Misc

v1.2.0
- General:
-- System split up into several libraries (ScreenMouse, IMVCommon, Camera Library, Special Effect Library)
--- Future updates will add support for multiple players/effects and add configuration and documentation
-- Multiboard reorganised and model properties added
-- Replaced R2SP with R2S0 (IMVCommon) and R2S1 (ModelViewer), which make use of native R2SW
-- Icons replaced with more generic ones, so they can be reused for Model controls
-- Replaced Farm ("Model Viewer" unit) with camera prop, which has model's color
-- Misc

- Model:
-- Added model alpha
-- Added full model controls (chat commands & interface)
-- Color numbers changed to 1-25 from 0-28
-- Showing color player id as HP
-- Showing model name as selected unit's name
-- Fixed a few bugs with model mouse control
-- Icon replaced with standard WC3 icon
-- Default model changed to forest troll

- Camera:
-- Now comparing to all camera setups before saving current
-- Applied cam hidden from Apply Cam dialog if not changed
-- Showing cam number and amount as mana
-- Added second page to controls with FoV (moved) and FarZ (added)
-- Numbering now starts at 1
v1.1.3
- Improved Mouse controls
- Reduced range of Angle of Attack
- Several icons replaced with stock icons to reduce filesize
- Farm is now under terrain
- Misc

v1.1.2
- Added camera setup management (apply/save/delete - gamecache)
- Moved model and cam presets to center of map
- Saved 60kb+ by compressing icons ^_^
- Fixed a bug where 0°/360° was regarded as an error for a max of 360° (AoA)
- Misc improvements

v1.1.1 (fix)
- Fixed a mistake in correcting out of bounds camera field values

v1.1.1
- Added full camera controls (buttons and chat commands)
- Added multiboard with camera properties
- Disabled boundary tinting and music
- Fixed duplicate "-roll" command
- Misc improvements

v1.1.0
- Added basic mouse controls (+ passive ability with instructions)
- "-timescale" command changed to "-speed"
- Yaw, pitch, roll now in degrees
- Time of day now in hh:mm (24h) format
- New camera presets (cam 0 is the same)
- Removed cam lock/unlock
- Fixed not being able to set model roll
- Replaced long AnimType and SubAnimType getter functions with a hashtable
- Misc improvements/tweaks/optimizations

v1.0.0
- Uploaded

v0.0.1
- Thread
Previews
Contents

Importless Model Viewer (Map)

Reviews
MyPad
Having skimmed through the code, it appears that the library itself will only grow in complexity. Testing out the features in the map were a delight, though moving the unit around felt kind of buggy. (Sometimes, it would just disappear from the...
  1. loktar

    loktar

    Joined:
    Nov 2, 2004
    Messages:
    715
    Resources:
    25
    Models:
    3
    Icons:
    16
    Packs:
    1
    Tools:
    2
    Spells:
    2
    Tutorials:
    1
    Resources:
    25
    I intend to add buttons/abilities to replace/complement the chat commands, and more features, whenever I get around to it.
     
    Last edited: Apr 7, 2019
  2. MyPad

    MyPad

    Spell Reviewer

    Joined:
    May 9, 2014
    Messages:
    1,282
    Resources:
    6
    Models:
    1
    Icons:
    1
    Spells:
    3
    JASS:
    1
    Resources:
    6
    It seems that very few practical cases (in-game) come into mind, aside from what has already been stated, such as being able to preview models for certain units for cosmetic purposes. Moreover, this appears to be an integrated tool-map than a proper spell/system, having components of either but not fitting all the same.
     
  3. loktar

    loktar

    Joined:
    Nov 2, 2004
    Messages:
    715
    Resources:
    25
    Models:
    3
    Icons:
    16
    Packs:
    1
    Tools:
    2
    Spells:
    2
    Tutorials:
    1
    Resources:
    25
    Aside from cosmetic purposes, it can also be used to quickly test a model and see if it functions/displays properly ingame, without having to open the world editor, as all the existing external tools have their issues and don't always display a model correctly. It's also meant as a replacement of the existing model viewer maps uploaded to the hive.
    Thanks for the rating =)
     
  4. Wrda

    Wrda

    Joined:
    Nov 18, 2012
    Messages:
    1,050
    Resources:
    3
    Maps:
    1
    Spells:
    2
    Resources:
    3
    So what if you don't have to open the world editor? You still have to open Warcraft...and click more buttons. This indeed would be more suited somewhere else.
     
  5. loktar

    loktar

    Joined:
    Nov 2, 2004
    Messages:
    715
    Resources:
    25
    Models:
    3
    Icons:
    16
    Packs:
    1
    Tools:
    2
    Spells:
    2
    Tutorials:
    1
    Resources:
    25
    Ah well, I'll keep updating it anyway. Personally I found the other model viewer maps useful, and I wanted to improve on them by making use of the new natives and creating new/better controls.

    Considering the feedback I'm getting, I'll split it up into a few separate libraries (camera/model/environment) so it's more fitting in this section, and may hopefully also be useful for other projects.
     
  6. MyPad

    MyPad

    Spell Reviewer

    Joined:
    May 9, 2014
    Messages:
    1,282
    Resources:
    6
    Models:
    1
    Icons:
    1
    Spells:
    3
    JASS:
    1
    Resources:
    6
    Having skimmed through the code, it appears that the library itself will only grow in complexity.

    Testing out the features in the map were a delight, though moving the unit around felt kind of buggy. (Sometimes, it would just disappear from the screen). Overall, a fun tool-map to use.

    Status:


    • Approved
     
    Last edited: Apr 27, 2019
  7. loktar

    loktar

    Joined:
    Nov 2, 2004
    Messages:
    715
    Resources:
    25
    Models:
    3
    Icons:
    16
    Packs:
    1
    Tools:
    2
    Spells:
    2
    Tutorials:
    1
    Resources:
    25
    Thanks!
    In the next update, there will be a separate library for the mouse controls (which has been posted in the JASS section), the camera system, and the SFX system (and later also environment). Though they won't be that much more than convenience wrappers, aside from mouse controls and being able to store/retrieve setups in gamecache.
    I'm also hoping to improve the buggy behavior you mentioned.