• 🏆 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!

[General] Partially underground building

Status
Not open for further replies.
Level 2
Joined
Nov 21, 2015
Messages
15
I lowered the height of a building in the object editor, to make only a part of it visible. It looks right in the editor, but ingame it looks normal (as in it has regular height). What could be wrong?

1zokqvp.jpg
 
Level 14
Joined
Nov 17, 2010
Messages
1,265
Try setting the Movement - Height and Movement - Height Minimum to the same negative value. If that still doesn't work then you will have to edit the model using Magos Model Editor. It's a pretty simple edit just select all the vertices and change the translation Z value to a negative number. Keep doing it until you get it where you want then save and reimport.
 
Level 28
Joined
Mar 25, 2008
Messages
2,955
I have a weird way of approaching this.

First, make a duplicate of your building and set the original's values to:
Is a Structure: False
Collision: 0
Pathing: NONE
Placement Requires: - (nothing)
Height: -X (whichever)
Ability: Locust
Movement Type: Fly/Float
The building is now an unselectable, flying unit you cannot move.

Now, it's time to cheat:
Put your duplicated structure on TOP of the one that was being lowered underground.
Set the shadow to: NONE

The duplicate building is now a dummy ON TOP of the original bulding.
Lastly, in triggers, do:
  • Animation - Set 'Unit (Duplicate)' Vertex Coloring to 100%, 100%, 100% with 1.00 alpha
to make it invisible.
You can either do this using preplaced units on the map or dynamically assign the alpha by doing some comparison-type condition which buildings are affected when X happens.
Hovering the mouse over it will select as usual.

However, there is a major limitation/downside to this:
The model portrait will be empty when selecting a transparent unit/structure.
And: due to the edginess of this approach, you won't be able to construct buildings without handling that the same way and manually trigger the construction cycle animation to the lowered unit or something.
 
Status
Not open for further replies.
Top