Answer the question
In order to leave comments, you need to log in
How to implement z coordinate?
Good day. I am studying the .obj format and decided to make a simple view of 3D objects. I ran into an obstacle that I don’t even know how to google correctly. When I turn the object sideways, the object becomes flat. How to display this depth? Swap z with x?
Answer the question
In order to leave comments, you need to log in
everything turns normally for you, just the dog model is flattened. along the z-axis by about 10 times. here I added the simplest scaling
console.log("data loaded");
vertex.forEach(v => (v.z *= 10.0));
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question