Supported 3D formats

GMOD format overview:

GMOD Golgotha Model files are used in many games.


GMOD file characteristics:


GMOD format references and information:

GMOD format information and examples from John Burkardt


GMOD support notes inside IVCon source code:

 Author:  Zik Saleeba (zik@zikzak.net)
 Change: 02 Mar 2007 Tomasz Lis adjusted to new IVCONV class, minor fixes

 A list of supported elements follows. Please modify if you'll enhance something.
 Format support note - reading:
 - Max vertices 65535
 - Max faces 65535, max face order 4
 - No meshes support
 - Max materials/textures 65535
 - Restricted materials support - no colors, no alpha, only one texture
 - Texture UV supported (per face)
 - No camera/view support
 - No Environment or lights support
 - No shapes/lines support
 Format support note - writing:
 - Max vertices 65535
 - Max faces 65535, max face order 4
 - No meshes support
 - Max materials/textures 65535
 - Restricted materials support - no colors, no alpha, only one texture
 - Texture UV supported (per face)
 - No camera/view support
 - No Environment or lights support
 - No shapes/lines support


golgotha GMOD file format:


FILE HEADER
w32     magic number           f9 fa 63 1e
w32     number of sections
[ number of sections
w32     section id
w32     section offset
]

TEXTURE NAME SECTION - section id = 0x13 (19)
w16     number of faces
[ number of faces
w16     texture name length
[ texture name length
w8      texture name character
]
]

MODEL QUADS SECTION - section id = 0x12 (18)
w16     number of faces
[ number of faces
[ four vertices
w16     vertex index
float   xpos (0.0-1.0)
float   ypos (0.0-1.0)
]
float   scale
w16     flags
float   xnormal     (normal should be normalised)
float   ynormal
float   znormal
]

VERTEX ARRAY SECTION - section id = 0x14 (20)
w16     number of vertices
w16     number of animations
w16     length of animation name
[ length of animation name
w8      animation name character
]
w16     number of frames in animation
[ number of frames in animation
[ number of vertices
float   xpos
float   ypos
float   zpos
float   xnormal
float   ynormal
float   znormal
]
]


Copying and copyrights:
   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; either version 2 of the License, or
   (at your option) any later version.