deepkolos

THREE 下另类的 HDR 压缩方法

  •  
  •   deepkolos · Jan 31, 2021 · 1617 views
    This topic created in 1943 days ago, the information mentioned may be changed or developed.

    仓库: https://github.com/deepkolos/hdr-prefilter-texture

    DEMO: https://deepkolos.github.io/hdr-prefilter-texture/index.html

    输入大小为 5.3MB 的http://www.yanhuangxueyuan.com/threejs/examples/textures/equirectangular/venice_sunset_2k.hdr

    环境 REGBLoader 耗时 PMREMGenerator 耗时 总耗时
    模拟器 144ms 17ms 161ms
    小米 8 509ms 55ms 564ms

    注:RGBELoader 主要是加载网络耗时

    // HDR 原本加载路径
    RGBELoader -> PMREMGenerator -> 设置 scene.environment
    
    // 优化后的路径
    TextureLoader -> 设置 texture 属性 -> 设置 scene.environment
    

    PMREMGenerator产物导出后的 PNG 只有1046.863kb,体积减少了4415.182kb

    yEHvbq.jpg

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2674 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 15:43 · PVG 23:43 · LAX 08:43 · JFK 11:43
    ♥ Do have faith in what you're doing.