创建与Three.js圆角立方体 [英] Creating a cube with rounded corners in Three.js

查看:2642
本文介绍了创建与Three.js圆角立方体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能创建自定义半径的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

这篇关于创建与Three.js圆角立方体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