You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have verified this issue is present in the develop branch
I have searched open and closed issues to ensure it has not already been reported.
MonoGame Version
Develop
Which MonoGame platform are you using?
N/A
Operating System
ALl
Description
The function MeshHelper.CalculateNormals has an issue in generating the Normals for models, resulting in a failed Unit Test in the MonoGame.Tools solution.
The issue relates in to the creation of a VertextChannel array for the Geometry normals (Line 130 - MeshHelper)
Steps to Reproduce
Clone the MonoGame repository - develop
Open the MonoGame.Tools. solution
Run the Unit Tests
Observe the failure of the TestMergePositionsMultipleGeometries test
(Run in Bebug to see the specific failure)
Minimal Example Repo
No response
Expected Behavior
MeshHelper.CalculateNormals should complete successfully
Resulting Behavior
TestMergePositionsMultipleGeometries test failure
Files
No response
The text was updated successfully, but these errors were encountered:
SimonDarksideJ
changed the title
TestFailutr: TestMergePositionsMultipleGeometries - Index was outside the bounds of the array.
TestFailure: TestMergePositionsMultipleGeometries - Index was outside the bounds of the array.
Jan 28, 2024
You can test further by updating the MathHelper.CalculateTangentFrames and changing the Normals check from a Return (skip processing missing normals) to the commented-out line MeshHelper.CalculateNormals(geom, true); (Generate missing normals)
Prerequisites
develop
branchMonoGame Version
Develop
Which MonoGame platform are you using?
N/A
Operating System
ALl
Description
The function
MeshHelper.CalculateNormals
has an issue in generating the Normals for models, resulting in a failed Unit Test in the MonoGame.Tools solution.The issue relates in to the creation of a VertextChannel array for the Geometry normals (Line 130 -
MeshHelper
)Steps to Reproduce
TestMergePositionsMultipleGeometries
test(Run in Bebug to see the specific failure)
Minimal Example Repo
No response
Expected Behavior
MeshHelper.CalculateNormals should complete successfully
Resulting Behavior
TestMergePositionsMultipleGeometries
test failureFiles
No response
The text was updated successfully, but these errors were encountered: