3
0 0x0003 1 0x0004 2 0x0007 3 0x0000 4 0x000A 127 0xFFFF Object Node Table 0 0x0108 0x02CE 0x08 0x00 1 0x0115 0x01F1 0x10 0x00 2 0x0119 0x012A 0x13 0x18 3 0x012A 0x0135 0x03 0x74 4 0x0130 0x0229 0x41 0x02 5 0x013C 0x01EE 0x03 0x62 6 0x0142 0x027C 0x03 0x59 7 0x014F 0x01F4 0x8C 0x00 8 0x0159 0x03C0 0x65 0x00 9 0x0165 0x0288 0x03 0x42 10 0x016D 0x029A 0x17 0x01 NULL (free) Object Layout Data X pos Y pos Class Membe Object Node Manager ProSonic Engine

Object Node Table

Embed Size (px)

DESCRIPTION

Object Node Manager. Object Node Table. Object Layout Data. X pos Y pos Class Member. NULL (free). ProSonic Engine. NODES: 0 – Cylinder1 – Moon2 – Donut 3 – Diamond4 – FREE5 – FREE. - PowerPoint PPT Presentation

Citation preview

Page 1: Object Node Table

0 0x0003

1 0x0004

2 0x0007

3 0x0000

4 0x000A

127 0xFFFF

Object Node Table

0 0x0108 0x02CE 0x08 0x00

1 0x0115 0x01F1 0x10 0x00

2 0x0119 0x012A 0x13 0x18

3 0x012A 0x0135 0x03 0x74

4 0x0130 0x0229 0x41 0x02

5 0x013C 0x01EE 0x03 0x62

6 0x0142 0x027C 0x03 0x59

7 0x014F 0x01F4 0x8C 0x00

8 0x0159 0x03C0 0x65 0x00

9 0x0165 0x0288 0x03 0x42

10 0x016D 0x029A 0x17 0x01

NULL (free)

Object Layout DataX pos Y pos Class Member

Object Node Manager

ProSonic Engine

Page 2: Object Node Table

Within object scope, shown on screen

Within object scope, outside of screen

Outside object scope

The moon and donut are inside the playing field. These objects are visible to the player and are stored in the ONT (Object Node Table).

The cylinder and diamond are not inside the playing field, but they are inside the object scope. This means that even though they aren’t visible, they remain in the ONT.

The cuboid is outside the object scope entirely, so no reference to it will be fount in the ONT.

Notice the nodes. 4 and 5 are free, while 0-3 have references.

NODES:0 – Cylinder 1 – Moon 2 – Donut3 – Diamond 4 – FREE 5 – FREE

ProSonic Engine

Page 3: Object Node Table

Within object scope, shown on screen

Within object scope, outside of screen

Outside object scope

Notice now that the cylinder is no longer inside the object scope. It’s node in the ONT is freed, making it available for another object to take.

The cuboid has entered the object scope, so the first free node in the ONT will be issued a reference to the cuboid. Node 0 is freed since the cylinder is no longer in the object scope. However, now that a new object has entered the scope, it searches for the first free node. Node 0 now references the cuboid.

NODES:0 – Cuboid 1 – Moon 2 – Donut3 – Diamond 4 – FREE 5 – FREE

ProSonic Engine