models: md3/md5 show count of verts and tris

This commit is contained in:
Denis Pauk 2024-03-09 15:41:11 +02:00
parent d137fe863c
commit 25dc9cf064
3 changed files with 7 additions and 4 deletions

View file

@ -872,6 +872,9 @@ Mod_LoadModel_MD3(const char *mod_name, const void *buffer, int modfilelen,
pheader->ofs_glcmds = ofs_glcmds;
pheader->ofs_end = ofs_end;
R_Printf(PRINT_DEVELOPER, "mesh num tris %d / num vert %d / commands %d\n",
pheader->num_tris, pheader->num_xyz, pheader->num_glcmds);
num_xyz = 0;
num_tris = 0;

View file

@ -306,9 +306,6 @@ AllocateFrames(md5_model_t *anim)
anim->num_tris += anim->meshes[i].num_tris;
}
R_Printf(PRINT_DEVELOPER, "mesh num tris %d / num vert %d\n",
anim->num_tris, anim->num_verts);
anim->vertexIndices = (int *)
malloc(sizeof(int) * anim->num_tris * 3);
anim->st = (vec2_t *)
@ -1347,6 +1344,9 @@ Mod_LoadModel_MD5(const char *mod_name, const void *buffer, int modfilelen,
pheader->ofs_glcmds = ofs_glcmds;
pheader->ofs_end = ofs_end;
R_Printf(PRINT_DEVELOPER, "mesh num tris %d / num vert %d / commands %d\n",
pheader->num_tris, pheader->num_xyz, pheader->num_glcmds);
for(i = 0; i < md5file->num_frames; i ++)
{
daliasxframe_t *frame = (daliasxframe_t *)(

View file

@ -1771,7 +1771,7 @@ SelectSpawnPoint(edict_t *ent, vec3_t origin, vec3_t angles)
if (!spot)
{
gi.error("Couldn't find spawn point %s\n", game.spawnpoint);
gi.error("Couldn't find spawn point '%s'\n", game.spawnpoint);
}
}
}