summaryrefslogtreecommitdiff
path: root/NW4RTools/ObjWriter.cs
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2011-02-11 22:35:05 +0100
committerTreeki <treeki@gmail.com>2011-02-11 22:35:05 +0100
commit6d779d24736ad2ddb2a95e36a4122886308ecf13 (patch)
tree395e6bf4e53d16d416b880d03d6398bbfa6f0ecd /NW4RTools/ObjWriter.cs
parentf6f657812c1973172d25d7895aabb37f900071a7 (diff)
downloadnw4rtools-6d779d24736ad2ddb2a95e36a4122886308ecf13.tar.gz
nw4rtools-6d779d24736ad2ddb2a95e36a4122886308ecf13.zip
part of a basic collada exporter
Diffstat (limited to '')
-rw-r--r--NW4RTools/ObjWriter.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/NW4RTools/ObjWriter.cs b/NW4RTools/ObjWriter.cs
index 297ae58..592347b 100644
--- a/NW4RTools/ObjWriter.cs
+++ b/NW4RTools/ObjWriter.cs
@@ -112,6 +112,10 @@ namespace NW4RTools {
vs.SetDesc(vtxDesc1, vtxDesc2);
vs.SetAttrFmt(vtxAttr1, vtxAttr2, vtxAttr3);
+ // get the Matrix to use
+ // todo: how to apply this?!
+ Matrix m = CurrentModel.Nodes[CurrentModel.MatrixIDtoNodeID[shape.MatrixID]].NodeMatrix;
+
// now parse the second DisplayList
int posOffset = VtxPosOffsets[shape.PosData];