Skip to content

Commit

Permalink
fix: wrong tangent indices
Browse files Browse the repository at this point in the history
  • Loading branch information
noname0310 committed Apr 6, 2023
1 parent 09f5266 commit afeaaa5
Showing 1 changed file with 15 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -902,10 +902,11 @@ bool FVmdImporter::ImportVmdCameraCenterTransform(
{
FTangentAccessIndices LocationXTangentAccessIndices;
{
LocationXTangentAccessIndices.ArriveTangentX = 1;
LocationXTangentAccessIndices.ArriveTangentY = 3;
LocationXTangentAccessIndices.LeaveTangentX = 0;
LocationXTangentAccessIndices.LeaveTangentY = 2;
// mmd z axis tangent value indices
LocationXTangentAccessIndices.ArriveTangentX = 9;
LocationXTangentAccessIndices.ArriveTangentY = 11;
LocationXTangentAccessIndices.LeaveTangentX = 8;
LocationXTangentAccessIndices.LeaveTangentY = 10;
}

ImportCameraSingleChannel(
Expand All @@ -929,10 +930,11 @@ bool FVmdImporter::ImportVmdCameraCenterTransform(
{
FTangentAccessIndices LocationYTangentAccessIndices;
{
LocationYTangentAccessIndices.ArriveTangentX = 5;
LocationYTangentAccessIndices.ArriveTangentY = 7;
LocationYTangentAccessIndices.LeaveTangentX = 4;
LocationYTangentAccessIndices.LeaveTangentY = 6;
// mmd x axis tangent value indices
LocationYTangentAccessIndices.ArriveTangentX = 1;
LocationYTangentAccessIndices.ArriveTangentY = 3;
LocationYTangentAccessIndices.LeaveTangentX = 0;
LocationYTangentAccessIndices.LeaveTangentY = 2;
}

ImportCameraSingleChannel(
Expand All @@ -956,10 +958,11 @@ bool FVmdImporter::ImportVmdCameraCenterTransform(
{
FTangentAccessIndices LocationZTangentAccessIndices;
{
LocationZTangentAccessIndices.ArriveTangentX = 9;
LocationZTangentAccessIndices.ArriveTangentY = 11;
LocationZTangentAccessIndices.LeaveTangentX = 8;
LocationZTangentAccessIndices.LeaveTangentY = 10;
// mmd y axis tangent value indices
LocationZTangentAccessIndices.ArriveTangentX = 5;
LocationZTangentAccessIndices.ArriveTangentY = 7;
LocationZTangentAccessIndices.LeaveTangentX = 4;
LocationZTangentAccessIndices.LeaveTangentY = 6;
}

ImportCameraSingleChannel(
Expand Down

0 comments on commit afeaaa5

Please sign in to comment.