在 Cocos Creator 3.7 中,重點支持了光照、反射探針和 LOD,同時對引擎的渲染、包體和性能等方面進行了大量優化,正式發布后,我們收到了不少開發者的反饋和建議,非常感謝大家一如既往的支持!在 v3.7.1 中,我們對相關問題集中進行了修復,提升了用戶體驗,也對一部分性能進行了優化,建議所有 v3.x 用戶升級。
除此之外,Cocos Cyberpunk Demo 也隨 v3.7.1 的發布正式開放,開發者可免費下載安裝、或通過 Dashboard 的模板/案例來啟用 Cocos Cyberpunk Demo。
長期以來,Cocos 官方團隊都會親自使用 Cocos Creator 產出案例,這里面有比較大型的商業項目,也有非商業性質的作品。很多完成度比較高的非商業作品,我們也都盡可能把源碼上架到 Store 供大家學習。這都是為了確保我們能站在開發者的角度,真正親自下場使用我們做出來的引擎和編輯器,盡可能把產品細節功能打磨好。賽博朋克就是在這樣的背景下成立的項目,這個項目幫助我們打磨好引擎的自定義管線、反射探針、后處理流程等特性。
Cyberpunk Demo 開放
技術特色

Demo 采用了 Cocos Creator 最新的自定義渲染管線,該管線提供了一套適用于各種平臺的 API 接口。借助定義渲染管線,項目團隊可以自由地實現各種渲染特效,并在不同平臺上實現良好的兼容性,釋放團隊的創意與生產力,打造更具視覺表現效果的產品。
通過圖示可以清晰地看到 Demo 使用了所有的管線內容,每個管線都對應一個特定的渲染順序。
豐富的渲染特性
-
Bloom
-
TAA
-
FSR
-
Cluster Lighting
-
IBL
-
FXAA
-
自定義渲染分辨率
這些渲染特性都可以在配置表里(href-setting.ts)修改:

Web 端也支持直接在網址里面設置,例如:
http://localhost:7456/?shadingScale=0.7;bloom=0
Demo 的主要目標平臺為 Android 和 iOS,通過調整上述參數可以保證各平臺穩定運行在 30fps。測試的基線設備為:
-
Android:華為 Hisilicon 970(華為 Mate10),高通驍龍 835(小米 6)。
-
iOS:蘋果 A10 Fusion(iPhone7)。
3.7.1 主要更新
引擎
- Add more api docs (engine#13937, engine#14079, engine#14088)
- [Optimize] add image asset's zh i18n (engine#14108)
- [Optimize] Add pointerlock function for mac platform (engine#14187)
- [Pipeline] enable custom pipeline in editor (engine#14084)
- [Pipeline] add native pipeline ubo uploading (engine#14061)
- [Pipeline] Fix web-pipeline ui in post-processing (engine#14145)
- [Pipeline] Disable over-aligned memory allocation (engine#14164)
- [Pipeline] Refactored web profiler and native framebuffer (engine#14168)
- [Pipeline] Refactored custom-pipeline initialization (engine#14176)
- [Pipeline] Fix memory leak of pipeline JS binding objects (engine#14190)
- [Pipeline] Resource states & fgd signal split end barrier (engine#14207)
- [Pipeline] Fixed transparent pass barrier issue. (engine#14218)
- [XR] AR engine module update
- Fix shadowmap lowp with huawei and reflection probe brightness (engine#14058)
- Fix shader compilation error with new version of lightmap (engine#14071)
- Fix unsynchronized model data issue when adding lod levels dynamically (engine#14054)
- Fix the issue that lod is not working properly when forced to use certain levels (engine#14055)
- [Physics-2d] Fix box2d syncRotationToPhysics's euler angle calculation issue (engine#14048)
編輯器
- 支持 Light Probe 方向光的直接光照
- 開放更多的 FBX 導入項中的 Mesh 減面參數,以獲得更好的減面效果:
- 修復模型減面配置里廢棄的 gltfpack 減面算法無效
- 修復動畫編輯器事件編輯面板顯示異常
- 修復偏好設置中圖片默認導入類型(Preferences - AssetDB - Default import image type)重啟后失效的問題 #14176
- 修復升級 3.7 后,偏好設置程序管理器(Preferences - Program Manager)配置可能無效的問題
- 修復部分 3D 物理后端配置在編輯器預覽中沒生效的問題
- 修復 DPI 超過 2 的 Windows 設備上場景點擊不準確的問題
- 修復場景編輯器相機 FOV 設置引發的 gizmo 顯示異常
- 修復新建 Canvas 節點時,可能出現 layer 未選中 UI_2D 的問題
- 修復 Lightmap 聚光燈渲染錯誤
- 修復自定義紋理壓縮工具不支持項目相對路徑的問題
- 修復構建插件獲取 result.settings 無效的問題
- 修復構建使用 application.ejs 模版時,構建結果多出 application.ejs 文件的問題
版本下載