Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | dizzy |
Hello, I am creating a hexagon terrain system using multimeshes, but when my assets are generated their verticies are messed up. This confuses me because I have checked the normals and they are facing the correct way, and it seems to be a problem with the amount of verticies in my mesh asset.
Here is an image of the loaded multimesh next to the same asset dropped into the scene:
The mesh only renders correctly from one angle:
This is the code that creates the multimesh:
var multimesh_instance = MultiMeshInstance3D.new()
var multimesh = MultiMesh.new()
multimesh.transform_format = MultiMesh.TRANSFORM_3D
multimesh.instance_count = 100000
multimesh.visible_instance_count = 100
add_child(multimesh_instance)
multimesh.mesh = preload("res://TerrainMeshes/HEXPACK1_Cylinder.res")
multimesh_instance.multimesh = multimesh
The asset I want to use is an ArrayMesh, could this be a problem when setting the multimesh mesh? Or maybe I have to adjust the size of the arraymesh? Any insight is appreciated thank you!