Commit Graph

19263 Commits

Author SHA1 Message Date
hyde zhou 92f2d08f52 [develop] update layout graph loading (#13368) 2022-11-18 13:43:18 +08:00
江战 de020726e4 fix mouse wheel event (#13434) 2022-11-18 13:33:01 +08:00
Cocos Robot d05b25988b [ci skip][AUTO]: Automated code generating update: ae5cf94e422ef93d72105b5d60ff75802012ef68 (#13425) (#13432)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-11-18 13:32:07 +08:00
Gin 85f8083517 [Optimize] improve: effect select option label naming and grouping (#13415)
- https://github.com/cocos/3d-tasks/issues/14323
2022-11-18 12:50:45 +08:00
James Chen 32a6aba4fb Fix some swig warnings and fix the issue that Node::mobility is not bound, update swig to 4.1.0 release (#13425)
* Update swig config, fix some warnings

* Update TextureBase.h, don't make _width, _height public

* Revert genbindings.js

* Update external to develop-8
2022-11-18 11:56:09 +08:00
bofeng-song 702b85e9b7 fix wrong objectSize calculated (#13428)
* fix wrong objectSize calculated

* refine
2022-11-18 11:19:39 +08:00
PP 52977e2162 optimize: update cc.config.json schema to support nativeOnly feature (#13393) 2022-11-18 10:36:35 +08:00
mmyduckx 4683ab1e87 Do not support blob in native (#13402)
* xhr do not support blob
2022-11-18 10:36:08 +08:00
李吉林 6d282d2033 change default probe generating box size (#13424) 2022-11-17 18:28:37 +08:00
徐兵 9a740141cc reflection probe for custom pipeline (#13407) 2022-11-17 18:12:38 +08:00
Ling Zhan a354088b20 Fix bullet safe delete #13191 (#13421)
* fix bullet safe delete
2022-11-17 17:10:53 +08:00
黄森斌 49ce6165a4 [Bug] optimize light probe button state (#13414) 2022-11-17 14:39:36 +08:00
Zeqiang Li 6248c3255e export gfx-empty for editor launching (#13398) 2022-11-17 11:02:24 +08:00
黄森斌 642e25c977 add mesh optimizer simplify algorithm (#13376)
* add mesh optimizer simplify algorithm

* merge conflict code

* adjust i18n

* Update editor/i18n/zh/assets.js

Co-authored-by: 媛媛 <yuanyuan1497@foxmail.com>

* update zh i18n

* update zh i18n

Co-authored-by: 媛媛 <yuanyuan1497@foxmail.com>
2022-11-16 20:28:50 +08:00
王凯鹏 a8652162e0 support Windows and Mac platform for editor (#13394) 2022-11-16 18:06:25 +08:00
黄森斌 f001b226fc after generate light probe snapshot the scene (#13409) 2022-11-16 17:36:41 +08:00
jk20012001 a769c2914c fix compilation error (#13403) 2022-11-16 15:07:56 +08:00
Leslie Leigh (李的序) 5829f391a3 Add a general used internal algorithm: array partition (#13381)
* Algorithm: array partition
2022-11-16 15:04:14 +08:00
hyde zhou c8be7a4008 [develop] export LayoutGraphData to editor (#13377) 2022-11-16 14:56:00 +08:00
jk20012001 c7862ba08c fix reflection probe shader (#13396) 2022-11-16 14:54:27 +08:00
李吉林 5a40c92d94 refactor bake settings (#13401) 2022-11-16 14:47:12 +08:00
Myway 5445be354d dirty main light bake flag in scene globals and change use_lightmap macro value (#13389) 2022-11-16 10:53:53 +08:00
Yiwen 924e5a14d7 apply an offset to WrapprtObjectID so that we can use 0 to represent null (world frame) (#13391) 2022-11-16 10:44:04 +08:00
Yiwen b3a7ddc319 fix Node::updateWorldTransform typo (#13383) 2022-11-16 09:45:01 +08:00
江战 f23d9ed112 fix crash (#13390) 2022-11-15 19:19:38 +08:00
jk20012001 26330bda6a fix reflection probe shader compilation error, add vs surface functions (#13388) 2022-11-15 18:34:11 +08:00
oahc09 511864b15c fix:Downloader-java.cpp 's jni method nativeOnProgress/nativeOnFinish parameter type error (#13328)
* fix:jni method nativeOnProgress/nativeOnFinish second parameter type not right
java static method use jclass
java member method use jobject

* fix:android clang tidy problem
2022-11-15 17:36:42 +08:00
江战 303d5a66db fix physcs (#13302) 2022-11-15 15:24:48 +08:00
zxx43 fe692c829f V3.6.2 gravity fix (#13092)
* fix particle gravity bug just consider node rotation

* remove statement

* use world rotation
2022-11-15 13:56:43 +08:00
Ling Zhan 5ee54d97ff Curve raycast (#13086)
* PhysicsSystem add line-segments-raycast

* 规范接口注释

* PhysicsRayResult add id property

* tweak

* tweak

* 接口命名

* tweak

* native

* add PhysicsLineStripCastResult

* tweak

* tweak
2022-11-15 13:47:52 +08:00
Leslie Leigh (李的序) 0521d1e566 Add a test to test how clip overriding affect the set of animated node (#13375) 2022-11-15 10:42:18 +08:00
Cocos Robot ad37ef780e [ci skip][AUTO]: Automated code generating update: da22194c08da24c1007b19b6c3d86d7c889b4aad (#13220) (#13372)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-11-15 09:43:59 +08:00
媛媛 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