Graphic Tools Guide3DME User's Manual
Back | ■
General-purpose 3D modeling tool user's manual

4. data format


■ MDB format

This is a binary format of the MDL format information output by 3DME.

● Structure
PDATA * (MAP_SIZE_X * MAP_SIZE_Y information)
Address of map number 0
Address of map number 1
Address of map number 2
Address of map number 3
:
:
:
Address of map number n-1
Null map object data
Object data of map 0
Object data of map No. 1
Object data of map No. 2
Object data of map No. 3
:
:
:
Object data of map n-1
n = MAP_SIZE_X * MAP_SIZE_Y.

● Note

Basically, it refers to the PDATA * part, refers to which address contains PDATA (polygon information), and outputs that address with slPutPolygon.

■ Collision format

It automatically divides by grit so that the information can be recognized.

● Information that can be obtained

  1. Polygon centroid coordinates Used to calculate which polygon you are standing on.

  2. Polygon normal Vector Used to calculate your own slope and the gravity of the slope on the slope.

  3. Acquisition of attribute flags for each polygon such as polygon attribute number "road" and "grassland"

  4. Acquisition of group number in Gurupu number polygon unit of polygon

● Header information for acquiring collision information
typedef struct {
     VECTOR norm; / * normal vector * /
     Uint16 att; / * Genus * /
     Uint16 gru; / * Group * /
     FIXED cen_x; / * Center * /
     FIXED cen_y; / * Center * /
     FIXED cen_z; / * Center * /
} COLLISON;

typedef struct {
     COLLISON * cotbl; / * Polygon definition table * /
     Uint32 nbCo; / * Number of polygons * /
} CDATA;


Back | ■
Graphic Tools Guide3DME User's Manual
Copyright SEGA ENTERPRISES, LTD ,. 1997