LP23.com
Home Store Support Projects Account
Neurosis Engine - Model file format

The following provides information on how the Neurosis engine saves model data. As such, any game or program using the engine will store the information the same (i.e. Doodles 3D). The file used to save the model data ends with extension .dat and is stored in a normal text file. This is to provide easy access for modifying the model data manually.

-----------------------

1st line: version number of the save/load system (currently 0.5)
2nd line: total textures, total points, total triangles

Next is the texture list - if greater than 0, they will be listed one per line.

Following the texture list is the point information which contains:
  • point number
  • x position
  • y position
  • z position
The last group is triangle information. Each line contains:
  • triangle number
  • texture to use (-1 is none)
  • mesh index (to group triangles together)
  • point 1
  • point 2
  • point 3
  • x texture coordinate for point 1
  • y texture coordinate for point 1
  • x texture coordinate for point 2
  • y texture coordinate for point 2
  • x texture coordinate for point 3
  • y texture coordinate for point 3
Example

This section provides the paddle model from Spherical Vengeance as an example. The model contains 1 texture (paddle.bmp), 8 points and 10 triangles with no mesh indices and all triangles using the given texture.

-----------------------

0.5

1 8 10

paddle.bmp

0 -20.000000 10.000000 0.000000
1 -20.000000 -10.000000 0.000000
2 20.000000 10.000000 0.000000
3 20.000000 -10.000000 0.000000
4 -20.000000 10.000000 10.000000
5 -20.000000 -10.000000 10.000000
6 20.000000 10.000000 10.000000
7 20.000000 -10.000000 10.000000

0 0 0 5 4 0 0.000000 0.750000 1.000000 0.750000 1.000000 0.250000
1 0 0 0 1 5 1.000000 0.250000 0.000000 0.250000 0.000000 0.750000
2 0 0 2 6 7 1.000000 0.250000 1.000000 0.750000 0.000000 0.750000
3 0 0 7 3 2 0.000000 0.750000 0.000000 0.250000 1.000000 0.250000
4 0 0 5 1 3 0.000000 0.750000 0.000000 0.250000 1.000000 0.250000
5 0 0 3 7 5 1.000000 0.250000 1.000000 0.750000 0.000000 0.750000
6 0 0 6 2 0 1.000000 0.750000 1.000000 0.250000 0.000000 0.250000
7 0 0 0 4 6 0.000000 0.250000 0.000000 0.750000 1.000000 0.750000
8 0 0 7 6 4 1.000000 0.000000 1.000000 1.000000 0.000000 1.000000
9 0 0 4 5 7 0.000000 1.000000 0.000000 0.000000 1.000000 0.000000

© 2014 Luigi Pino. All rights reserved. Privacy Policy | Links