3dia engine - Scene .scn file format

The scene definition is a text file with the following structure:

The header
camera position,
angle vectors
layer file name
such as:
-1549.642 -11.980 -415.308
0.000 2.421 0.000
isle.lay

Then list of sounds file names with index
such as:
snd 0 1.WAV
snd 1 g_1.WAV
snd 2 hit.WAV

Then list of model file names
such as:
mdl 0 Lcloud.mdl
mdl 0 topstair.mdl
mdl 0 Shore.mdl

Then list of entities
An entity is an actor, an object, a weapon, an ambient sound or anything that can be placed in the world.
Each entity definition begins with ent world, then type number and name, ID, and a parent ID is defined.
Parent ID is 0 if no parent.
Then atributes listed, each line is a name value pair.
The attribute lines are closed with a line of - - text.
Example entity:
ent 9 stakes:21 2724 0
on 1
place 0
stat 1
px 212.8429
py 3.6800
pz 984.6465
rx 0.0000
ry -20.6265
rz 0.0000
script 0
ver 10116
lod0 stakes.mdl
loddist 250.0000
anilen 0
front 0
pose 65535
sx 1000
sy 1000
sz 1000
shadow 0
colli POLY
burn 0
- -

Entity types:
0 Ent
1 Ambient
2 Object
3 Object type *
4 Actor
5 Actor type *
6 Boss
7 Player
8 Waypnt
9 Piece
10 Trigger
11 Global

* Actor and Object types defines models, and common properties for similar objects
such as horses, keys, doors, tables.

Attributes
Attribute names are specific to entity types.
For examples see game.scn.


Home