Commit Graph

19231 Commits

Author SHA1 Message Date
媛媛 e7dab8a09e update fbx meta version (#13297) 2022-11-14 19:24:00 +08:00
AFeiYA c2fb2486ea update mtl.meta (#13374) 2022-11-14 19:20:16 +08:00
Myway 315e245a1a 1.delete bakeable property of light component (#13344)
* 1.delete bakeable property of light component
2.fixed terrain lod in runtime
3.fixed terrain block memory leak

* fixed eslint error

* fixed compile error
2022-11-14 18:29:38 +08:00
hyde zhou 3ad97c9879 turn off auto barrier (#13369) 2022-11-14 18:27:01 +08:00
江战 b157bb9454 Support to map multiple se objects with same address (#13220) 2022-11-14 18:12:59 +08:00
AFeiYA 4bde8ca9b1 auto generated lightmap UI (#13181) 2022-11-14 17:56:42 +08:00
jk20012001 8c37e6da7d add reflection probe for surface shader (#13349) 2022-11-14 17:39:03 +08:00
徐兵 b2b0d09e1d reflection probe planar reflection for native engine (#13281) 2022-11-14 17:37:11 +08:00
troublemaker52025 e346079cb7 add merge compressed mipmap interface (#13366) 2022-11-14 17:36:06 +08:00
Cocos Robot bdaeef7e71 [ci skip][AUTO]: Automated code generating update: 7f81a38d8f84b876cd4d0a6423481d1cee72e4a4 (#13360) (#13365)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-11-14 17:26:33 +08:00
fqamic 71314f0e81 merge xr platform function codes (#13360)
* feat: add xr settings for xrEnv and xrType

* improve: remove redundant code for xr interaction

* improve: remove redundant code for frameMove

* fix: xr jsb bind adapt to swig

* feat: adapt to xr preview mode, add handle simulation event
2022-11-14 17:12:25 +08:00
袁炜海 70baa7a514 [Feature] feat: mesh-preview support UV preview (#13332)
* feat: add mesh preview channel

* ✨ feat: support mesh uv debug

* ✨ feat: support mesh uv debug

* 🦄 refactor: update

* 🦄 refactor: clear code

* feat: mesh-preview support UV preview

Co-authored-by: moshuying <1460083332@qq.com>
2022-11-14 15:02:18 +08:00
袁炜海 78452b1de1 feat: update meta files (#13330) 2022-11-14 14:27:49 +08:00
Leslie Leigh (李的序) 7e16ec2b79 Fix empty to empty transition (#13359) 2022-11-14 13:57:45 +08:00
Cocos Robot 3beed0199e [ci skip][AUTO]: Automated code generating update: 1c29d75bc325698dc194714ea02c9fb1d7da8382 (#13356) (#13357)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-11-14 11:57:20 +08:00
James Chen 62d8b4daae Remove unused swapWindow methods. (#13356)
The operation of swapping (presenting) buffers is done in gfx::Device::present. To swap multi-systemwindows, multiple gfx swapchains need be created, and relevant gfx backend will iterate each swapchain and present them. Therefore, `swap buffers` operation doesn't need to be in SystemWindow or SystemWindowManager.

```c++
void GLES3Device::present() {
    CC_PROFILE(GLES3DevicePresent);
    auto *queue = static_cast<GLES3Queue *>(_queue);
    _numDrawCalls = queue->_numDrawCalls;
    _numInstances = queue->_numInstances;
    _numTriangles = queue->_numTriangles;

    bool isGFXDeviceNeedsPresent = _xr ? _xr->isGFXDeviceNeedsPresent(_api) : true;
    for (auto *swapchain : _swapchains) { // We iterate each swapchain and do the present thing here.
        if (isGFXDeviceNeedsPresent) _gpuContext->present(swapchain);
    }
    if (_xr) _xr->postGFXDevicePresent(_api);

    // Clear queue stats
    queue->_numDrawCalls = 0;
    queue->_numInstances = 0;
    queue->_numTriangles = 0;
}
```

Besides, `SDL_GL_SwapWindow` invocation is doing nothing on Windows & Linux platforms, it will generate an SDL an error that `The specified window isn't an OpenGL window` because GL context is not created by SDL_GL_CreateContext. We create contexts in our gfx code.

https://github.com/libsdl-org/SDL/blob/main/src/video/SDL_video.c#L4192

```c++

#define NOT_AN_OPENGL_WINDOW "The specified window isn't an OpenGL window"
int
SDL_GL_SwapWindowWithResult(SDL_Window * window)
{
    CHECK_WINDOW_MAGIC(window, -1);

    if (!(window->flags & SDL_WINDOW_OPENGL)) {
        return SDL_SetError(NOT_AN_OPENGL_WINDOW);
    }

    if (SDL_GL_GetCurrentWindow() != window) {
        return SDL_SetError("The specified window has not been made current");
    }

    return _this->GL_SwapWindow(_this, window);
}

void
SDL_GL_SwapWindow(SDL_Window * window)
{
    SDL_GL_SwapWindowWithResult(window);
}
```

Also, SDL_GL_SwapWindow could not take any effect if running on gfx Vulkan backend.

```c++
void SDLHelper::swapWindow(SDL_Window *window) {
    SDL_GL_SwapWindow(window);
}
```
2022-11-14 11:46:58 +08:00
李吉林 7a32e653cb remove component related code from native (#13352)
* remove component related code from native
2022-11-14 11:34:42 +08:00
jk20012001 652bf03964 Fix model updateInstancedAttribute binding (#13348) 2022-11-14 11:27:05 +08:00
ycg 4da6dabf5a Add template for FBIG. (#13296)
* Add template for FBIG

* remove custom_update_templates.
2022-11-14 11:13:56 +08:00
Cocos Robot 49642f905e [ci skip][AUTO]: Automated code generating update: a49ba79e5529f1b51483cb7fdfad619dee711964 (#13209) (#13354)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-11-14 10:49:52 +08:00
zhakesi 9c4f87272e fix dragonbones not fresh in editor (#13287) 2022-11-14 10:34:49 +08:00
PP f64250a9e3 support dispatching event on native platform (#12705)
* support dispatching event on native platform

* pass widnowId

* fix ci
2022-11-14 10:33:48 +08:00
PP 6a8180dc97 optimize engine decorator (#13248)
* feat: support field decorator optimization

* publish 4.4.1-alpha.3

* update decorator signature

* update deps

* update third argument

* support culling editor decorators

* update deps

* make optimize decorators configable

* add unit test

* remove optimize-decorators.ts
2022-11-14 10:22:56 +08:00
Yiwen b0e9b0bda0 support fixed constraint (#13209)
* support fixed constraint

* fix typo

* fix typo

* add missing files, clean code

* update cocos/bullet version, remove unused file

* update package version

* update package lock

* fix issues
2022-11-14 10:15:45 +08:00
minggo c16e60901d Revert "Bump glob-parent and globby in /scripts/native-pack-tool (#12361)" (#13353)
This reverts commit 78f6f26fa2.
2022-11-14 09:57:36 +08:00
oahc09 3108c93e36 feat:add libxrcommon module (#13346) 2022-11-14 09:52:11 +08:00
Cocos Robot 34597ce385 [ci skip][AUTO]: Automated code generating update: 43ce5aed485fe6ab0884b83dec6b9d428a4b9b77 (#13270) (#13351)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-11-11 22:59:36 +08:00
hyde zhou d33798f895 [develop] update native pipeline (#13270) 2022-11-11 22:51:31 +08:00
changhua 5c75fd0d27 [Optimize] Update LOD tooltip (#13345) 2022-11-11 18:27:35 +08:00
BppleMan 6186f8b65a Optimize light-probe icon texture config (#13341)
Co-authored-by: BppleMan <bppleman@gmail.com>
2022-11-11 15:26:15 +08:00
Leslie Leigh (李的序) 70d10a5645 Animation graph variant and dynamically override clips (#12445)
* Animation graph override clips

* Update

* Fix

* Fix unit test

* support animation graph variant editing (#90)

(cherry picked from commit 273379f3883b8b2d59966249e712b9017d4355ff)

* Anim graph vari template

* tweak

* Tweak

* Mark the overrideClips as experimental

* Name bikeshed

* Tweak

Co-authored-by: 黄森斌 <arsen2010@126.com>
2022-11-11 14:14:19 +08:00
dependabot[bot] 78f6f26fa2 Bump glob-parent and globby in /scripts/native-pack-tool (#12361)
Bumps [glob-parent](https://github.com/gulpjs/glob-parent) and [globby](https://github.com/sindresorhus/globby). These dependencies needed to be updated together.

Updates `glob-parent` from 3.1.0 to 5.1.2
- [Release notes](https://github.com/gulpjs/glob-parent/releases)
- [Changelog](https://github.com/gulpjs/glob-parent/blob/main/CHANGELOG.md)
- [Commits](https://github.com/gulpjs/glob-parent/compare/v3.1.0...v5.1.2)

Updates `globby` from 8.0.2 to 13.1.2
- [Release notes](https://github.com/sindresorhus/globby/releases)
- [Commits](https://github.com/sindresorhus/globby/compare/v8.0.2...v13.1.2)

---
updated-dependencies:
- dependency-name: glob-parent
  dependency-type: indirect
- dependency-name: globby
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-11 14:07:28 +08:00
jk20012001 e757e39d7a materials migrations for modifying default effect roughness metallic value (#13337) 2022-11-11 13:52:38 +08:00
jk20012001 9a65131c87 fix effect compilation error and add s.lightmap.a with effects migration (#13335) 2022-11-11 13:38:12 +08:00
minggo 6cda11d9c9 fix some core module (#13314)
* fix some core module
- move all engine internal exports to core/internal-index.ts except geometry, as geometry should be exported as a whole module
- exports algorithm in algorithm/index.ts
2022-11-11 11:34:13 +08:00
Leslie Leigh (李的序) c23b7bde62 AnimationController: optimize status query methods, add layer count getter (#13323) 2022-11-11 11:00:42 +08:00
Ling Zhan 1aad162030 [fix] [physx-backend] Dynamically setting the convex property of the MeshCollider after rigid body generation has no effect #12048 (#13312) 2022-11-11 08:44:25 +08:00
zhangxin bc9b41f0e0 Update reflection probe (#13333)
* [editor]update reflection-probe

update reflection-probe
- update reflection-probe gizmo icon
- update inspector of mesh renderer
- update inspector of reflection-probe
- reflection probe 's size will be readonly

* Update reflection-probe.ts

* eslint
2022-11-10 22:15:40 +08:00
changhua 85fa1eaf53 [3.7.0] fix lodGroup component and update inspector lod panel (#13304)
* fix lodGroup component; update lod inspector panel;

* update review
2022-11-10 21:03:58 +08:00
jk20012001 f767a1907c add IBL diffuse lighting with baked(indirect only) and light probe (#13327) 2022-11-10 18:37:38 +08:00
BppleMan abea35ddec hidden probes on the inspector (#13325)
Co-authored-by: BppleMan <bppleman@gmail.com>
2022-11-10 18:09:55 +08:00
李吉林 3d7beff293 support instancing for light probe (#13324) 2022-11-10 18:09:42 +08:00
Cocos Robot c12a2c5cef [ci skip][AUTO]: Automated code generating update: 09c70308d02158bd12bcf9d47cf086d0dbbac4e4 (#13316) (#13319)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-11-10 16:44:57 +08:00
Zeqiang Li 3995071efd add imagebitmap for wgpu WGPU_CI_ON (#13313)
* add imagebitmap for wgpu

* wgpu eslint
2022-11-10 16:44:34 +08:00
Cocos Robot 8642fd7e2e [ci skip][AUTO]: Automated code generating update: c25a2574b93d6805bfcb9d55f3aae08102335be7 (#13317) (#13320)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-11-10 16:23:51 +08:00
yangchao 22ed6f4c2f force convert localstorge setitem value to string (#13317) 2022-11-10 16:15:30 +08:00
江战 9894dca7d6 fix bindings (#13316) 2022-11-10 16:11:24 +08:00
pandamicro c1ddb0945d Mark material getProperty as readonly (#13315) 2022-11-10 16:10:39 +08:00
江战 a67f2f2c91 Native editor: fix scene-global visible properties (#13295)
* fix scene -global visible properties

* fix octree
2022-11-10 15:24:47 +08:00
James Chen 5bf6be8694 [feature] se::Object supports to create and modify ES6 Map/Set (#13275) 2022-11-10 15:20:22 +08:00