Disabling of floras/leaves/tops of trees to reduce map footprint
This commit is contained in:
parent
825f7e0020
commit
d481214698
1 changed files with 7 additions and 7 deletions
|
@ -73,12 +73,17 @@ namespace EQ2ModelViewer
|
|||
string path = meshes[i][j];
|
||||
|
||||
path = baseDir + path.Replace("/", "\\");
|
||||
// if (path.Contains("\\flora\\"))
|
||||
if (path.Contains("\\accessories\\"))
|
||||
// if (path.Contains("\\flora\\"))
|
||||
if (path.Contains("\\accessories\\"))
|
||||
{
|
||||
Console.WriteLine("Model: skipping loading of model (Accessories suck!)" + path);
|
||||
return false;
|
||||
}
|
||||
else if (path.Contains("\\flora\\") && (path.Contains("leaves") || path.Contains("top00")))
|
||||
{
|
||||
Console.WriteLine("Model: skipping loading of model (Leaves and Tree Tops suck!)" + path);
|
||||
return false;
|
||||
}
|
||||
string[] texture = frmMain.GetTextureFile(((VeMeshGeometryNode)item).shaderPaletteNames, baseDir);
|
||||
string pickedTexture = "";
|
||||
if (i < texture.Length && texture[i] != "goblin_ice.dds")
|
||||
|
@ -239,11 +244,6 @@ namespace EQ2ModelViewer
|
|||
mesh.AddData(i, x, y, z, nx, ny, nz, tu, tv);
|
||||
}
|
||||
|
||||
if (model.indices.Length < 1 || model.normals.Length < 1 || model.vertices.Length < 1)
|
||||
{
|
||||
int test = 0;
|
||||
}
|
||||
|
||||
m_meshes.Add(mesh);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue