added example files

git-svn-id: svn://svn.icculus.org/twilight/trunk/dpmodel@5946 d7cf8633-e32d-0410-b094-e92efae38249
This commit is contained in:
havoc 2006-02-05 20:29:04 +00:00
parent faf3d84d6e
commit fcff514085
4 changed files with 84 additions and 0 deletions

BIN
box.dpm Normal file

Binary file not shown.

14
box.h Normal file
View file

@ -0,0 +1,14 @@
/*
Generated header file for box
This file contains frame number definitions for use in code referencing the model, to make code more readable and maintainable.
*/
#ifndef MODEL_BOX_H
#define MODEL_BOX_H
#define MODEL_BOX_BOX_0 0
#define MODEL_BOX_BOX_START 0
#define MODEL_BOX_BOX_END 1
#define MODEL_BOX_BOX_LENGTH 1
#endif /*MODEL_BOX_H*/

58
box.smd Normal file
View file

@ -0,0 +1,58 @@
version 1
nodes
0 "joint1" -1
end
skeleton
time 0
0 0.000000 1.000000 -1.000000 1.570796 0.000000 0.000000
end
triangles
boxtexture.bmp
0 -19.750000 -18.250000 12.250000 0.000000 -1.000000 0.000000 0.000000 1.000000
0 -19.750000 -18.250000 -16.250000 0.000000 -1.000000 0.000000 0.000000 0.000000
0 19.750000 -18.250000 12.250000 0.000000 -1.000000 0.000000 1.000000 1.000000
boxtexture.bmp
0 -19.750000 -18.250000 -16.250000 0.000000 -1.000000 0.000000 0.000000 0.000000
0 19.750000 -18.250000 -16.250000 0.000000 -1.000000 0.000000 1.000000 0.000000
0 19.750000 -18.250000 12.250000 0.000000 -1.000000 0.000000 1.000000 1.000000
boxtexture.bmp
0 19.750000 -18.250000 12.250000 1.000000 0.000000 0.000000 0.000000 1.000000
0 19.750000 -18.250000 -16.250000 1.000000 0.000000 0.000000 0.000000 0.000000
0 19.750000 21.250000 12.250000 1.000000 0.000000 0.000000 1.000000 1.000000
boxtexture.bmp
0 19.750000 -18.250000 -16.250000 1.000000 0.000000 0.000000 0.000000 0.000000
0 19.750000 21.250000 -16.250000 1.000000 0.000000 0.000000 1.000000 0.000000
0 19.750000 21.250000 12.250000 1.000000 0.000000 0.000000 1.000000 1.000000
boxtexture.bmp
0 19.750000 21.250000 12.250000 0.000000 1.000000 0.000000 0.000000 1.000000
0 19.750000 21.250000 -16.250000 0.000000 1.000000 0.000000 0.000000 0.000000
0 -19.750000 21.250000 12.250000 0.000000 1.000000 0.000000 1.000000 1.000000
boxtexture.bmp
0 19.750000 21.250000 -16.250000 0.000000 1.000000 0.000000 0.000000 0.000000
0 -19.750000 21.250000 -16.250000 0.000000 1.000000 0.000000 1.000000 0.000000
0 -19.750000 21.250000 12.250000 0.000000 1.000000 0.000000 1.000000 1.000000
boxtexture.bmp
0 -19.750000 21.250000 12.250000 -1.000000 0.000000 0.000000 0.000000 1.000000
0 -19.750000 21.250000 -16.250000 -1.000000 0.000000 0.000000 0.000000 0.000000
0 -19.750000 -18.250000 12.250000 -1.000000 0.000000 0.000000 1.000000 1.000000
boxtexture.bmp
0 -19.750000 21.250000 -16.250000 -1.000000 0.000000 0.000000 0.000000 0.000000
0 -19.750000 -18.250000 -16.250000 -1.000000 0.000000 0.000000 1.000000 0.000000
0 -19.750000 -18.250000 12.250000 -1.000000 0.000000 0.000000 1.000000 1.000000
boxtexture.bmp
0 -19.750000 21.250000 12.250000 0.000000 0.000000 1.000000 0.000000 1.000000
0 -19.750000 -18.250000 12.250000 0.000000 0.000000 1.000000 0.000000 0.000000
0 19.750000 21.250000 12.250000 0.000000 0.000000 1.000000 1.000000 1.000000
boxtexture.bmp
0 -19.750000 -18.250000 12.250000 0.000000 0.000000 1.000000 0.000000 0.000000
0 19.750000 -18.250000 12.250000 0.000000 0.000000 1.000000 1.000000 0.000000
0 19.750000 21.250000 12.250000 0.000000 0.000000 1.000000 1.000000 1.000000
boxtexture.bmp
0 -19.750000 -18.250000 -16.250000 0.000000 0.000000 -1.000000 0.000000 1.000000
0 -19.750000 21.250000 -16.250000 0.000000 0.000000 -1.000000 0.000000 0.000000
0 19.750000 -18.250000 -16.250000 0.000000 0.000000 -1.000000 1.000000 1.000000
boxtexture.bmp
0 -19.750000 21.250000 -16.250000 0.000000 0.000000 -1.000000 0.000000 0.000000
0 19.750000 21.250000 -16.250000 0.000000 0.000000 -1.000000 1.000000 0.000000
0 19.750000 -18.250000 -16.250000 0.000000 0.000000 -1.000000 1.000000 1.000000
end

12
box.txt Normal file
View file

@ -0,0 +1,12 @@
# save the model as box.dpm
model box
# move the model this much before saving
origin 0 0 0
# rotate the model 0 degrees around vertical
rotate 0
# scale the model by this amount, 0.5 would be half size and 2.0 would be doule size
scale 1
# load the mesh file, this is stored into the dpm as frame 0
scene box.smd