I am facing an issue and struggling to find a solution. I am looking for an alternative method to texture a sphere in three.js by using icosahedronbuffergeometry instead of spherebuffergeometry with additional code to generate indices for rendering using drawelement instead of drawarray. However, the outcome is not what I expected. You can view the result through the link provided below.
The modifications made to the PolyhedronBufferGeometry function are as follows:
1. var idx = []; // line 24097
2. this.setIndex( new ( Uint16Attribute )( idx, 1 ) ); // line 24119
3. var iv = []; // line 24157 to store temp indices
4. var iCount = idx.length; // line 24157
5. iv[ i ][ j ] = ij ; ij++; // in the loop in line 24174
6. idx.push( iCount+ iv[ i ][ k + 1 ]); // in the loop in line 24194
See the modified result using icosahedronbuffergeometry here
For comparison, here is the result using spherebuffergeometry here