Geometry (Donkey Kong Country Returns): Difference between revisions

m
no edit summary
>Aruki
No edit summary
>Aruki
mNo edit summary
Line 5: Line 5:
__TOC__
__TOC__


== Geometry ==
== Format ==


An important thing to note off the bat is that both CMDL and MREA files are split up into a number of 32-byte-aligned ''sections''; their respective headers both declare a section count, and list the sizes of each section contained in the file. This is required to navigate to different parts of the file, and is required in order to read the geometry data correctly. Sections are generally split based on the type of data contained in them, so one section might contain vertex coordinates, while another contains a surface (submesh) definition. For the purposes of this article, each subheader will mark the start of a new section; use that as your cue to advance to the next one. Check the [[CMDL (Donkey Kong Country Returns)|CMDL]] or [[MREA (Metroid Prime 3)|MREA]] pages for more info on how the sections work.
An important thing to note off the bat is that both CMDL and MREA files are split up into a number of 32-byte-aligned ''sections''; their respective headers both declare a section count, and list the sizes of each section contained in the file. This is required to navigate to different parts of the file, and is required in order to read the geometry data correctly. Sections are generally split based on the type of data contained in them, so one section might contain vertex coordinates, while another contains a surface (submesh) definition. For the purposes of this article, each subheader will mark the start of a new section; use that as your cue to advance to the next one. Check the [[CMDL (Donkey Kong Country Returns)|CMDL]] or [[MREA (Metroid Prime 3)|MREA]] pages for more info on how the sections work.
Anonymous user