-1
如何使用three.js製作帶圓角的立方體?我讀過它不能用css來完成。有人能告訴我如何做到這一點?使立方體變成圓角
http://jsfiddle.net/rajkumart08/8YK2n/embedded/result/
/*
|------------------------------------------|
| MelonHTML5 - 3D Cube Gallery |
|------------------------------------------|
| @author: Lee Le ([email protected]) |
| @version: 1.02 (09 Jan 2013) |
| @website: www.melonhtml5.com |
|------------------------------------------|
*/
Gallery = {
_config: {
speed: 500,
size: 100,
lightbox: !0,
closeOnEsc: !0,
animation: "default",
slideshow: !1,
slideshow_speed: 3E3,
cube_speed: 1E3
},
lightbox_speed: 300,
window_width: null,
window_height: null,
_cube_timeout: null,
_gallery: null,
_overlay: null,
_lightbox: null,
_current: null,
_in_slideshow: !1,
init: function() {
Gallery._buildContainer(!0, !0);
Gallery.window_width = $(window).width();
Gallery.window_height = $(window).height();
$(document).keydown(Gallery.Events.keyDown);
$(window).resize(Gallery.Events.windowResize);
Gallery._startCube()
},
http://stackoverflow.com/questions/12994175/creating-a-cube-with-rounded-corners-in-three-js/12994218#12994218 – WestLangley 2013-02-28 21:23:11
@WestLangley您的回覆感謝.. ..但我不知道如何改變我現有的代碼....你能告訴如何去做... – user2045025 2013-02-28 21:25:27
不,對不起。到目前爲止,你只嘗試了2分鐘。 – WestLangley 2013-02-28 21:28:51