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
In #307 a similar issue was reported. I checked combine.py and found the copying of normals is commented: # if e.model.normals: # norms += e.model.normals
So I got it working by forcing Mesh to recalculate normals by adding the following line at the end of the pasted code: terrain.model.generate_normals() # TODO remove this hack
Uncommenting those two lines and using generate_models has the same effect in my use case.
The text was updated successfully, but these errors were encountered:
I was generating two meshes with an empty parent, then combining them. It resulted in a black mesh:
In #307 a similar issue was reported. I checked combine.py and found the copying of normals is commented:
# if e.model.normals: # norms += e.model.normals
So I got it working by forcing Mesh to recalculate normals by adding the following line at the end of the pasted code:
terrain.model.generate_normals() # TODO remove this hack
Uncommenting those two lines and using generate_models has the same effect in my use case.
The text was updated successfully, but these errors were encountered: