Commit Graph

389 Commits

Author SHA1 Message Date
luzhuang
d9b724bbe4 fix(loader): apply scene physics settings 2026-05-21 17:49:16 +08:00
ChenMo
7c521e2a00 feat(loader): recognize .aac and .flac extensions for audioClip loader (#3009)
add "aac" and "flac" to AudioLoader's resourceLoader extension list so
2026-05-19 21:45:39 +08:00
chenmo.gl
489238ee6a feat(loader): recognize .m4a extension for audioClip loader
add "m4a" to AudioLoader's resourceLoader extension list so that
loading audio via url without explicit type resolves to AssetType.Audio
for .m4a files. also update AssetType.Audio doc comment to mention m4a.

decoding already works out of the box: AudioContext.decodeAudioData
natively supports MP4-container audio (AAC) on Chromium / WebKit / Gecko.

before: resourceManager.load("clip.m4a") -> "asset type should be specified"
after:  resourceManager.load("clip.m4a") -> resolves AudioClip
2026-05-19 17:20:16 +08:00
luzhuang
4a568170c5 fix(loader): compute skinned bounds from non-joint rootBone 2026-05-17 01:13:03 +08:00
luzhuang
4a8342b7d3 fix(loader): include skinned mesh nodes in skin root LCA 2026-05-16 16:23:21 +08:00
ChenMo
0fb25c247f refactor: unify shader file extension from .gs/.gsl to .shader (#2951)
refactor: Align with Unity convention by using .shader as the standard extension
for Galacean shader files instead of .gs/.gsl.
2026-05-09 17:05:29 +08:00
cptbtptpbcptdtptp
aa2442dc3c feat: support text outline 2026-04-30 22:07:25 +08:00
cptbtptpbcptdtptp
7c2ed5906d feat: atlas support rotate 2026-04-23 18:08:29 +08:00
luzhuang
d5b6dd9012 fix(loader): add audio extension to AudioLoader supported types 2026-04-15 19:44:32 +08:00
luzhuang
069f182a86 fix(loader): normalize gltf wrapper and skin roots 2026-04-15 17:39:05 +08:00
luzhuang
b3bf58a816 Revert "fix(loader): restore single-root GLTF scene without GLTF_ROOT wrapper"
This reverts commit 8a86f279eca9b2bc4a2fa56f94f174236f9a5674.
2026-04-15 17:39:04 +08:00
luzhuang
5abb3f5f02 fix(loader): restore single-root GLTF scene without GLTF_ROOT wrapper
Single-root GLTF scenes no longer wrap the root node in a GLTF_ROOT
container, which avoids redundant nesting and fixes animation path
resolution for models like Mixamo characters.

- GLTFSceneParser: single-root scenes use the node directly as scene root
- GLTFAnimationParser: remove single-root path prefixing (no longer needed)
- Entity.findByPath: prefer real same-name child over legacy self-name prefix
- Add AGENTS.md to .gitignore
2026-04-15 17:39:03 +08:00
luzhuang
3071f908c8 fix(loader): always create GLTF_ROOT container for consistent animation paths (#2942)
Remove single-root vs multi-root branching in GLTFSceneParser, always
creating a GLTF_ROOT wrapper entity. This ensures animation bone paths
are consistent across different glTF files, fixing cross-file animation
clip retargeting.
2026-04-15 17:39:01 +08:00
luzhuang
d9a267477d fix(animation): normalize single-root clip binding paths 2026-03-29 20:56:45 +08:00
luzhuang
13521cc420 fix(loader): componentRef 解析支持 clone entity 子树查找
ReflectionParser 解析 IComponentRef(entityPath + componentType)时,
目标组件可能在 GLB clone 的子 entity 上而非 clone 根 entity 自身。
getComponents 找不到时 fallback 到 getComponentsIncludeChildren。
2026-03-29 18:53:54 +08:00
cptbtptpbcptdtptp
d0dada8e52 fix: keep mesh data 2026-03-27 15:17:06 +08:00
cptbtptpbcptdtptp
1749077779 fix: temp 2026-03-27 12:14:57 +08:00
cptbtptpbcptdtptp
b7146090d3 fix: temp 2026-03-27 10:59:04 +08:00
luzhuang
1afdfaa443 Support path-based cross-prefab entity/component refs (#2927)
* feat(prefab): support cross-prefab component refs
2026-03-18 17:59:20 +08:00
AZhan
57fdddb599 Unify Signal event mechanism with structured binding support (#2921)
* feat: unify signal event mechanism with structured binding support
2026-03-16 14:54:49 +08:00
ChenMo
ce413ebbba feat: add RenderTarget asset loader and colorTextures getter (#2923)
* feat: add RenderTarget asset loader and expose colorTextures getter
2026-03-16 12:08:22 +08:00
AZhan
85364f285f Remove useless code (#2922)
* feat: remove useless code
2026-03-16 10:49:28 +08:00
GuoLei1990
bac44cae0a refactor: align header length calculation to 4 bytes for TypedArray access 2026-03-13 00:00:30 +08:00
ChenMo
2a242ef61a refactor: rename Env to AmbientLight, .env to .ambLight (#2919)
* refactor: rename Env/EnvLoader to AmbientLight/AmbientLightLoader
2026-03-12 23:28:04 +08:00
zhuxudong
c751f38bb8 Move pixelStorei calls to non-compressed branch in GLTextureCube (#2918)
* fix: move pixelStorei calls to non-compressed branch in GLTextureCube
2026-03-12 20:44:18 +08:00
GuoLei1990
81671409c2 fix: clamp pixel values to prevent Infinity in R16G16B16A16 format 2026-03-11 00:41:41 +08:00
hhhhkrx
3c1103c9c6 migrate ambient env from RGBM to half-float (#2916)
* feat: migrate ambient env from RGBM to half-float
2026-03-10 20:54:40 +08:00
ChenMo
8bb9a13c2e Merge HDRLoader into TextureCubeLoader and extract HDRDecoder (#2914)
* refactor: merge HDRLoader into TextureCubeLoader and extract HDRDecoder
2026-03-09 22:28:46 +08:00
zhuxudong
fdbd495a10 Replace refId with url for asset reference resolution (#2913)
* refactor: replace refId with url for asset reference resolution
2026-03-06 18:09:50 +08:00
ChenMo
b86e265b30 Wrap raw assets as EngineObject to enable type-safe ResourceManager.load (#2900)
* types: wrap Text/JSON/Buffer as EngineObject for type-safe ResourceManager.load
2026-02-26 18:05:39 +08:00
AZhan
8c6e7e6df6 Fix some assets were not cached (#2883)
fix: some assets were not cached
2026-01-26 22:12:39 +08:00
zhuxudong
a5a30d0407 Load params in resource loader (#2881)
* feat: add params in resource loader
2026-01-26 11:27:48 +08:00
zhuxudong
56c5a5c948 Fix audio catch error (#2876)
* fix: catch audio error
2026-01-20 20:16:46 +08:00
ChenMo
a5f223f638 Fix iOS 26.2 audio play bug (#2874)
* fix: iOS 26.2 audio play bug
2025-12-29 13:21:53 +08:00
AZhan
01a56df5d1 Fix PrefabResource refCount was incorrect (#2864)
* fix: prefab refcount error
2025-12-01 22:33:51 +08:00
Hu Song
cab45ffa63 Unify ComponentConstructor usage across multiple files (#2860)
* refactor: unify ComponentConstructor usage across multiple files
2025-11-19 19:17:41 +08:00
zhuxudong
b5ba0efb37 Fix mipmap auto downgrade (#2855)
* fix: mipmap auto downgrade
2025-10-23 16:02:28 +08:00
AZhan
8147e3a116 Scene parse Ambient Occlusion (#2834)
* feat: scene parse Ambient Occlusio
2025-09-19 17:32:55 +08:00
AZhan
c6c0945351 fix: no scene name was given when loading the scene (#2831) 2025-09-19 11:37:48 +08:00
zhuxudong
bb30d5e9a1 Support shader pre compile (#2794)
* refactor: support shader pre compile
2025-09-16 22:39:30 +08:00
luzhuang
9364b2fd4a Prevent ResourceManager test failures due to unhandled rejection… (#2812)
* fix: prevent ResourceManager test failures due to unhandled rejection
2025-09-05 16:09:00 +08:00
AZhan
6e913492a4 Add progress callback for ProjectLoader (#2803)
* refactor: opt glTF load fail logic
2025-08-19 17:40:02 +08:00
GuoLei1990
f9f00cdec1 Merge branch 'main' into dev/1.6 2025-08-19 11:40:46 +08:00
zhuxudong
a6af0d5f00 Enhance ktx2 hdr (#2798)
* fix: Enhance ktx2 hdr
2025-08-12 16:50:01 +08:00
Hu Song
2d0ecc3e77 feat: support ktx2 hdr(BC6H) (#2784) 2025-08-04 11:44:19 +08:00
zhuxudong
7861f3f20c Fix ktx2 compatibility (#2783) 2025-07-25 17:15:34 +08:00
hhhhkrx
6f3b755f5c metallic roughness workflow support specular (#2756)
* feat: metallic roughness workflow support specular
2025-07-25 11:15:36 +08:00
zhuxudong
d273e48c98 Fixed KTX2 transcoder compatibility issue (#2778)
* feat: KTX2 transcoder compatibility issue
2025-07-24 16:37:12 +08:00
zhuxudong
462da8f5d0 refactor: export libs for ktx2 transcoder (#2768) 2025-07-15 15:36:29 +08:00
ChenMo
4e9a448ce6 Add add Component or Entity plugin method (#2759)
* feat: add add Component or Entity plugin method
2025-07-02 15:17:34 +08:00