Hi!
I've some problems with the "URuntimeMeshLibrary::CalculateTangentsForMesh" function...
I have each variables declared as below:
TArray<int32> Triangles;
TArray<FVector2D> UV0;
TArray<FVector> Normals;
TArray<FRuntimeMeshTangent> Tangents;
TArray<FColor> VertexColors;
// code to fill the arrays
URuntimeMeshLibrary::CalculateTangentsForMesh(Vertices, Triangles,UV0, Normals, Tangents);
when I call the method to calculate tangents and normals the engine chash, and I get this error.
Assertion failed: UV1s && UV1s->Num() > CurrentPosition [File:d:\build\++portal+main+full\sync\localbuilds\plugintemp\hostproject\plugins\runtimemeshcomponent\source\runtimemeshcomponent\public\RuntimeMeshBuilder.h] [Line: 786]
KERNELBASE
UE4Editor_Core
UE4Editor_Core
UE4Editor_Core
UE4Editor_RuntimeMeshComponent!FRuntimeMeshComponentVerticesBuilder::GetUV() [d:\build\++portal+main+full\sync\localbuilds\plugintemp\hostproject\plugins\runtimemeshcomponent\source\runtimemeshcomponent\public\runtimemeshbuilder.h:787]
UE4Editor_RuntimeMeshComponent!URuntimeMeshLibrary::CalculateTangentsForMesh() [d:\build\++portal+main+full\sync\localbuilds\plugintemp\hostproject\plugins\runtimemeshcomponent\source\runtimemeshcomponent\private\runtimemeshlibrary.cpp:243]
UE4Editor_RuntimeMeshComponent!URuntimeMeshLibrary::CalculateTangentsForMesh() [d:\build\++portal+main+full\sync\localbuilds\plugintemp\hostproject\plugins\runtimemeshcomponent\source\runtimemeshcomponent\private\runtimemeshlibrary.cpp:328]
UE4Editor_Mockingbird_9502!ASimpleTerrainGeneration::GenerateMesh() [c:\agus\projects\tesis\prototipo\mockingbird\source\mockingbird\private\terraingenerators\simpleterraingeneration.cpp:139]
UE4Editor_Engine
UE4Editor_Engine
UE4Editor_Engine
UE4Editor_Engine
UE4Editor_Engine
UE4Editor_Engine
UE4Editor_UnrealEd
UE4Editor_UnrealEd
UE4Editor_UnrealEd
UE4Editor_UnrealEd
UE4Editor_UnrealEd
UE4Editor
UE4Editor
UE4Editor
UE4Editor
UE4Editor
kernel32
ntdll
Anyone can helpme?
I've some problems with the "URuntimeMeshLibrary::CalculateTangentsForMesh" function...
I have each variables declared as below:
TArray<int32> Triangles;
TArray<FVector2D> UV0;
TArray<FVector> Normals;
TArray<FRuntimeMeshTangent> Tangents;
TArray<FColor> VertexColors;
// code to fill the arrays
URuntimeMeshLibrary::CalculateTangentsForMesh(Vertices, Triangles,UV0, Normals, Tangents);
when I call the method to calculate tangents and normals the engine chash, and I get this error.
Assertion failed: UV1s && UV1s->Num() > CurrentPosition [File:d:\build\++portal+main+full\sync\localbuilds\plugintemp\hostproject\plugins\runtimemeshcomponent\source\runtimemeshcomponent\public\RuntimeMeshBuilder.h] [Line: 786]
KERNELBASE
UE4Editor_Core
UE4Editor_Core
UE4Editor_Core
UE4Editor_RuntimeMeshComponent!FRuntimeMeshComponentVerticesBuilder::GetUV() [d:\build\++portal+main+full\sync\localbuilds\plugintemp\hostproject\plugins\runtimemeshcomponent\source\runtimemeshcomponent\public\runtimemeshbuilder.h:787]
UE4Editor_RuntimeMeshComponent!URuntimeMeshLibrary::CalculateTangentsForMesh() [d:\build\++portal+main+full\sync\localbuilds\plugintemp\hostproject\plugins\runtimemeshcomponent\source\runtimemeshcomponent\private\runtimemeshlibrary.cpp:243]
UE4Editor_RuntimeMeshComponent!URuntimeMeshLibrary::CalculateTangentsForMesh() [d:\build\++portal+main+full\sync\localbuilds\plugintemp\hostproject\plugins\runtimemeshcomponent\source\runtimemeshcomponent\private\runtimemeshlibrary.cpp:328]
UE4Editor_Mockingbird_9502!ASimpleTerrainGeneration::GenerateMesh() [c:\agus\projects\tesis\prototipo\mockingbird\source\mockingbird\private\terraingenerators\simpleterraingeneration.cpp:139]
UE4Editor_Engine
UE4Editor_Engine
UE4Editor_Engine
UE4Editor_Engine
UE4Editor_Engine
UE4Editor_Engine
UE4Editor_UnrealEd
UE4Editor_UnrealEd
UE4Editor_UnrealEd
UE4Editor_UnrealEd
UE4Editor_UnrealEd
UE4Editor
UE4Editor
UE4Editor
UE4Editor
UE4Editor
kernel32
ntdll
Anyone can helpme?
Comment