爱意满满的作品展示区。
yohane3016

在小程序中优雅的使用 threejs

  •  1
     
  •   yohane3016 · Jan 20, 2025 · 2593 views
    This topic created in 657 days ago, the information mentioned may be changed or developed.

    Three.jsPlatform Adapter 项目官网

    分享一个自己整的小程序 three.js 适配方案。

    小程序非 webview 方式使用 three.js 一直以来都是个问题, 参考了下网上现有的兼容方案,都觉得差点意思,最终基于 @deepkolos 的 platform-three 的思路整了个我比较满意的版本。

    有以下功能/特性:

    • 没有改变 three 的代码(理论支持任意版本)
    • 小程序生态适配,对小程序分包 / worker / wasm 都做了自动化处理

    示例小程序

    微信扫码查看,它包含了几乎所有 three.js 的 webgl 分类下例子。

    wx-mp-code

    4 replies  •  2026-01-21 13:31:19 +08:00
    cijianzy
    cijianzy
    Jan 21, 2025
    1
    好好好,支持。
    asLw0P981N0M0TCC
    asLw0P981N0M0TCC
    Jan 21, 2025
    2
    mk_
    xyholic
    xyholic
    Jan 22, 2025
    3
    好东西,mk
    hemingway
    hemingway
    Jan 21
    4
    效果不错
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   705 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 23:29 · PVG 07:29 · LAX 15:29 · JFK 18:29
    ♥ Do have faith in what you're doing.