M
M
Millerish2017-02-22 14:10:36
JavaScript
Millerish, 2017-02-22 14:10:36

Three.js: How to texture properly?

When applying the texture at the bottom and top, ugly folds come to their senses:
t5ivp.png

var geometry = new THREE.SphereGeometry(50, 50, 50, 0, Math.PI * 2, 0, Math.PI * 2);
        var load = new THREE.TextureLoader().load("e.jpg");
        load.anisotropy = 8;
        var material = new THREE.MeshBasicMaterial({
            map: load,
            overdraw: true
        });
        sphere = new THREE.Mesh(geometry, material);
        scene.add(sphere);

How right?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Millerish, 2017-02-22
@Millerish

var geometry = new THREE.SphereGeometry(50, 50, 50);

G
GreatRash, 2017-02-22
@GreatRash

What does the texture look like? I suspect that such a texture would be better.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question