Commit Graph

850 Commits

Author SHA1 Message Date
徐兵 5e8f4a2e58 convolution map (#11322)
* upload mipmap from atlas

* add macro "USE_CONVOLUTION_MAP" and editable skybox material for native engine

* code format

* rename "USE_CONVOLUTION_MAP" and  enum MipmapBakeMode, delete the mipmapMode property

* rename struct

* rename useOfflineMipmaps function

* rename function and fix macro 'CC_USE_IBL'  'CC_USE_DIFFUSEMAP'  'CC_USE_HDR' not working

* fix compile errors

* add documentation

* update documentation

* USE_RGBE_CUBEMAP macro changed to global
2022-06-08 12:10:06 +08:00
李吉林 1e34d3551a V3.6.0 geometry compatibility (#11393)
* compatibility for geometry renderer

* add deprecated.ts

* add empty implementation in web-pipeline

* ts lint
2022-06-08 11:11:10 +08:00
minggo cc9664405a use c++ 17 (#11389)
* use c++ 17
2022-06-08 10:19:35 +08:00
troublemaker52025 387b994f91 Add CSM for v3.6.0 (#11120)
* Add CSM for v3.6.0

* fix CI error

* fix Ci error 2

* Limit soft shadow sampling range

* update

* add soft 5x PCF

* add warn ID

* sync CSM to native engine

* fix CI error

* add Performance Mode

* fix ci error

* fix ci error 2

* fix ci error 3

* add precisely tailored

* use CC_SHADOWMAP_FORMAT

* update

* Modify default parameters

* sync to native engine

* revert config file

* fix  ci error

* modify pr problem

* fix CI error

* fix ci error

* sync to js engine

* fix ci error

* fix cc_shadowMap not binding

* fix vulkan shadow effect error

* build effect

* fix ci error

* modify review

* fix ci error

* fix ci error 2

* delete unused interfaces

* fix ci error

* update

* update 2

* fix ci error

* delete csmDebugMode

* build effect

* use csmLeve to shadowCascadeLevel

* update
2022-06-07 14:30:49 +08:00
James Chen ae0ca842e5 [v3.6] Don't rename webview& video c++ destuctor to destroy in webview/video.ini, add a 'destroy' method and bind it instead. (#11323)
* [v3.6] Don't rename webview& video c++ destuctor to destroy in webview/video.ini, add a 'destroy' method and bind it instead.
* VideoPlayer doesn't need to be inherited from RefCounted.
* Add final keyword for VideoPlayer & WebView.
2022-06-02 15:01:57 +08:00
hyde zhou 02407dbc70 V3.6.0 pipeline (#11277)
* decouple GlobalDescriptorSetManager from RenderPipeline

* formatting

* move interface onGlobalPipelineStateChanged from PipelineSceneData to Pipeline

* add layouts

* fix eslint error

* rendergraph creates device resources

* restore resourceGraph

* resource graph updated

* add scene interface

* layout graph updated

* stop use IntrusivePtr<gfx::Swapchain>

* add setViewport setScissor

* scene transversal modified

* accidentally omitted

* remove pipeline event from pipeline, decouple terrain from render pipeline

* shadingScale moved from PipelineSceneData to Pipeline

* Pipeline removed from PipelineSceneData

* pipelineEvent refactored

* fix typo

* rendergraph executes

* interface changed

* fix submit

* Update the draw function

* pipeline runtime added to pipeline

* automatically barrier

* typo

* comment

* forgot sth important

* add classic/custom pipeline switch

* web pipeline can be enabled

* relax pipeline interface

* pipeline use gfx::Color

* decouple native RenderPipeline

* fix clang tidy

* add get pipelineSceneData

* present refactored

* added executor example

* half way done

* find slot

* merge & sort layout

* layout graph updated

* enable native usesCustomPipeline

* change mergedbs

* fix comment

* fix eslint error

* fix

* draft

* update the rendergraph compiler

* update the compiler

* update executor

* update to latest

* revert mtlcmdbuffer manually

* valid added

* external node

* add framebuffer

* fix linter

* fix linter

* fix implicit narrow cast

* fix linter

* use native root.pipeline

* use Root to get pipeline instance

* fix ccstd::string

* turn off validation

* cleanup

* ccstd::pmr::string changed

* update the pipeline ubo

* use ccstd::pmr::string

* uses ccstd::pmr::vector

* uses ccstd::pmr::map

* reconstruction

* external res

* compile issue

* clang tidy

* fix ccstd::pmr::string hash

* fix potential issue

* Fixed some rendering errors of webpipeline in the editor

* Optimize attachment load/storeOp logic

* update executor

* WebPipeline bug fixed in editor

* Fix the problem of resource cache error when camera is deleted or added

* webpipeline performs logic adjustments and bug fixes

* render graph updated

* descriptor updated

* descriptor updated

* fix member traits

* libstdc++ does not support hashing std::pmr::string on linux

* refactor descriptor

* jsb allocator walkaround

* rename

* descriptor type refactored

* fix default

* adding layout graph builder

* transfer env

* switch env

* switch env

* adding native layout builder

* adding native builder

* adding layout graph

* adding descriptor

* adding descriptor layout

* create layout graph builder added

* fix root

* format

* add web layout graph builder

* refactor web layout graph

* fix intrusive ptr

* descriptor set data updated

* before applying another idea

* debug string added

* adding render graph

* adding resource graph

* adding native pipeline

* graph remove edge temporary fix

* remove_edge simplified

* remove edge simplified

* outIter renamed

* remove edges simplified

* fix reference graph impl

* run test case

* adding native impl

* remove unused native

* queue added

* pass reorder v1.0

* adding native pipeline

* adding native pipeline

* fix bug

* render graph setup added

* render graph updated

* fix ccstd::string

* getFirstChildLayout, num of children must be 1

* remove examples

* structure refactor

* pass reorder & framegraphDispatcher interface

* remove test code

* remove debug code

* ts added object detection

* ts get name added

* RenderGraph setup moved

* add ts layout graph implement

* fix lint

* fix ci: implicit type conversion

* ci

* adding warmup

* turn off custom

* pipeline updated

* format

* try disable clang 64 to 32 narrow warning

Co-authored-by: zxx43 <zxx43@hotmail.com>
Co-authored-by: GengineJS <476393671@qq.com>
Co-authored-by: Zeqiang Li <zeqiang-li@outlook.com>
2022-06-01 19:06:59 +08:00
mmyduckx cb713a75d8 Refactor image data binding (#11304)
* refactor image data binding
* use setPrivateObject instead.
2022-06-01 17:14:18 +08:00
mmyduckx 63e5694cfe Sync shadow info (#11259)
* sync ts shadowInfo planeDirection&planeHeight
2022-05-31 14:27:41 +08:00
James Chen fdc977ee78 [v3.6] Cleanup code, fix typo and add missing property bindings (#11254)
* Fix typo: Fog::setfogRange -> Fog::setFogRange

* Model::getInstancedAttributeBlock should return reference.

* Update scene.ini

* Fix errors in scene.ini.

* Put Node::_children private.

* Update access level, return value, typo.

* revert Ambient.h

* Remove an unused method: RenderScene::removeModel(index_t idx);

* Update scene.ini

* Add missing propery bindings in Shadows & AmbientInfo.

* Remove unused accessor in Ambient.h
2022-05-31 09:57:30 +08:00
hyde zhou 243547ffac V3.6.0 pipeline (#11021)
* layout graph renamed

* layout graph updated

* cntr updated

* adding descriptor hierarchy

* add present pass

* update jsb

* add layout graph

* change setter inheritance

* fix web-pipeline diamond inheritance problem

* cleanup

* change namespace

* adding layout graph

* add external resource type

* add factory

* adding native pipeline

* custom pipeline added

* adding UuidGraph

* fix misuse of drawAPI on metal (#10195)

* uuid graph added

* adding pipeline runtime

* add uuid contains, rename addressable

* pipeline interface changed

* rendergraph completes filtering and dependencies

* Change the residency judgment

* RenderTexture changed to RenderWindow

* adding PipelineRuntime

* adding pipeline wrapper

* fix link error

* remove createPipelineRuntime

* decouple GlobalDescriptorSetManager from RenderPipeline

* formatting

* move interface onGlobalPipelineStateChanged from PipelineSceneData to Pipeline

* add layouts

* fix eslint error

* rendergraph creates device resources

* restore resourceGraph

* resource graph updated

* add scene interface

* layout graph updated

* stop use IntrusivePtr<gfx::Swapchain>

* add setViewport setScissor

* scene transversal modified

* accidentally omitted

* remove pipeline event from pipeline, decouple terrain from render pipeline

* shadingScale moved from PipelineSceneData to Pipeline

* Pipeline removed from PipelineSceneData

* pipelineEvent refactored

* fix typo

* rendergraph executes

* interface changed

* fix submit

* Update the draw function

* pipeline runtime added to pipeline

* automatically barrier

* typo

* comment

* forgot sth important

* add classic/custom pipeline switch

* web pipeline can be enabled

* relax pipeline interface

* pipeline use gfx::Color

* decouple native RenderPipeline

* fix clang tidy

* add get pipelineSceneData

* present refactored

* added executor example

* half way done

* find slot

* merge & sort layout

* layout graph updated

* enable native usesCustomPipeline

* change mergedbs

* fix comment

* fix eslint error

* fix

* draft

* update the rendergraph compiler

* update the compiler

* update executor

* update to latest

* revert mtlcmdbuffer manually

* valid added

* external node

* add framebuffer

* fix linter

* fix linter

* fix implicit narrow cast

* fix linter

* use native root.pipeline

* use Root to get pipeline instance

* fix ccstd::string

* turn off validation

* cleanup

* ccstd::pmr::string changed

* update the pipeline ubo

* use ccstd::pmr::string

* uses ccstd::pmr::vector

* uses ccstd::pmr::map

* reconstruction

* external res

* compile issue

* clang tidy

* fix ccstd::pmr::string hash

* fix potential issue

* Fixed some rendering errors of webpipeline in the editor

* Optimize attachment load/storeOp logic

* update executor

* WebPipeline bug fixed in editor

* Fix the problem of resource cache error when camera is deleted or added

* webpipeline performs logic adjustments and bug fixes

* render graph updated

* descriptor updated

* descriptor updated

* fix member traits

* libstdc++ does not support hashing std::pmr::string on linux

* refactor descriptor

* jsb allocator walkaround

* rename

* descriptor type refactored

* fix default

* adding layout graph builder

* adding native layout builder

* adding native builder

* adding layout graph

* adding descriptor

* adding descriptor layout

* create layout graph builder added

* fix root

* format

* add web layout graph builder

* refactor web layout graph

* fix intrusive ptr

* descriptor set data updated

* debug string added

* adding render graph

* adding resource graph

* adding native pipeline

* graph remove edge temporary fix

* remove_edge simplified

* remove edge simplified

* outIter renamed

* remove edges simplified

* fix reference graph impl

* adding native impl

* remove unused native

* queue added

* adding native pipeline

* adding native pipeline

* fix bug

* render graph setup added

* render graph updated

* fix ccstd::string

Co-authored-by: Zeqiang Li <zeqiang-li@outlook.com>
Co-authored-by: GengineJS <476393671@qq.com>
Co-authored-by: zxx43 <zxx43@hotmail.com>
2022-05-30 11:50:22 +08:00
James Chen b65b47c04b [v3.6][native] Cleanup code, minor changes (#11237)
* [v3.6][native] Cleanup code, minor changes
2022-05-27 09:46:04 +08:00
ChiaNing 48194f1d37 Update bindings-generator environment configuration instructions (#11231)
* Update bindings-generator environment configuration instructions

Co-authored-by: ChiaNing <sun.clooud.mo@gmail.com>
2022-05-26 13:41:25 +08:00
James Chen 8f8924c3f4 fixed #10929: Hash computation in native engine causes loss of precision, use 32 bits hash for all platforms (#11179)
* fixed #10929: Hash computation in native engine causes loss of precision. Force use 32 bits hash for all platforms.

* More uint64_t -> ccstd:hash_t

* Some uint64_t -> uint32_t in SkeletalAnimationUtils.h/.cpp

* operator() return ccstd::hash_t now and add some comments.

* size_t -> ccstd::hash_t in StringPool.h, Font.h/.cpp
2022-05-25 13:54:57 +08:00
minggo 7814949998 Merge branch 'v3.5.1' into v3.6.0_merge_v3.5.1 2022-05-24 11:53:57 +08:00
Zhang mingzhen c09995b45a supplement JSB documents (#11153)
Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
2022-05-23 09:37:07 +08:00
minggo 75dcf062c6 refactor startup/shutdown process of gfx device (#11123)
* refactor startup/shutdown process of gfx device
2022-05-17 17:29:09 +08:00
James Chen 7203b63a50 fixed #3d-tasks/11110: [native] Avoid two implementation of CCObject (#11060)
* fixed #3d-tasks/11110: [native] Avoid two implementation of CCObject
* Add more comments in CCObject.cpp
2022-05-16 09:49:45 +08:00
minggo 0c12729812 refactor startup/shutdown of file system (#11089)
* refactor startup/shutdown of file system
2022-05-16 09:48:24 +08:00
timlyeee 80fb5bcd30 update simulator to x64 (#11054) 2022-05-13 16:24:23 +08:00
ChiaNing 045e6430cb add base-Renderer and separate & rename renderableComp (#10903)
* add base-Renderer and separate & rename renderableComp

* rename

* some fix

* misc fix

* format change

* file name change & api doc add

Co-authored-by: ChiaNing <sun.clooud.mo@gmail.com>
2022-05-09 17:44:56 +08:00
James Chen c717b4bd00 Add static property 'isJSBClass' for JSB classes and only enable it in DEBUG mode. (#10993) 2022-05-07 18:04:05 +08:00
李吉林 a827c002fb skip to export updateOctree (#10973) 2022-05-06 17:36:34 +08:00
hyde zhou 39f46507e2 add enum comments generation (#10922) 2022-05-01 08:11:14 +08:00
minggo d64458abf4 remove unneeded files (#10911)
* remove unneeded files
2022-04-29 11:20:44 +08:00
Yiwen 22fe482d05 In v3.6.0, the ccstd::string is used in GFXDef-common.h, this PR add (#10895)
support to ccstd::string so that the gfx-define-generator can work
again.

1. add `\:` to the second group of structMemberRE to make sure we can
   get ccstd::string instead of ccstd.
2. add `type.replace(/(\b)(?:ccstd::string)(\b)/, '$1string$2');` to
   make sure that ccstd::string can be replaced by string.
2022-04-27 17:07:39 +08:00
minggo 84c27e7f71 Merge branch 'v3.5.0' into v3.6.0_merge_v3.5 2022-04-24 13:41:27 +08:00
Santy-Wang 3da31ad481 move templates (#10781)
* move templates

* adjust github action

* adjust access authority
2022-04-18 10:24:54 +08:00
李吉林 f195f7dd2d add spline (#10684)
* add spline
2022-04-11 15:49:20 +08:00
Cocos Robot bff1fbe17d [ci skip][AUTO]: Automated clang-format update: c7f0f9c103dd416e903eedda42bc1f3f9c5368cb (#10682) (#10717)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-04-11 11:11:30 +08:00
minggo cd48cf7106 Replace CCASSERT with CC_ASSERT (#10682)
* replace CCASSERT with CC_ASSEERT
2022-04-10 16:03:46 +08:00
timlyeee 48e0b18920 add main.mm back while main function is needed for simulator (#10577) (#10697)
* add main.mm back while main function is needed for simulator

* add license
2022-04-08 14:57:18 +08:00
Cocos Robot 307eb701a1 [ci skip][AUTO]: Automated clang-format update: 48787d3a22ada5d0a8220075ac7859eaf8bcba44 (#10655) (#10660)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-04-06 10:28:01 +08:00
timlyeee d0195edb4f set V3.5.0 simulator window position to center (#10655)
* set simulator window position to center.

* add mac support
2022-04-06 09:59:36 +08:00
bofeng-song d8bdec5162 fix android crash due to eglSurface unavailable (#10621)
* skip setRendererAvailable &  isRendererAvailable (#10482)

* fix android crash due to eglSurface unavailable
2022-04-01 14:52:46 +08:00
timlyeee 61988646c1 add main.mm back while main function is needed for simulator (#10577)
* add main.mm back while main function is needed for simulator

* add license
2022-03-29 20:17:03 +08:00
minggo a6bf766170 Merge branch 'v3.5.0' into v3.6_merge_v3.5 2022-03-29 18:26:40 +08:00
qiuguohua 9a5f43d80c Modify the application interface name and remove the js keyword (#10556)
* Modify the application interface name and remove the js keyword
2022-03-29 15:08:49 +08:00
Cocos Robot c62f828551 [ci skip][AUTO]: Automated clang-format update: bdf9ae46e7c60cfc50876fff03424edccb4646e8 (#10543) (#10548)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-03-28 18:12:33 +08:00
qiuguohua 051e034f3f Put main.cpp in the template (#10543)
* Put main.cpp in the template
2022-03-28 18:03:51 +08:00
李吉林 baf95125fc profiler with surface transform (#10515)
* profiler with surface transform

* add namespace closing comment
2022-03-28 10:20:54 +08:00
hyde zhou b1e8733742 [v3.6.0 pipeline] uses Root::getPipeline instead of RenderPipeline::getInstance() (#10486)
Co-authored-by: Zeqiang Li <zeqiang-li@outlook.com>
Co-authored-by: GengineJS <476393671@qq.com>
Co-authored-by: zxx43 <zxx43@hotmail.com>
2022-03-25 11:04:50 +08:00
minggo ecbc619e4b remove unneeded macros (#10474)
* remove unneeded macros
* add cc_ for some macros
2022-03-25 11:01:48 +08:00
bofeng-song 8d5a2b0434 skip setRendererAvailable & isRendererAvailable (#10482) 2022-03-24 18:43:13 +08:00
hyde zhou af310bf8a4 use native root.pipeline (#10467) 2022-03-24 09:43:23 +08:00
李吉林 6c935352dd geometry renderer refactor (#10444) 2022-03-22 17:44:39 +08:00
Zeqiang Li fac0f58a71 skip getraw (#10429) 2022-03-22 11:16:27 +08:00
timlyeee 7d7f32e24e rename windows process name (#10422)
* remove file description in game.rc, the process name  will keep the same as project name
* add macro definition GAME_NAME for creating window, as no other way to read it.
2022-03-22 10:29:25 +08:00
hyde zhou 8fc925719e [v3.6.0 pipeline] pipeline update (#10391)
* add get pipelineSceneData

* present refactored

* added executor example
2022-03-18 15:27:38 +08:00
hyde zhou 573a1f0d7a [v3.6.0 pipeline] refactor native root.h (#10356)
* decouple native RenderPipeline
2022-03-16 16:56:18 +08:00
李吉林 d793157a71 add dynamic mesh (#10291)
* add dynamic mesh

* Mesh init refactor

* fix geometry renderer bug

* dynamic mesh review update

* MeshUtils refactor

* do not export createDynamicMesh
2022-03-16 16:55:49 +08:00