jk20012001
9a2dbb830d
[fix] default colored texture support for effect texture cube parameters ( #12697 )
2022-09-07 11:49:20 +08:00
oahc09
448c093cf4
improve:remove IXRInteraface's dependent from GFXDevice.h ( #12690 )
...
* improve:remove IXRInteraface's dependent from GFXDevice.h
* improve:remove IXRInteraface's redundant code from DeviceValidator.h/cpp
2022-09-06 17:44:46 +08:00
Cocos Robot
c923074bca
[ci skip][AUTO]: Automated code generating update: b4a084b208061fefd566798f56a7ff999173fcb8 ( #12656 ) ( #12657 )
...
Co-authored-by: cocos-robot <cocos-robot@cocos.com >
2022-09-02 13:39:01 +08:00
Cocos Robot
7caa64eb90
[ci skip][AUTO]: Automated code generating update: 479c2d377f09f145c664b6fde421a4bce6b47f5e ( #12636 ) ( #12656 )
...
Co-authored-by: cocos-robot <cocos-robot@cocos.com >
2022-09-02 11:02:21 +08:00
James Chen
dc81a20f3a
[v3.6.1] Fix jointTexture configuration not loaded on native platforms. ( #12639 )
...
* Fix jointTexture configuration not loaded on native platforms.
* Remove unused std::floor in Root.cpp
* Fix clang-tidy
2022-09-01 12:56:40 +08:00
QingliWang
6a8f53b186
Add features for XR developement. ( #12413 )
...
* Change Android mainloop, add global config and template projects for XR.
* Change gfx/gles device's process flow for XR, working with other PRs, waiting.
* Change gfx/Vulkan device's process flow for XR, working with other PRs, waiting.
* Change render process for XR.
* Develop XR input and events.
* Develop 3D feature of UI widgets and raycast effect for XR.
Co-authored-by: fqamic <fqamic@vip.qq.com >
2022-08-22 16:34:45 +08:00
James Chen
e4cd83ec59
Fix potential crash in Node::isChildOf ( #12493 )
2022-08-22 09:54:42 +08:00
江战
9d5ea47fc4
Fix header pragma once ( #12450 )
2022-08-18 10:31:52 +08:00
minggo
5778aab354
Merge branch 'v3.6.0' into merge_v3.6
2022-08-08 10:49:46 +08:00
mmyduckx
6e0be03987
add Node::getPathInHierarchy ( #12319 )
2022-08-04 13:44:09 +08:00
James Chen
fe0fd229a4
Fix CocosApplication doesn't unregister engine event when restarting. ( #12250 )
2022-07-28 18:15:35 +08:00
zxx43
6678c378ee
V3.6.0 particle material log ( #12249 )
...
* add warning message when change particle material
* use error id instead
* change to log
* change to warning
* Apply suggestions from code review
Co-authored-by: pandamicro <lphuabin@gmail.com >
2022-07-28 17:44:53 +08:00
James Chen
58a6059e0c
Fix spine memory leak when restarting game and fix memory leaks in js_se_setExceptionCallback and nativevalue_to_se(const cc::Data &from, ...) ( #12206 )
...
* Fix spine memory leak when restarting game.
* Fix memory leaks in js_se_setExceptionCallback and nativevalue_to_se(const cc::Data &from, ...)
* Cleanup all hooks after 'AfterCleanupHookArray' is executed since user may add hooks in 'AfterCleanupHook' by mistake.
For example which in SharedBufferManager::afterCleanupHandle.
* Fix a memory leak in `operator=(TypedArrayTemp &&o)
* Fix spine memory leak, use PersistentHandleVisitor to iterate JSB objects in Object::cleanup.
* Update Class.cpp, use only one internal field.
* Remove JSB mapping in visitor callback.
2022-07-28 15:17:44 +08:00
minggo
e0bfd1d380
Merge branch 'v3.6.0' into merge_v3.6
2022-07-26 12:01:26 +08:00
James Chen
41b8936484
Fix wrong logic if passing 'keepWorldTransform = true' to setParent. ( #12169 )
2022-07-25 11:44:34 +08:00
James Chen
75180a1c68
Correct the logic of visiting _worldRotation/Scale/Position in Node.cpp. ( #12170 )
...
Mark Node::getScene as inlined.
2022-07-25 10:49:58 +08:00
Santy-Wang
629d788596
Output friendly information about effect name ( #12137 )
...
* Output friendly information about effect name
* Apply suggestions from code review
Co-authored-by: pandamicro <lphuabin@gmail.com >
2022-07-21 23:05:53 +08:00
hyde zhou
0c82b143fc
[V3.6.0 pipeline] added web forward and deferred pipelines ( #11646 )
...
* added custom web forward and deferred pipelines
2022-07-21 12:40:13 +08:00
James Chen
131fb74b32
Fix the parameter of TextureCube::setImage, support to pass nullptr to it, keep the same logic as which in web ( #12062 )
2022-07-20 11:09:24 +08:00
minggo
616968d7bd
Adjust code struct and remove unneeded variables in Node ( #12069 )
2022-07-19 23:23:25 +08:00
James Chen
ab733d5644
[v3.6.0] Fix some potential memory issues ( #12045 )
...
* Fix deleting IntrusivePtr _pipeline object in Rot.cpp.
* Remove unused code.
* Avoid nullptr dereference in SceneCulling.cpp
* Fix memory leaks for some objective-c code.
* [dragonbones] Avoid extra memory allocation and copy in CCFactory.cpp
* [dragonbones] DragonBonesData::binary needed to be 'freed' rather than 'delete'd.
* [dragonbones] Fix using delete to release memory allocated by 'new[]' in SlotColorTimelineState.
* Remove variable srcOffset & dstOffset in Mesh::merge
2022-07-18 16:39:26 +08:00
James Chen
3025bcd012
[v3.6.0] Optimize se::Object::getPrivateData, math::IsEqualF, Vec3::transformMat4 ( #12039 )
2022-07-18 14:10:16 +08:00
minggo
d40b8739bc
Merge branch 'v3.6.0' into develop_merge_v3.6
2022-07-18 10:38:14 +08:00
James Chen
34f4c1c2eb
Fix typo of TextureCube::setMipmapAtlas and update property binding in tojs/assets.ini ( #12016 )
2022-07-15 16:10:33 +08:00
James Chen
f644e78e5c
[v3.6.0] Refactor native Batcher2d lifecycle ( #12011 )
2022-07-15 14:17:33 +08:00
minggo
9f8092cef5
simplify logic of Node::walk() ( #11997 )
...
* simplify logic of Node::walk()
2022-07-15 10:26:07 +08:00
Zhang mingzhen
05bde85ed7
V3.6.0 batcher2d code sorting ( #11943 )
...
* parentOpacity move to RenderEntity
(cherry picked from commit f1d9b5cb55c1912bd61ba490ec46ce7108097556)
* parentOpacity remove from entity and put into funtion parameters
* unify dynamic and static handle process
* reform entity shared buffer structure
* modify default value of struct
* set drawinfo type for spine/dragonbones
* remove legacy method
* reform color .type as uint8 from float
* CI fix
* remove static-cast
* CI fix
* CI fix
Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com >
Co-authored-by: liqiao <liqiao@cocos.com >
2022-07-13 15:48:31 +08:00
James Chen
9f615e1fec
fixed #11911 : [v3.6][optimization] Use External ArrayBuffer to optimize the shared memory in Node ( #11926 )
2022-07-13 13:50:53 +08:00
jk20012001
d2ea1877b0
optimize shader compiling and fix soft5x ( #11869 )
...
* optimize shader compiling
* fix compile error
* optimize native 5x
2022-07-12 10:03:50 +08:00
James Chen
e3d0f93460
getGeometryRenderer::update must be wrapped in CC_USE_GEOMETRY_RENDERER macro. ( #11928 )
2022-07-11 18:57:10 +08:00
James Chen
6cc101f361
Use more const and make Node::getIdxOfChild protected ( #11915 )
2022-07-09 19:23:03 +08:00
James Chen
89c49d782a
[v3.6] Fix memory leak of memop::Pool::destroy and refactor it. ( #11908 )
2022-07-09 15:06:52 +08:00
bofeng-song
7c8492c668
remove unneeded code, gameActivity has been ensured the render lifecycle ( #11897 )
2022-07-08 18:20:38 +08:00
Zhang mingzhen
b32830a3e8
V3.6.0 batcher2d to native ( #11592 )
2022-07-08 17:10:48 +08:00
James Chen
598ac36113
Fix memory overflow in getDirtyNode ( #11890 )
2022-07-08 13:35:23 +08:00
mmyduckx
cf346b6e39
add Scene load event when scene::load ( #11807 )
2022-07-05 16:36:08 +08:00
黄森斌
67e9aa1f33
V3.6.0 allow multiple custom scripts exist in project with one same className ( #11763 )
...
* use getClassById instead of _getClassById
* use getClassId instead of _getClassId
* public cc.js.getClassId api
* allow className already exists, new one will replace old classObject
* create component use cid
* allow className exist when registing
* custom script className allow duplicated
* revert some comments
* preserve api and deprecate _getClassById and _getClassId
* revert some comments
* revert comment
* Update cocos/core/utils/js-typed.ts
Co-authored-by: PP <chinese1236@qq.com >
Co-authored-by: PP <chinese1236@qq.com >
2022-07-05 15:19:56 +08:00
James Chen
9fdfb687e2
Mesh supports half float format and the data can be deleted
...
1. Add support for converting float to half from some vertex attributes at runtime;
2. Add Mesh.allowDataAccess property for releasing data after it is uploaded to GPU
2022-07-04 16:59:51 +08:00
Santy-Wang
7bc135e1c7
adjust initialization process ( #11143 )
...
* adjust init process
* fix bugs
* restructure
* tweak
* delete useless code
* fix ci
* support more platform and fix some bugs
* mark internal
* tweak
* add docs
* add docs and little adjustment
* fix bugs
* adjust decorator execute order
fix mesh error
* fix bugs
* revert some change
* revert auto-generated code
* revert auto-generated code
2022-07-03 21:16:09 +08:00
Cocos Robot
e13f1ed021
[ci skip][AUTO]: Automated code generating update: 5770a3d382506ed1bd87d2564d4ec1060b5d54a3 ( #11803 ) ( #11806 )
...
Co-authored-by: cocos-robot <cocos-robot@cocos.com >
2022-07-01 15:15:57 +08:00
李吉林
1f12c3e88e
fix geometry renderer update buffer in metal ( #11772 )
...
* fix geometry renderer update buffer in metal
2022-06-30 16:37:07 +08:00
James Chen
8fcfed75ca
[jsb] Fix that BufferAsset is not bound correctly. ( #11695 )
...
* [jsb] Fix that BufferAsset is not bound correctly.
2022-06-24 18:44:17 +08:00
Cocos Robot
33524233e0
[ci skip][AUTO]: Automated code generating update: 9f83eb1b5a1d4e0f22c0343250de472c2f7416a7 ( #11637 ) ( #11694 )
...
Co-authored-by: cocos-robot <cocos-robot@cocos.com >
2022-06-24 16:17:35 +08:00
pandamicro
12072ffc62
Merge v3.5.1 zqb branch to v3.6 ( #11637 )
...
* support asset property preview (#11017 )
(cherry picked from commit 85769cf8f81459b5ad98ccab4138420009572a32)
* show mesh asset thumbnail (#10981 )
* V3.5.1 noise particle (#11003 )
* add cpu & gpu noise for particle
* add some params & change particle noise shader
* change shader
* add cpu noise particle
* add noise preview
* run generation when preview
* revert shaders
* remove unused statements
* add particle noise module
* change noise preview interface
* add invisible to remap
* remove get deltaTime
* set noiseModule private
* fix eslint
* feat: add noise preview (#11260 )
* [Optimize] asset editing undo (#10779 )
* edit render-pipeline
* support renderpipeline undo
* optimize material editing undo
* reset last record data
* temporary not support animation-mask undo
* support animation-mask edit undo
* animation mask remove _jointMasks
* Animation clip embedded players (#11320 )
* Animation clip subregions
* Log
* Test
* Eval
* Update
* Update
* No longer use animation state to implement clip motion
* Clear subregions
* Fix
* Mark subregion as editor extendable
* Animation clip subregion player path
* fix isnan(0.0) with webgl1.0 (#11262 )
* fix isinf(0.0)==true with webgl1.0
* code style
* fix specular params with surface toon (#11265 )
* code format and add sliders for parameters (#11266 )
* Broadcasting of animation state\'s speed
* Fix
* Rename
* Update
* Fix
* Revert "No longer use animation state to implement clip motion"
This reverts commit 20755f9ec525b27b5b9a515c8dd687349aa4c637.
* Revert some exotic changes
* Update docs
Co-authored-by: jk20012001 <jkregister@163.com >
Co-authored-by: 徐兵 <49358166+xubing0906@users.noreply.github.com >
* fix skinning model split (#11378 )
* fix skinning model split
* rename function _resizeMaxJointForDS
Co-authored-by: zhakesi <zhakesi@foxmail.com >
* [ci skip][AUTO]: Automated genbindings update: d823cbba1f7ce8284da28458c26534da2e033961 (#11378 ) (#11383 )
Co-authored-by: cocos-robot <cocos-robot@cocos.com >
* use stop emitting instead (#11381 )
* add stop emitting api
* use stop emitting instead
* Update cocos/particle/particle-system.ts
Co-authored-by: Leslie Leigh (李的序) <leslieleigh@outlook.com >
Co-authored-by: Leslie Leigh (李的序) <leslieleigh@outlook.com >
* fix: imageData fault tolerance (#11374 )
* fix: imageData fault tolerance
* chore: when data is an empty array,stop the function
* material undo updating effects list (#11409 )
* modify noise module ui (#11433 )
* use visible decorator to control the visibility of property (#11438 )
* fix joints data with value nan (#11489 )
* V3.5.2 CI Android NDK set version to 21 (#11448 ) (#11492 )
* Minor improvement
* Fix format
* Fix particle culler
* Improve particle culler
* Manually migrate joint data upload with texture in skinning model
* Update shaders for skinning model based on joint texture
* fis native skinning model with realtime-texture mode (#45 )
Co-authored-by: zhakesi <zhakesi@foxmail.com >
* fix clangtidy (#46 )
* Small tweaks
* modify code struct for skinning model (#47 )
* modify code struct for skinning model
* update skinning chunk
Co-authored-by: 黄森斌 <arsen2010@126.com >
Co-authored-by: zxx43 <zxx43@hotmail.com >
Co-authored-by: 袁炜海 <35713518+dogodo-cc@users.noreply.github.com >
Co-authored-by: Leslie Leigh (李的序) <leslieleigh@outlook.com >
Co-authored-by: jk20012001 <jkregister@163.com >
Co-authored-by: 徐兵 <49358166+xubing0906@users.noreply.github.com >
Co-authored-by: zhakesi <liqiao@cocos.com >
Co-authored-by: zhakesi <zhakesi@foxmail.com >
Co-authored-by: Cocos Robot <48829427+cocos-robot@users.noreply.github.com >
Co-authored-by: cocos-robot <cocos-robot@cocos.com >
Co-authored-by: Santy-Wang <wh19930829@qq.com >
Co-authored-by: zhangxin <59186205+chichinohaha@users.noreply.github.com >
Co-authored-by: 江战 <40414978+PatriceJiang@users.noreply.github.com >
2022-06-24 15:10:45 +08:00
Santy-Wang
5ae9dd67ce
fix addPersistNode ( #11689 )
2022-06-24 11:25:41 +08:00
minggo
4b8b032ad8
delete subindex function ( #11667 )
...
* delete subindex function
2022-06-23 14:53:02 +08:00
江战
4a964c3ba3
3.6 Optimize resetHasChangedFlags ( #11639 )
2022-06-22 14:16:04 +08:00
Cocos Robot
05a401492d
[ci skip][AUTO]: Automated code generating update: 090f9b6966aeabc5b2b39f6ef32e78ee3826e4be ( #11636 ) ( #11640 )
...
Co-authored-by: cocos-robot <cocos-robot@cocos.com >
2022-06-22 11:21:12 +08:00
Santy-Wang
8ca3044cdf
set persist node's hideFlags to DontSave when switch scene ( #11627 )
...
* set persist node's hideFlags to DontSave when switch scene
* refine log
2022-06-20 23:18:41 +08:00
Cocos Robot
959ff98e01
[ci skip][AUTO]: Automated code generating update: f21f652ac910d0fe65260e3fc253b1cdc73ef28f ( #11602 ) ( #11605 )
...
Co-authored-by: cocos-robot <cocos-robot@cocos.com >
2022-06-20 13:54:52 +08:00