Warcraft III resources & community, 2003–2006 · archived

The Disapearing Model

8 posts
#1

The Disapearing Model

Okay I have a very large (Model size, not scale size) model. About 2200 polys. It works perfectly fine in-game as long as the camera's target does not move too far from the origin of the model. If it does, or if the camera gets too close to the model itself, the model dissapears (Or whats more likely, it stops rendering all together)

I know I have seen this issue plenty of times before, and I was curious if it can be stopped. I already tried breaking the model into 8 small 250 poly sections, the the model still disapears.
#2
It's all about the values in the minimum-maximum extent. They are six x,y,z coordinates (positive, and negative) that control the visibility range of the model. As long as you know how big your model is, it's easy to fix it in notepad.
#3
Thats what I thought, however after setting the Max/Min Extends to 100000000.00, it still disapears. If need be I can post the model and you can see for yourself.
#4
There are several lines in the mdl that contain the command. Make sure to change them all.
#5
Shortend version of the MDL enclosed. Notice the Min/Max extend values.

Version {
FormatVersion 800,
}
Model "Terrain" {
NumGeosets 1,
NumBones 1,
BlendTime 150,
MinimumExtent { -10000.00, -10000.00, -10000.00 },
MaximumExtent { 10000.00, 10000.00, 10000.00 },
BoundsRadius 8219.92,
}
Sequences 1 {
Anim "Stand" {
Interval { 0, 3333 },
}
}
Textures 1 {
Bitmap {
Image "Terrain.blp",
}
}
Materials 1 {
Material {
Layer {
FilterMode None,
static TextureID 0,
}
}
}
Geoset {
Vertices 1371 {
{ 5091.39, -75.2009, 49.4128 },
{ 4948.4, -279.196, 49.4128 },
{ 4984.55, -227.568, 49.4128 },
{ 5055.71, -125.947, 49.4128 },
{ 3626.25, -3794.54, 541.352 },

(...)

{ 5203.81, 1463.93, 87.3268 },
{ 4237.47, 2171.3, 156.987 },
}
Normals 1371 {
{ -0.227526, 0.159981, 0.96054 },
{ -0.227459, 0.159268, 0.960675 },
{ -0.227459, 0.159268, 0.960675 },
{ -0.226558, 0.158804, 0.960965 },

(...)

{ -0.0826096, -0.173131, 0.981428 },
{ -0.00963668, -0.172039, 0.985043 },
}
TVertices 1371 {
{ 0.277821, 0.188478 },
{ 0.29499, 0.188487 },
{ 0.290646, 0.188487 },
{ 0.282097, 0.188487 },

(...)

{ 0.186485, 0.243524 },
{ 0.184751, 0.326875 },
}
VertexGroup {
0,
0,
0,
0,

(...)

0,
0,
}
Faces 2433 7299 {
Triangles {
{ 1370, 1369, 1368 },
{ 1369, 1367, 1368 },
{ 1367, 1369, 1366 },
{ 1365, 1366, 1369 },

(...)

{ 0, 3, 1330 },
{ 1350, 1347, 1351 },
}
}
Groups 1 1 {
Matrices { 0 },
}
MinimumExtent { -10000.00, -10000.00, -10000.00 },
MaximumExtent { 10000.00, 10000.00, 10000.00 },
BoundsRadius 8219.92,
MaterialID 0,
SelectionGroup 0,
}
Bone "Terrain" {
GeosetId 0,
GeosetAnimId None,
}
PivotPoints 1 {
{ -14.3662, -2.01318, 5.00496 },
}
//End
#6
I believe you need to change bounds radius.
#7
No, boundradius control the range in wich the model can be selected. But maybe your values are out of range... try to change them to the real values of the model. And add the minimum-maximum extent lines under the animations too.


Sequences 6 {
Anim "Portrait Alternate AlternateEx - 1" {
Interval { 370000, 372000 },
MinimumExtent { -162.384, -352.231, -157.497 },
MaximumExtent { 104.492, 161.01, 377.334 },
BoundsRadius 391.144,
}
#8
	MinimumExtent { -4500.00, -8400.00, -30.00 },
	MaximumExtent { 4300.00, 8500.00, 1000.00 },


No effect. I also tried adding it to the animation, once again, no effect.

If all else fails, I'm willing to let you have the MAX or MDL to toy with. This is a huge issue that neede to be resolved for my mod to be playable.