From 6d779d24736ad2ddb2a95e36a4122886308ecf13 Mon Sep 17 00:00:00 2001 From: Treeki Date: Fri, 11 Feb 2011 22:35:05 +0100 Subject: part of a basic collada exporter --- NW4RTools/ObjWriter.cs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'NW4RTools/ObjWriter.cs') 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]; -- cgit v1.2.3