From fcff5140858a9e7b42977a89109b44e83935b36f Mon Sep 17 00:00:00 2001 From: havoc Date: Sun, 5 Feb 2006 20:29:04 +0000 Subject: [PATCH] added example files git-svn-id: svn://svn.icculus.org/twilight/trunk/dpmodel@5946 d7cf8633-e32d-0410-b094-e92efae38249 --- box.dpm | Bin 0 -> 1540 bytes box.h | 14 ++++++++++++++ box.smd | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ box.txt | 12 ++++++++++++ 4 files changed, 84 insertions(+) create mode 100644 box.dpm create mode 100644 box.h create mode 100644 box.smd create mode 100644 box.txt diff --git a/box.dpm b/box.dpm new file mode 100644 index 0000000000000000000000000000000000000000..5daf47ec54836ed99a50f85913fcd1a83c70cc32 GIT binary patch literal 1540 zcmd5+Jxc>Y5S>eMIlnc2M1O{YeOOH@BLfmUU=DUJA_0V$jkxnM1>ZSzY6qm z?s(IA1b!#__Fr(^W1VUyLv>5JN;EDgxYooW1?ndG5c?#!r+YJ@4r~5eN8Dk}>APed zmqxWHi0_k6&bu`6MKX*ZDF2g2*0ClAsA<;7kEml4QltAU{J1pIk4q!{h&!x&^uL53 zmqz|~mqzy4rICKvL?yCTbj*BXX^nnAss3bYQg1A+;XX^x>|hXSANKRDKb%NwvfgT@ zM)WzOj=fX&#CqjuxfRGg$^Su~=No3Bo^yG_3y3~YG%+xI3UL~kF>%&#o?r98f{BZU nFCmtIWfNBn$Bd&jplss0;RwH9=^pdR?WgY1AR70dHFoa{#mDE6 literal 0 HcmV?d00001 diff --git a/box.h b/box.h new file mode 100644 index 0000000..ca2ad75 --- /dev/null +++ b/box.h @@ -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*/ diff --git a/box.smd b/box.smd new file mode 100644 index 0000000..41b9db3 --- /dev/null +++ b/box.smd @@ -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 diff --git a/box.txt b/box.txt new file mode 100644 index 0000000..cc5dd66 --- /dev/null +++ b/box.txt @@ -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 +