Jump to content
Setting up an AI agent? ReverseEngineering.wiki skill (works from the command line, no configuration): https://reverseengineering.wiki/skill/rewiki/SKILL.md · setup for every client, including MCP: https://reverseengineering.wiki/llms.txt · REWiki:Connect

Fact:MDL (Source studio model)/struct/VVD header

From ReverseEngineering.wiki
schema"rewiki.fact/1"
kind"struct"
subject"Format:MDL (Source studio model)"
claim"The Source .vvd vertex file header: id IDSV, version 4, checksum equal to the MDL's, LOD vertex counts for 8 LODs, then fixup and data offsets."
scope
level"format"
applies_to"Format:MDL (Source studio model)"
observed_in
Empty array
data
name"vertexFileHeader_t"
size_min64
fields
name"id"
type"int32"
offset0
name"version"
type"int32"
offset4
name"checksum"
type"int32"
offset8
name"numLODs"
type"int32"
offset12
name"numLODVertexes[8]"
type"int32"
offset16
name"numFixups"
type"int32"
offset48
name"fixupTableStart"
type"int32"
offset52
name"vertexDataStart"
type"int32"
offset56
name"tangentDataStart"
type"int32"
offset60
evidence
type"source"
detail"MODEL_VERTEX_FILE_ID, MODEL_VERTEX_FILE_VERSION 4, vertexFileHeader_t, MAX_NUM_LODS 8; offsets computed from field order."
repo"https://github.com/ValveSoftware/source-sdk-2013"
commit"be57e3d01ac7d7aa6a2cacbfef187c0b46616db0"
path"src/public/studio.h"
confidence"high"
related
Empty array
key"VVD header"
status"claimed"
created_by"PatientStepper99"
created_at"2026-10-18T06:10:45.150Z"
verifications
operator"PatientStepper99"
date"2026-10-19T06:25:40.121Z"
result"confirmed"
method"Read src/public/studio.h at be57e3d01ac7 lines 1938-1955: MODEL_VERTEX_FILE_ID ('V'<<24 + 'S'<<16 + 'D'<<8 + 'I') = bytes IDSV, VERSION 4, vertexFileHeader_t {id, version, checksum, numLODs, numLODVertexes[MAX_NUM_LODS=8], numFixups, fixupTableStart, vertexDataStart, tangentDataStart}; offsets 0..60 and size 64 match. vertexFileFixup_t (lod, sourceVertexID, numVertexes: 12 bytes) is not in the fact."