V
V
Valery Demidov2014-03-29 22:55:26
JavaScript
Valery Demidov, 2014-03-29 22:55:26

How to remove meridians and parallels in a sphere in three.js?

earth_geometry = new THREE.SphereGeometry( 200, 20, 20);
        var texture_earth = new THREE.ImageUtils.loadTexture('Earth_hr_clouds.jpg');
        earth_material = new THREE.MeshBasicMaterial({map:texture_earth, overdrav:true});
        earth = new THREE.Mesh( earth_geometry, earth_material);
        earth.position.x = 1000;
        scene.add( earth );

Here is the code, as you can see, the texture is superimposed, but the problem is that it is "in a grid", these very parallels and meridians are visible, or as they are correctly called there. So I'm wondering how to make this "grid" not visible?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
sozercanie_kosmosa, 2014-04-05
@Fraideron

dear Fraideron , I have fully understood your problem, and I strongly recommend ...sicMaterial({map:texture_earth, overdrav :tru... fix it to overdraw and everything will be as requested, the wireframe effect will disappear. You can also deprecate CanvasRenderer in favor of WebGLRenderer

S
sozercanie_kosmosa, 2014-04-02
@sozercanie_kosmosa

if you mean that the edges of this sphere sharpen like anorexic bones)), then, as an option, you can increase the number of polygons, something like this:
new THREE.SphereGeometry( 200, 50, 50);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question