Commit Graph

18155 Commits

Author SHA1 Message Date
徐兵 06be9a4164 fix the invalid switch hdr and ldr (#11719) 2022-06-29 16:48:14 +08:00
袁炜海 61b82376bc feat: update xx.meta (#11753) 2022-06-29 16:44:44 +08:00
Cocos Robot d016820f76 [ci skip][AUTO]: Automated code generating update: 89226ca4cdbedcda3a4cdc4f8d8410aef7e27022 (#11737) (#11751)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-06-29 15:04:03 +08:00
minggo 9ff2e6c692 fix crash (#11737)
* fix crash
2022-06-29 14:31:11 +08:00
PP 1fccb90926 support audio PCMData and sampleRate getter (#11470)
* support audio buffer and sampleRate getter

update comment

update interface

update

update comment

update jsb.d.ts

update

* support getPCMData

update

support on native

support on miningame

update

* update comment

* add example doc
2022-06-29 13:39:05 +08:00
mmyduckx 4fdf948d24 refactor downloaderTask API style (#11697) 2022-06-29 11:34:15 +08:00
Cocos Robot 79e169b7f0 [ci skip][AUTO]: Automated code generating update: 0c3f181e16c728079881685f7df4582cdae6e1b3 (#11624) (#11741)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-06-29 11:33:16 +08:00
mmyduckx 4b7294a503 fix mac SimulatorApp not init fileUtils when used. (#11743) 2022-06-29 11:28:48 +08:00
江战 6495789425 fix bug (#11734) 2022-06-29 09:56:47 +08:00
Ling Zhan aa001a9f9b fix PhysX pointer loss percision on Android API 30 (#10811) (#11624) 2022-06-29 09:54:29 +08:00
minggo 8caec59711 use IntrusivePtr to share object (#11729) 2022-06-28 18:01:47 +08:00
江战 d008270ef3 3.6 bugfix set macro USE_V8_DEBUGGER in cmake (#11727) 2022-06-28 17:59:41 +08:00
zxx43 e89709ed89 change default value of noise module (#11723) 2022-06-28 17:29:47 +08:00
黄森斌 26e012d781 v3.6.0 fix multiple inspectors replace asset uuid in node (#11705)
* fix multiple inspectors replace asset uuid in node

* skybox editing fault tolerance
2022-06-28 17:25:58 +08:00
徐兵 ec168ad147 fix SHININESS_MAP_CHANNEL compilation error and CCGetCSMLevel function parameter modify (#11721)
* fix SHININESS_MAP_CHANNEL compilation error and  CCGetCSMLevel function parameter modify

* parameter update
2022-06-28 16:26:05 +08:00
Cocos Robot 97ba2b9bce [ci skip][AUTO]: Automated code generating update: c3f766b0dc6df3a0e9212646200c4a0d8135bdd2 (#11716) (#11724)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-06-28 15:25:33 +08:00
minggo 98d58f69a0 memory usage check (#11716)
* memory usage check
2022-06-28 14:31:13 +08:00
mmyduckx 035cefdd7f fix forward declaration compile error (#11720) 2022-06-28 11:30:48 +08:00
徐兵 fc9161fe9e fix crash on oppo r11 (#11718) 2022-06-27 21:27:33 +08:00
minggo 524d859db3 check memory usage (#11714) 2022-06-27 17:42:36 +08:00
minggo 6c9203e4e3 add some comments and remove unneeded codes (#11713) 2022-06-27 15:31:48 +08:00
ChiaNing 65eda08c06 fix mask image stencil bug (#11710)
Co-authored-by: ChiaNing <sun.clooud.mo@gmail.com>
2022-06-27 14:41:33 +08:00
江战 cc090f1c95 fix mac/ios skip xcode update (#11675) 2022-06-27 14:18:40 +08:00
黄森斌 33f45e81d4 [Optimize] skybox reflection convolution edit in Editor (#11704)
* fix skybox bake reflection convolution texture template error

* fix generateVector can't be triggered
2022-06-27 13:22:46 +08:00
PP affbf7b90d fix mouse button in MouseMove Event (#11661) 2022-06-27 11:58:14 +08:00
PP ebb9b800b3 remove canvas access warning in Editor (#11709) 2022-06-27 11:50:48 +08:00
hyde zhou 8d25a7ddca fix forceUpdate (#11706)
* fix forceUpdate
2022-06-27 11:39:25 +08:00
mmyduckx 0ee40078ce refactor DownloaderImpl-apple.mm function to unify style with Apple API (#11681) 2022-06-27 10:34:55 +08:00
James Chen d85d2fb2f2 Fix that JS object is not in 'Weak' state if it is unrooted. (#11680) 2022-06-27 10:32:40 +08:00
Leslie Leigh (李的序) 1fc838e5ef Animation graph preview/variable manipulation (#11617)
* Marionette editor API: viewVariableBindings() (#84)

* Animation graph previewers (#85)

* Transition preview destination start

* Fix

* Reorganize module structure

* Tweak

* Tweak
2022-06-27 10:29:41 +08:00
minggo 1f7e135438 use reference count to release (#11699) 2022-06-27 09:55:09 +08:00
minggo 9fb1d85642 fix memory leak (#11700) 2022-06-27 09:54:47 +08:00
jk20012001 7ce49b2673 fix create new effect needs migration #12651 (#11707) 2022-06-26 22:46:10 +08:00
Yiwen 0f5bd9fb7d fix logic error in copyBufferstoTexture's validation check (#11703) 2022-06-25 14:51:55 +08:00
Cocos Robot 6dd9ebcc79 [ci skip][AUTO]: Automated code generating update: 85f26b90ec3a93e1ba473b0e532665387829684b (#11695) (#11701)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-06-24 21:17:52 +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
James Chen d5e1bfa1a1 Fix wrong logic in Camera::screenToWorld function and remove Node._xxxCache properties to keep the same logic as web (#11693)
* Fix wrong logic in Carmea::screenToWorld function.

* [jsb] Remove Node._xxxCache properties. Keep the same logic as web.

In camera-component.ts

    public screenToWorld (screenPos: Vec3, out?: Vec3) {
        if (!out) { out = this.node.getWorldPosition(); }  // if out is null, getWorldPosition will return _worldPositionCache object
        if (this._camera) { this._camera.screenToWorld(out, screenPos); }
        return out;
    }

In user code, there may be something like this:

	const target = cameraCom.screenToWorld(pos); // target is _worldPositionCache object
        const dir = Vec3.subtract(new Vec3(), target, this.node.worldPosition).normalize(); // this.node.worldPosition also returns _worldPositionCache object because we define _pos like the following:

// node.jsb.ts

Object.defineProperty(nodeProto, '_pos', {
    configurable: true,
    enumerable: true,
    get (): Readonly<Vec3> {
        return this.getWorldPosition();
    }
});

nodeProto.getWorldPosition = function (out?: Vec3): Vec3 {
    const r = oldGetWorldPosition.call(this);
    if (out) {
        return Vec3.copy(out, r);
    }
    return Vec3.copy(this._worldPositionCache, r); // node.getWorldPosition() will return _worldPositionCache tool.
};

So the code [[[[ const dir = Vec3.subtract(new Vec3(), target, this.node.worldPosition).normalize(); ]]]] will replace target value since this.node.worldPosition getter  overrides the target value.
2022-06-24 18:30:59 +08:00
Leslie Leigh (李的序) 7037907b53 Improve rename variable unit test (#11666) 2022-06-24 18:25:05 +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
ChiaNing d6e1a27001 remove translate function change warn (#11687)
Co-authored-by: ChiaNing <sun.clooud.mo@gmail.com>
2022-06-24 11:16:05 +08:00
minggo ae2f9aad14 add comment (#11688)
_pass is just a weak reference, it is not used internally
2022-06-24 10:47:29 +08:00
Cocos Robot 8693b2bedc [ci skip][AUTO]: Automated code generating update: 8f8fb289f132ea107befba3f895dbac4f9708e5a (#11674) (#11685)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-06-24 09:40:44 +08:00
timlyeee 23e10124ef V3.6.0 get pcm buffer from audio (#11521) 2022-06-24 09:39:13 +08:00
minggo 69c2ff6a2a use IntrusivePtr to share objects (#11674)
* use IntrusivePtr to share objects
2022-06-24 09:33:52 +08:00
mmyduckx cd75a4b921 export DownloaderHints & add doc for Downloader constructor usage (#11673) 2022-06-24 09:32:47 +08:00
timlyeee f8df5aa13a Fix simulator broken (#11679) 2022-06-23 18:37:52 +08:00
bofeng-song 6b3ee46959 fix crash due to wrong resize event notify (#11672) 2022-06-23 18:02:48 +08:00
袁炜海 3d31253bcc [Bug] fix: update show scene time (#11660)
* fix: update show scene time

* feat: update css selector
2022-06-23 15:33:08 +08:00