From bb0adb0b2213c9d10ee7e357c1ce86e5fe2f0361 Mon Sep 17 00:00:00 2001 From: Jan Date: Sun, 1 Aug 2021 01:13:01 +0200 Subject: [PATCH] Switch iw4 xmodel axis to be Y Up and -Z Forward --- src/ObjWriting/Game/IW4/AssetDumpers/AssetDumperXModel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ObjWriting/Game/IW4/AssetDumpers/AssetDumperXModel.cpp b/src/ObjWriting/Game/IW4/AssetDumpers/AssetDumperXModel.cpp index 32161cb4..30bc2cfb 100644 --- a/src/ObjWriting/Game/IW4/AssetDumpers/AssetDumperXModel.cpp +++ b/src/ObjWriting/Game/IW4/AssetDumpers/AssetDumperXModel.cpp @@ -108,7 +108,7 @@ void AssetDumperXModel::DumpObjLod(AssetDumpingContext& context, XAssetInfovertCount; vi++) { const auto* vertex = &surf->verts0[vi]; - stream << "v " << vertex->xyz[0] << " " << vertex->xyz[1] << " " << vertex->xyz[2] << "\n"; + stream << "v " << vertex->xyz[0] << " " << vertex->xyz[2] << " " << -vertex->xyz[1] << "\n"; } stream << "\n"; @@ -130,7 +130,7 @@ void AssetDumperXModel::DumpObjLod(AssetDumpingContext& context, XAssetInfonormal, &normalVec); - stream << "vn " << normalVec[0] << " " << normalVec[1] << " " << normalVec[2] << "\n"; + stream << "vn " << normalVec[0] << " " << normalVec[2] << " " << -normalVec[1] << "\n"; } stream << "\n";