HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Life Bar Height?

10-07-2006, 05:16 PM#1
Rising_Dusk
You know in Wc3 the height between the hero and it's life bar?
Well I was wondering what in an .mdl controls that.

I have a model with... A really, REALLY high life bar, even though it's "overhead" attachment is in the perfect spot.
I can't figure it out from observation, so I thought I'd ask a professional opinion.

Anyways, I attached a picture of a random unit to show what I'm talking about.
Zoom (requires log in)
That life bar thingie.
Attached Images
File type: jpgExample.JPG (6.5 KB)
10-07-2006, 05:33 PM#2
Rao Dao Zao
It's to do with either the Min/Max Extents and/or BoundsRadius.

Not sure how they relate, but it's definitely controlled by one or the other.
10-07-2006, 05:41 PM#3
Rising_Dusk
Hrm...
So just search through the .mdl for those and do what to them?
I'm guessing lower them to the appropriate height I want?

EDIT:
Okay, I found Min/Max extents.
But they don't appear to be outrageous.

Code:
	MinimumExtent { -113.538, -63.0121, -38.6218 },
	MaximumExtent { 76.7922, 64.4947, 136.98 }
Note, this model has the life bar like 400+ above his head.
So I doubt these are the problem.

EDIT AGAIN:
Looks like there are A LOT of bounds values and extent thingies. >_>
So negate what I just said.

One thing I do have to ask about.
For one of the thingiers...
Code:
	Anim {
		MinimumExtent { 3.40282e+038, 3.40282e+038, 3.40282e+038 },
		MaximumExtent { -3.40282e+038, -3.40282e+038, -3.40282e+038 },
	}
Does that seem at all a bit high?

Man, this .mdl stuff is confusing. :/
10-07-2006, 05:49 PM#4
Rao Dao Zao
Seriously, the height of the bar is definitely associated with BoundsRadius or Extents; I've done models of my own with outrageously large extents to avoid early culling, and the bars have been ridiculously off the scale.

That screeny looks fine to me, though. :S

And the geoset one pretty much means 3 all the way. The e+ stuff just gets very accurate small numbers.
10-07-2006, 05:54 PM#5
Rising_Dusk
The screenshot was random really.
I just used it as an example to show what life bar I was referring to.

The picture attached to this post is actually the problem child in question.
Zoom (requires log in)

Anyways, I'm looking and the highest values I see anywhere for the BoundsRadius and Extents are like 160~.
This bar is easily 300-400 up.

Hrm...
Then again there are A LOT of instances of those two things in the mdl.
Maybe I'm overlooking one..
Attached Images
File type: jpgLoggy.jpg (17.8 KB)
10-07-2006, 05:57 PM#6
Rao Dao Zao
Bear in mind that scale in the MDL is totally different to scale in-game.

Try using the "Recalculate Extents" function in Magos' and see what comes out.
10-07-2006, 06:03 PM#7
Rising_Dusk
Wow, that fixed it...
Thanks loads ArrDeeZizzle, you've saved my .mdl plunders yet again.

Boo @ Spreading around. :(
10-07-2006, 06:06 PM#8
Rao Dao Zao
See? I was right all along. That'll teach you to doubt me, boy!