创建与Three.js圆角立方体立方体、圆角、Three、js

2023-09-08 10:30:39 作者:ζ冷瞳

是否有可能创建自定义半径的three.js圆角立方体,然后才能纹理立方体的形象?

Is it possible to create a cube with rounded corners of custom radius in three.js and then be able to texture that cube with an image?

推荐答案

您可以绕行中实现的Loop细分算法 THREE.SubdivisionModifier 立方体的角落。

You can round the corners of a cube using the Loop subdivision algorithm implemented in THREE.SubdivisionModifier.

这是在行动: http://threejs.org/examples/webgl_modifier_subdivision.html。

您可以纹理这种几何形状就像你纹理任何其它几何形状。

You can texture this geometry just as you would texture any other geometry.

three.js R.70

three.js r.70

 
精彩推荐