canvas - Threejs: Differences between geometry.faceVertexUvs in r47 and geometry.faceVertexUvs in r58 -
working on part of code porting threejs r47 threejs r58. have problems canvas 2d texture loaded image stretched.
the respective code snippet follows:
var geometry = new three.spheregeometry( 200, 80, 60 ); ( var = 0, l = geometry.facevertexuvs[ 0 ].length; < l; ++ ) { ( var j = 0, jl = geometry.facevertexuvs[ 0 ][ ].length; j < jl; j ++ ) { var uv = geometry.facevertexuvs[ 0 ][ ][ j ]; var = uv.v * math.pi - math.pi / 2; = math.sin(a); uv.v = 0.5 - math.log( ( 1 + ) / ( 1 - ) ) / ( 4 * math.pi ); uv.v = 1 - uv.v; } }
i think, there changes in way geometry.facevertexuvs used threejs r47 r58. help, warmly welcomed!. in advance...
https://github.com/mrdoob/three.js/wiki/migration
"uv replaced vector2. means .u , .v .x , .y." r53 r54. maybe helps? :)
Comments
Post a Comment