Z
Z
Zakharov Alexander2019-05-13 15:14:59
three.js
Zakharov Alexander, 2019-05-13 15:14:59

Threejs, how to get rid of triangular distortion [Solved]?

Hello.
I make a simple 3d example and draw a few simple elements: Or like this: I don’t see such jambs in the enlarged version: But if you look at the object from the inside, then there is a complete disgrace: There should be no triangles when drawing. Is it possible to somehow configure threejs so that there are no triangles or do I need to do something with the model?
5cd95d809034c934124136.png
5cd95ebea9221223133382.png
5cd95eec80d6e106056121.png
5cd95f3c5a180470699262.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
Zakharov Alexander, 2019-05-13
@AlexZaharow

The issue was in the camera. It was:
camera = new THREE.PerspectiveCamera(45, width / height, 0.1, 100000);
Now :
camera = new THREE.PerspectiveCamera(45, width / height, 10, 100000);
Result:
5cd9bb54c8f73856692281.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question