HxA_HxA_3D_asset_format_.html

HAX_INCLUDE

HXA_VERSION_API "0.3"

HXA_VERSION_FORMAT 3

HxA_HaX_stores_3_types_of_nodes:__.html

Enum:

HXANodeType

HXA_NT_META_ONLY

=

0

Description: node only containing meta data.

HXA_NT_GEOMETRY

=

1

Description: node containing a geometry mesh, and meta data.

HXA_NT_IMAGE

=

2

Description: node containing a 1D, 2D, 3D, or Cube image, and meta data.

HXA_NT_COUNT

=

3

Description: the number of different nodes that can be stored in the file.

HxA_HaX_stores_layer_data_in_the_fol.html

Enum:

HXALayerDataType

HXA_LDT_UINT8

=

0

Description: 8bit unsigned integer,

HXA_LDT_INT32

=

1

Description: 32bit signed integer

HXA_LDT_FLOAT

=

2

Description: 32bit IEEE 754 floating point value

HXA_LDT_DOUBLE

=

3

Description: 64bit IEEE 754 floating point value

HXA_LDT_COUNT

=

4

Description: number of types supported by layers

HxA_Pixel_data_is_arranged_in_the_fo.html

Enum:

HXAImageType

HXA_IT_CUBE_IMAGE

=

0

Description: 6 sided qube, in the order of: +x, -x, +y, -y, +z, -z.

HXA_IT_1D_IMAGE

=

1

Description: One dimentional pixel data.

HXA_IT_2D_IMAGE

=

2

Description: Two dimentional pixel data.

HXA_IT_3D_IMAGE

=

3

Description: Three dimentional pixel data.

Enum:

HXAMetaDataType

HXA_MDT_INT64

=

0

HXA_MDT_DOUBLE

=

1

HXA_MDT_NODE

=

2

HXA_MDT_TEXT

=

3

HXA_MDT_BINARY

=

4

HXA_MDT_META

=

5

HXA_MDT_COUNT

=

6

HXA_NAME_MAX_LENGTH 256 //

Struct:

value

char name[HXA_NAME_MAX_LENGTH]

Description: name of the meta data value.

HXAMetaDataType type

Description: type of value. Stored in the file as a uint8.

hxa_uint32 array_length

Description: how many values are stored / the length of the stored text string (excluding termination)

