.obj mesh flipping horizontally ( x-axis )

Using metalkit to load .obj , model is flipping horizontally. Same for the sample project MetalkitEssentials .

The problem is not with the texture flipping, which can be easily fixed by MTKTextureLoaderOriginFlippedVertically .

Is there any command to flip mesh ?

Answered by coder85 in 206225022

Inverting z-axis of vertex position and normal did the work. I imported the model from blender which uses different coordinate system.

Accepted Answer

Inverting z-axis of vertex position and normal did the work. I imported the model from blender which uses different coordinate system.

.obj mesh flipping horizontally ( x-axis )
 
 
Q