V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
爱意满满的作品展示区。
shrekshao

Three.js 粒子投影仪; 下雨天, 和 Wallpaper engine 更配哦

  •  
  •   shrekshao ·
    shrekshao · Dec 29, 2016 · 7795 views
    This topic created in 3406 days ago, the information mentioned may be changed or developed.

    Github Page: http://shrekshao.github.io/ParticleProjector/

    鼠标可以交互。

    下雨天,和 Wallpaper engine 更配哦

    快速迭代的项目,代码很脏很没结构

    18 replies    2017-01-04 20:44:51 +08:00
    lydasia
        1
    lydasia  
       Dec 29, 2016
    效果好棒!
    GtDzx
        2
    GtDzx  
       Dec 29, 2016
    厉害
    DoraJDJ
        3
    DoraJDJ  
       Dec 29, 2016 via Android
    demo 页没做手机适配,只能看到文字 :(
    tangxiaoqiang123
        4
    tangxiaoqiang123  
       Dec 29, 2016
    为什么只有文字
    Biwood
        5
    Biwood  
       Dec 29, 2016
    THREE.WebGLRenderer 83
    three.js:19810 THREE.WebGLRenderer: Error creating WebGL context.
    WebGLRenderer @ three.js:19810
    init @ index.js:140
    window.onload @ index.js:408
    three.js:19380 Uncaught TypeError: Cannot read property 'getExtension' of null
    at Object.get (three.js:19380)
    at new WebGLRenderer (three.js:19816)
    at init (index.js:140)
    at window.onload (index.js:408)

    我开启了 Chrome 的 webgl 好像还是不行
    lanyusea
        6
    lanyusea  
       Dec 29, 2016
    I don't know how to translate this

    23333
    shrekshao
        7
    shrekshao  
    OP
       Dec 29, 2016
    @DoraJDJ 恩。。没什么前端经验没考虑到。。以后回炉会改进下。。应该是 window width 比较小都看不到模型。。。
    shrekshao
        8
    shrekshao  
    OP
       Dec 29, 2016
    @Biwood 用了 OES_texture_float 这个 extension ,是因为浏览器或显卡不支持这个吗。。。到这里看下你浏览器 webgl 的支持情况 http://webglreport.com/
    1340641314
        9
    1340641314  
       Dec 29, 2016
    好屌
    Famio
        10
    Famio  
       Dec 29, 2016
    樓主,這個人形的外觀是如何繪畫出來的?
    FinnBai
        11
    FinnBai  
       Dec 29, 2016
    厉害了
    shrekshao
        12
    shrekshao  
    OP
       Dec 29, 2016
    @Famio 一个 obj model 。随机在模型的三角形取点得到初始位置,之后的 simulation 每个粒子的加速度会把粒子往它的初始位置上拉
    jinzhe
        13
    jinzhe  
       Dec 29, 2016
    好久才出来
    wensonsmith
        14
    wensonsmith  
       Dec 29, 2016
    效果吊吊的

    这个任性 obj model 怎么去生成的? 有现成的 model 么?
    shrekshao
        15
    shrekshao  
    OP
       Dec 30, 2016
    @wensonsmith 就是以前自己拿 maya 啥的建的。网上也可找到别人建好的 3d 模型换掉
    Tangel
        16
    Tangel  
       Dec 30, 2016 via Android
    能否托管在 coding 呢?每次访问 GitHub 都要翻墙好麻烦。另外,可以的话能否授权我将该项目提交给 wallpaper engine 的创意工坊?
    shrekshao
        17
    shrekshao  
    OP
       Dec 31, 2016
    @Tangel 我是想把代码重构好了,整理完,可改参数做的明显了再发创意工坊。其实现在可以直接用网页模式 github page 链接。你可以自己 fork 了改,和托管到别处
    imxieke
        18
    imxieke  
       Jan 4, 2017
    我有密集恐惧症
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4715 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 53ms · UTC 10:06 · PVG 18:06 · LAX 03:06 · JFK 06:06
    ♥ Do have faith in what you're doing.