Skip to content

Commit

Permalink
MagicaVoxel transforms are Row major, System.Numerics.Matrix4x4 is co…
Browse files Browse the repository at this point in the history
…lumn major. Now rotations are working for 2kTerrain.vox.

cars.vox has 32 layers, even though the default is 16. Make Layers a Dictionary instead so we can handle any number.
Tweak colors on Axes.vox to make it easier to test rotations.
  • Loading branch information
Arlorean committed Jun 9, 2023
1 parent 047c7cb commit 36a928f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Binary file modified Voxels.CommandLine/Axes.vox
Binary file not shown.
3 changes: 2 additions & 1 deletion Voxels.Test/TestMagicaVoxel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,10 @@ public void TestCars() {
Assert.AreEqual(3132, magicaVoxel.Models[0].Count);
Assert.AreEqual(3235, magicaVoxel.Models[1].Count);

Assert.AreEqual(32, magicaVoxel.Layers.Count); // Not sure how this got created since the default layer count is 16

Assert.AreEqual(3132 + 3235, magicaVoxel.Flatten().Count);
}
}

}
}

0 comments on commit 36a928f

Please sign in to comment.