-1

three.jsを使用して角の丸い立方体を作成するにはどうすればよいですか? cssを使用して行うことはできないと読みました。誰かがこれを行う方法を教えてもらえますか?

http://jsfiddle.net/rajkumart08/8YK2n/embedded/result/

/*
|------------------------------------------|
| MelonHTML5 - 3D Cube Gallery             |
|------------------------------------------|
| @author:  Lee Le (lee@melonhtml5.com)    |
| @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()
    },
4

1 に答える 1

1

これは、丸みを帯びた立方体を生成する Subdivision Modifier を使用する three.js コードの例へのリンクです。

http://stemkoski.github.com/Three.js/Subdivision-Cube.html

于 2013-03-12T22:12:38.887 に答える