union{ hxa_uint64 *int64_value

Description: integer values

double *double_value

Description: double values

hxa_uint32 *node_value

Description: a reference to another node

char *text_value

Description: text string

unsigned char *bin_value

Description: binary data string

void *array_of_meta

Description: Meta structures

value

HxA_Layers_are_arrays_of_data_used_t.html

Struct:

data

char name[HXA_NAME_MAX_LENGTH]

Description: name of the layer. List of predefined names for common usages like uv, reference, blendshapes, weights ...

hxa_uint8 components

Description: 2 for uv, 3 for xyz or rgb, 4 for rgba;

HXALayerDataType type

Description: Stored in the file as a uint8.

union{ hxa_uint8 *uint8_data

hxa_int32 *int32_data

float *float_data

double *double_data

data

HxA_{__vertex_layer_stack.layers[0]..html

Struct:

HXALayerStack

hxa_uint32 layer_count

Description: the number of loayers in a stack.

HXALayer *layers

Description: An array of layers.

HXALayerStack

Description: A file consists of an array of nodes, All noides have meta data. Geometry nodes have geometry, image nodes have pixels

typedef struct{ HXANodeType type

Description: what type of node is this? Stored in the file as a uint8.

hxa_uint32 meta_data_count

Description: how many meta data key/values are stored in the node

HXAMeta *meta_data

Description: array of key/values

union{ struct{ hxa_uint32 vertex_count

Description: number of vertices

HXALayerStack vertex_stack

Description: stack of vertex arrays. the first layer is always the vertex positions

hxa_uint32 edge_corner_count

Description: number of corners

HXALayerStack corner_stack

Description: stack of corner arrays, the first layer is allways a reference array (see below)

HXALayerStack edge_stack

Description: stack of edge arrays

hxa_uint32 face_count

Description: number of polygons

HXALayerStack face_stack

Description: stack of per polygon data.

geometry

struct{ HXAImageType type

Description: type of image

hxa_uint32 resolution[3]

Description: resolytion i X, Y and Z dimention;

HXALayerStack image_stack

Description: the number of values in the stack is equal to the number of pixels depending on resolution

HxA_A_file_consists_of_an_array_of_n.html

Struct:

geometry

HXANodeType type

Description: what type of node is this? Stored in the file as a uint8.

hxa_uint32 meta_data_count

Description: how many meta data key/values are stored in the node

HXAMeta *meta_data

Description: array of key/values

union{ struct{ hxa_uint32 vertex_count

Description: number of vertices

HXALayerStack vertex_stack

Description: stack of vertex arrays. the first layer is always the vertex positions

hxa_uint32 edge_corner_count

Description: number of corners

HXALayerStack corner_stack

Description: stack of corner arrays, the first layer is allways a reference array (see below)

HXALayerStack edge_stack

Description: stack of edge arrays

hxa_uint32 face_count

Description: number of polygons

HXALayerStack face_stack

Description: stack of per polygon data.

geometry

struct{ HXAImageType type

Description: type of image

hxa_uint32 resolution[3]

Description: resolytion i X, Y and Z dimention;

HXALayerStack image_stack

Description: the number of values in the stack is equal to the number of pixels depending on resolution

HxA_the_number_of_values_in_the_stac.html

HAX_MAGIC_NUMBER (*(hxa_uint32)"HaX") // 4290632

HxA_----------------_.html

HXA_CONVENTION_HARD_BASE_VERTEX_LAYER_NAME "vertex"

HXA_CONVENTION_HARD_BASE_VERTEX_LAYER_ID 0

HXA_CONVENTION_HARD_BASE_VERTEX_LAYER_COMPONENTS 3

HXA_CONVENTION_HARD_BASE_CORNER_LAYER_NAME "reference"

HXA_CONVENTION_HARD_BASE_CORNER_LAYER_ID 0

HXA_CONVENTION_HARD_BASE_CORNER_LAYER_COMPONENTS 1

HXA_CONVENTION_HARD_BASE_CORNER_LAYER_TYPE HXA_LDT_INT32

HXA_CONVENTION_HARD_EDGE_NEIGHBOUR_LAYER_NAME "neighbour"

HXA_CONVENTION_HARD_EDGE_NEIGHBOUR_LAYER_TYPE HXA_LDT_INT32

HxA_geometry_layers_.html

HXA_CONVENTION_SOFT_LAYER_SEQUENCE0 "sequence"

HXA_CONVENTION_SOFT_LAYER_NAME_UV0 "uv"

HXA_CONVENTION_SOFT_LAYER_NORMALS "normal"

HXA_CONVENTION_SOFT_LAYER_BINORMAL "binormal"

HXA_CONVENTION_SOFT_LAYER_TANGENT "tangent"

HXA_CONVENTION_SOFT_LAYER_COLOR "color"

HXA_CONVENTION_SOFT_LAYER_CREASES "creases"

HXA_CONVENTION_SOFT_LAYER_SELECTION "select"

HXA_CONVENTION_SOFT_LAYER_SKIN_WEIGHT "skining_weight"

HXA_CONVENTION_SOFT_LAYER_SKIN_REFERENCE "skining_reference"

HXA_CONVENTION_SOFT_LAYER_SKIN_REFERENCE "skining_reference"

HXA_CONVENTION_SOFT_LAYER_BLENDSHAPE "blendshape"

HXA_CONVENTION_SOFT_LAYER_ADD_BLENDSHAPE "addblendshape"

HXA_CONVENTION_SOFT_LAYER_MATERIAL_ID "material"

HxA_Image_layers_.html

HXA_CONVENTION_SOFT_ALBEDO "albedo"

HXA_CONVENTION_SOFT_LIGHT "light"

HXA_CONVENTION_SOFT_DISPLACEMENT "displacement"

HXA_CONVENTION_SOFT_DISTORTION "distortion"

HXA_CONVENTION_SOFT_AMBIENT_OCCLUSION "ambient_occlusion"

HxA_tags_layers_.html

HXA_CONVENTION_SOFT_NAME "name"

HXA_CONVENTION_SOFT_TRANSFORM "transform"