Skip to content

Instantly share code, notes, and snippets.

@brecert
Created April 12, 2022 00:07
Show Gist options
  • Save brecert/02ad1ab61a7849b83719793efba597d4 to your computer and use it in GitHub Desktop.
Save brecert/02ad1ab61a7849b83719793efba597d4 to your computer and use it in GitHub Desktop.
meta:
id: plymodel
endian: le
file-extension: plymodel
imports:
- /image/png
# strings are prefixed with thier length beforehand, and *do not* need to be aligned.
seq:
- id: magic
contents: MODL
- id: version
type: u4
- id: unk
size: 4
# (same for neweer models, may be the version it was created with)
- id: unk2
size: 4
- size: 5
- id: draw_calls
type: section
- id: materials
type: section
- id: bones
type: section
- id: animations
type: section
- id: index_buffer
type: section
- id: vertex_buffer
type: section
- id: textures
type: section
- id: min
type: section
- id: max
type: section
types:
string:
seq:
- id: len
type: u2
- id: string
type: str
size: len
encoding: UTF-8
section:
seq:
- id: pos
type: u4
- id: size
type: u4
instances:
data:
pos: pos
size: size
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment