Commit Graph

6395 Commits

Author SHA1 Message Date
Zach Lee 8da2d17c68 fix window resize issue with legacy pipeline. (#16113) 2023-08-29 10:17:18 +08:00
qiuguohua 2ea26182e0 Use the resize event of SDL (#16072)
* 1. Use the resize event of SDL;
2. Fix the problem of not getting the button when SDL is moving.

* 1.Remove redundant code.
2.Fixed compilation errors.

* Avoiding repeated viewDidChangeBackingProperties function calls.

* Fix the way buttons are fetched.
2023-08-28 09:46:21 +08:00
qiuguohua e86f6d27fd Does not handle mismatched touchid (#16078) 2023-08-24 10:47:45 +08:00
Canvas e9ca89f73e update external-config checkout to v3.8.1-17. (#16081) 2023-08-23 21:15:21 +08:00
Canvas da507e4ba7 fix spine wasm api array bind (#16064)
* fix some array type bindings.

* change engine-native-external to v3.8.1-15.

* revert v3.8.1-15 to v3.8.1-14.

* fix code format.

* fix code format.

* fix getAttachmentNames api.

* off no-unsafe-argument.

* change engine-native-external checkout to v3.8.1-16.

* optimize use vector set & fix edges prototype error.

* add vector default value 0 annotation.
2023-08-23 12:45:17 +08:00
Yiwen a4990ce4e6 Fix meshopt wechat (#16069)
* fix wechat wasm problem, sync external tag

* fix formatting

* fix tidy, unit test
2023-08-23 11:59:56 +08:00
SijieWang 0f5609b96b [Optimize] clear-platform supports passing arguments. (#16073) 2023-08-23 11:57:57 +08:00
Yiwen 3febfab310 fix rendering submesh typo (#16063)
* fix rendering submesh typo

* fix typo

* sync external tag
2023-08-22 15:40:18 +08:00
Santy-Wang baea594f93 bump external tag (#16066) 2023-08-22 15:15:35 +08:00
Zeqiang Li 13d01a4d79 mtl depth resolve feature query update (#16061) 2023-08-22 12:44:18 +08:00
qiuguohua 62a9da122e Use sdl2 on mac platform (#16030)
* Use sdl2 on mac platform
2023-08-21 16:45:53 +08:00
Cocos Robot 46592f013b [ci skip][AUTO]: Automated code generating update: 0af68e43e95326958afc65ae5e6849ef8ac59c5d (#16023) (#16043)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2023-08-21 13:43:36 +08:00
Canvas 20dd273ea7 fix spine wasm api. (#16004)
* fix spine wasm api.

* fix code format.

* remove new api.

* remove private function.

* add setSlotsRange return type.

* add setSlotsRange parameter type.

* fix setUV.

* Fix code description problem.

* remove new api $ fix complete listeners.

* fix bone setter.

* fix code format.

* fix code format.

* fix code format.

* fix bind api.

* remove test code.

* fix code format.

* add api any ignore.

* update external-config checkout to v3.8.1-14.
2023-08-21 13:34:44 +08:00
zxx43 22c5bbc175 add a lot of missed functions for spine jsb (#16027)
* add a lot of missed functions for spine jsb

* change conversion type to number

* check type is a number

* change toNumber to toDouble
2023-08-21 11:28:56 +08:00
Yiwen bde3cd4cc3 Add adv mesh functionalities. (#16009)
* stage

* update

* update

* fix physics & ray cast problem

* fix default value, clean unused code, fix lint errors

* clean code

* update meta file

* update external, license

* fix tidy, circular dep

* fix type cast

* rm unit test

* fix unit test

* update comment
2023-08-21 10:15:24 +08:00
Ling Zhan e5488b7d32 V3.8.1 box2d wasm experimental (#15979)
* init

* tsconfig.json

* add box2d-wasm backend to cocos engine. not crash now in 3.8.0.

* rigid-body, collider, and joint works now.

* back

* Joint: SetLinearFrequencyAndDampingRatio

* PhysicsRayCastCallback, PhysicsAABBQueryCallback

* box2d wasm debugDraw

* asm.js

* B2PolygonShape uses B2.ConvexPartition

* box2d wasm contact disabled works now.

* add unit test for physics2d.

* b2ContactListenerWrapper::registerContactFixture

* tweak

* drawPolygon transfer array data from wasm to ts

* tweak

* contact event performance opt

* revert to polygon collider 2d to original implementation. no need for libtess any more.

* PostSolve ContactImpulse use raw pointer.

* TransformVector2; debugDraw supports transform

* enable rtti

* WASM_OBJECT_PTR_2_TS_OBJECT, WASM_OBJECT_PTR_2_WASM_OBJECT

* fix PreSolve parameter oldManifold error

* B2.TransformVector2 --> b2Mul(in ts)

* tweaks: code format.

* eslint

* eslint

* remove physics-2d-box2d-wasm from render-config.json

* comment tweaks

* [opt] debug draw performance opt

* tweaks
2023-08-18 19:30:14 +08:00
oahc09 56417f35b0 improve:adjust xr begin/end render frame call's position (#16021)
(Calculate the correct delta time)
2023-08-18 15:11:35 +08:00
Zach Lee a77a6c9488 fix instanced buffer. (#16017) 2023-08-18 11:05:53 +08:00
Ling Zhan cf8ceed661 V3.8.1 cct trigger (#15613)
* physx ts 支持

# Conflicts:
#	cocos/physics/framework/components/character-controllers/character-controller.ts
#	cocos/physics/framework/components/colliders/collider.ts
#	cocos/physics/physx/physx-world.ts

* add bullet-character-controller trigger events

* physx c++ add cct trigger

* tweaks

* tweaks

* tweaks

* tweak

* tweaks

* physics jsb: emitCCTShapeEvent --> emitCCTCollisionEvent
2023-08-18 10:47:59 +08:00
徐兵 006bc6254e fix planar reflection error under the native custom pipeline (#16014) 2023-08-18 10:10:38 +08:00
zxx43 7a3a4f1dfb add missed spine api (#16010)
* add missed spine api

* readSkeletonData return point
2023-08-18 02:08:30 +08:00
Ling Zhan 1dc3142fbb [opt] when move() is called, character controller sync physics position to scene; change default stepOffset; set minimum skinWidth (#15966)
* [opt] [character controller] when move() is called, character controller sync physics position to scene immediately; change default stepOffset from 1.0 to 0.5; set minimum skinWidth 0.001

* tweak

* native

* eslint

* eslint

* eslint
2023-08-17 17:34:04 +08:00
Cocos Robot 310142ea01 [ci skip][AUTO]: Automated code generating update: 9a8c159ac0a52aeaafcf6460a0ea2bc0d9a6b2eb (#15946) (#16002)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2023-08-17 16:42:36 +08:00
Zach Lee ed670e7b1b NativePipeline external texture (#15946)
* NativePipeline external texture

* fix lint.

* fix format.
2023-08-17 15:42:40 +08:00
zxx43 c0adb51d36 add jsb Slot::getAttachment & Slot::setAttachment (#15964)
* add Slot::getAttachment & Slot::setAttachment

* Use nativevalue_to_se instead of native_ptr_to_seval in js_spine_Slot_getAttachment

* merge into 1 statement
2023-08-17 10:38:56 +08:00
Zach Lee 6e7841fbbb fixed colorTemperatureRGB jsb binding. (#15972) 2023-08-17 10:24:49 +08:00
ChiaNing 544854c9f6 add model invalidateLocalData interface (#15623) 2023-08-16 17:30:28 +08:00
troublemaker52025 1256656efd deferred tone-mapping and fog with float output in custom pipeline (#15968) 2023-08-16 15:16:43 +08:00
Ling Zhan 02f7d6e8bb V3.8.1 mesh collider set mesh (#15520)
* bullet mesh-collider supports changing mesh after initialization #15363

* physx mesh-collider supports changing mesh after initialization #15363

* tweak
2023-08-16 15:05:06 +08:00
Ling Zhan 7ed24f87ad update native/external-config to v3.8.1-10 (#15965) 2023-08-16 14:10:49 +08:00
oahc09 22ab4b2e44 improve:xr pico use vk1.1 (#15959) 2023-08-15 15:07:37 +08:00
oahc09 88bad37193 improve:xr pico enable detach device thread when use vulkan (#15926) 2023-08-15 15:06:32 +08:00
Zach Lee c24a5186dd Custom Pipeline Debug Marker && gfx push marker(gles2,3, vk) (#15957) 2023-08-15 13:00:30 +08:00
江战 ac4fa74624 Windows: Suppressing the Warning When Linking (#15943) 2023-08-14 11:40:13 +08:00
Zach Lee 2b266acce7 fix gles3 gl target (#15914)
* fix gles3 gl target

* remove texture view type.
2023-08-14 09:56:59 +08:00
James Chen 0c47721fad fixed #15885: [bug] Crash or freeze if restarting game many times on non-android platforms. (#15922) 2023-08-14 09:55:59 +08:00
troublemaker52025 85eaac8d5e revert Synchronize groundLightingColor settings from #14509 (#15931) 2023-08-11 17:28:16 +08:00
Zeqiang Li c04f35599c Merge branch 'v3.8.1-pipeline' of github.com:star-e/engine into v3.8.1-pipeline (#15930) 2023-08-11 16:06:12 +08:00
zxx43 60b5a7de66 3.8.1 add spine jsb apis (#15674)
* open some spine apis

* add some apis

* add spine jsb convert

* add some manual interfaces

* fix some jsb

* fix getAttachments

* remove findAttachmentsForSlot

* manual VertexEffect::begin

* remove SkinEntry

* change some apis

* fix isObject

* use entry ptr instead of entry

* remove array.get()

* remove array.get()

* fix ci

* fix ci

* change include

* fix SWIGINTERN

* fix test-case

* use rename

* check spine instance null

* fix eslint

* fix eslint

* add some missing apis

* add getAttachmentByName

* modify jsb api

* fix eslint
2023-08-11 14:07:30 +08:00
Zach Lee fa0a4fefef fix Native Pipeline with render texture. (#15913)
* fix shader block memory overwrite issue.

* fix Native Pipeline with render texture.
2023-08-11 10:10:04 +08:00
徐兵 0eec682268 fix incorrect display of preview plane for reflection probe (#15896) 2023-08-10 17:18:21 +08:00
徐兵 eded5a9443 add updateEnvMap for native (#15889) 2023-08-10 17:18:08 +08:00
hyde zhou ad6e3dcf8a V3.8.1 pipeline (#15906) 2023-08-10 16:43:16 +08:00
Zach Lee e69ae568a0 remove ia pool. (#15880)
* remove ia pool.

* fix vb / ib leaks in ui mesh && renderDrawInfo
2023-08-10 10:29:08 +08:00
hyde zhou b48581d91a V3.8.1 pipeline (#15875) 2023-08-09 15:23:40 +08:00
mmyduckx 8c1a005d21 add http patch request process (#15898) 2023-08-09 11:27:39 +08:00
Zach Lee 0abd8c4da5 fix metal pvrtc upload issue (#15894) 2023-08-09 10:35:13 +08:00
徐兵 b7ad5b1e6b fix skybox model not updated when onGlobalPipelineMacroChange (#15886) 2023-08-07 15:23:45 +08:00
oahc09 5886a0066d fix:camera trackingtype/cameratype jsb attribute lost (#15867)
(used in xr)
2023-08-07 14:33:07 +08:00
troublemaker52025 4b26cc8784 fix PipelineStateChanged updating issue by performance optimization (#15753) 2023-08-07 11:19:41 +08:00