Technical solutions are sourced from forums, github open source repository, gitee open source repository, enthusiastic developers, Cocos engine development team, Cocos content development team, Cocos technical support team.
Technical support team provides
-
(v3.6.0) 2D lighting
Project git repository address:
https://github.com/cocos/cocos-awesome-tech-solutions/tree/3.6.x-release/demo/Creator3.6.0_2D_Light
Source from:
https://www.codeandweb.com/blog/2015/05/12/lighting-demo-cocos2d-x
https://github.com/CodeAndWeb/cocos2d-x-dynamic-lighting
Technical support team provides
-
(v3.4.0) 2D Shadow
Project git repository address:
Source from:
https://github.com/mattdesl/lwjgl-basics/wiki/2D-Pixel-Perfect-Shadows
Technical support team provides
-
(v3.6.0) spine uses non-atlas textures for local dressing
Project git repository address:
Source from:
https://blog.csdn.net/xjw532881071/article/details/107766975
Contributed by Gitee user (skyxu123 Follow the Wind), upgraded to version 3.4.0 by the support team with additional features
-
(v3.6.2) Drawing Board
Project git repository address:
Source from:
https://gitee.com/skyxu123/drawing-board
http://www.yini.org/liuyan/rgbcolor.htmSwitching the drawing board
Drawings
Undo
Clear
Eraser
Gradient color brush (preliminary)
Provided by Github user (zhangyizhang), upgraded to version 3.4.0 by the technical support team
-
(v3.6.2) 3D Pathfinding
Project git repository address:
Source from:
https://github.com/zhangyizhang/Extensions/tree/cocos/recastjs/demo
Add Barrier (Round Barrier & Square Barrier)
Adding characters and pathfinding
Climbing with connecting cable link
Note that the 3.6.x version of the engine does not yet support loading obj format model resources, so you need to use a third-party DCC tool to re-export them to fbx for use.
Provided by Github user (kirikayakazuto), upgraded to version 3.6.0 by the support team
-
(v3.6.0) Image split
Project git repository address:
Source from:
https://github.com/kirikayakazuto/CocosCreator_UIFrameWork/tree/SplitTexture/assets/Script/test
https://forum.cocos.org/t/topic/103699
Provided by Github users (shachaf, baibai2013, newGy, 2van, waiter), upgraded to version 3.6.0 by the technical support team
-
(v3.6.0) Gif image resource loading
Project git repository address:
Source from:
https://github.com/shachaf/jsgif
https://github.com/baibai2013/cocos-creator-gifLib
https://github.com/newGy/cocos-creator-gif-2.4.4
https://github.com/2van/cocos-creator-gif
https://github.com/waiter/Cocos-GIF
Contributed by Github user (caogtaa), upgraded to version 3.4.0 by the support team
-
(v3.4.0) 2D Fluids
Project git repository address:
https://github.com/cocos/cocos-awesome-tech-solutions/tree/3.4.0-release/demo/Creator3.4.0_2D_Fluids
Source from:
https://github.com/caogtaa/CCTricks/tree/caogtaa/20200709_metaballs
Technical support team provides
-
(v3.6.2)Area screenshots, screenshot saving
Project git repository address:
Currently, jsb.saveImageData is not supported in 3.0.0 ~ 3.6.0, and the engine plans to support it in 3.6.1.
Provides a solution that can use jsb.saveImageData until version 3.6.1 https://gitee.com/zzf2019/engine-native/commit/4af67e64a1caeb951016a9920efb7ee46d479ae5, which currently solution only supports saving imageData as native png files on android and ios
For more complete support, please refer to pr on 3.6.1: https://github.com/cocos/cocos-engine/pull/12503/files
Technical support team provides
-
(v3.6.0) Specify frames for animation playback
3D Skeletal animation
Project git repository address:
Source from:
Dragon Bone Animation
Project git repository address:
Spine Animation
Project git repository address:
Online game anti-addiction real-name authentication system SDK access provided by Github user (zihuyishi), technical support team is responsible for access debugging, real-name authentication client production and documentation writing
-
(v3.6.0) Real Name Authentication Access
Project git repository address:
Source from:
https://github.com/zihuyishi/realname-nppa-java-demo
http://www.uustory.com/?p=2419
https://wlc.nppa.gov.cn/fcm_company/index.html#/login?redirect=%2F
Technical support team provides
-
(v3.6.0) List View Extensions
Project git repository address:
Technical support team provides
-
(v3.6.0) 3D model cutting
Project git repository address:
Source from:
- Currently, only models with builtin-unlit materials are supported for cutting.
- The engine module requires the use of a Bullet-based physics engine.
- Setting CullMode to None for materials will somewhat improve the cut mesh through the mold, but performance will be degraded.
- There is currently no cut function adaptation for rotated model nodes, so it is necessary to ensure that the model's are not rotated.
- The performance of the current programme is not optimal.
- The default detection accuracy of the current solution is 1/256 between two points, and too small fragments cannot be cut at this accuracy. The accuracy can be improved by increasing the raycastCount, but the performance will be degraded.
- Not all model nodes will not be cut through the mold, this is related to the original mesh of the model, the specific reasons are not clear.
- cut meshCollider fragments are currently unable to physically collide.
Provided by Github user (kirikayakazuto), upgraded to version 3.6.0 by the support team
-
(v3.6.0) Custom shape masks
Project git repository address:
Source from:
https://github.com/kirikayakazuto/CocosCreator_UIFrameWork/tree/SplitTexture
Technical support team provides
-
(3.6.0) tween performs Bessel motion and motion shifting
Project git repository address:
Source from:
Provided by forum user (tuyazuo), upgraded to version 3.6.2 by the support team
-
(v3.6.2) Horizontal and vertical screen switching
Project git repository address:
Source from:
https://forum.cocos.org/t/topic/79780
Note: The current 3.0.0 ~ 3.4.1 versions of the ios platform will shift the click position after calling the native trans-screen function, so you need to merge the pr manually: cocos/engine-native#4265, the merged pr file is included in the demo.
User xjz1994 provided open source solution, upgraded to version 3.6.0 by technical support team
-
(v3.6.0) Quadtree collision optimization
Project git repository address:
Source from:
Technical support team provides
-
(v3.6.0) 3D Billiards Network Synchronization
Project git repository address:
Source from:
Client: CocosCreator 3.6.0, Server: Node.js, Networking: WebSocket, Server startup: Execute the command line cd AppServer in the project folder, after that execute node AppServer.js, see the output "Listen 8002 " which means the server starts normally.
Client launch method: Use Dashboard to import the project in this folder and test it.
It has been verified that the synchronization effect in web, android, ios and other three platforms is normal, and the rest of the platforms are not verified yet.
A simultaneous test recording of the web preview and the editor simulator preview is provided here.
See more click on the link to watch:http://download.cocos.org/CocosTest/zhefengzhang/NoDelete/NetworkBilliards.mp4
Technical support team provides
-
(v3.6.0) Detect if the model has a second set of UV
Project git repository address:
Background:
To generate a lighting map, the model needs to contain a second set of UVs in addition to its own UVs, see https://docs.cocos.com/creator/manual/zh/concepts/scene/light/lightmap.html for details. So how to quickly determine if the model has a second set of UVs is a key step. Instructions for use:
- add check2uv to the expansion
- Refresh the expansion, you can see the results of the test in the console
Engine team youyou provided, technical support team upgrade project
-
(v3.6.0) raphael (Graphics extension and SVG loading)
Project git repository address:
https://github.com/cocos/cocos-awesome-tech-solutions/tree/3.6.x-release/demo/Creator3.6.0_Raphael
Need to know: There is a bug in the engine that causes the svg scene to render abnormally. A detailed description of the problem can be found in issues, and the solution is to customize the engine by referring to the red code in the following figure.
Technical support team provides
-
(v3.6.0) Model animation residual effect(Pending program)
Project git repository address:
Show:
Web and mini-game performance is okay, but performance is not good on native platforms.
Technical support team provides
-
(v3.6.2) Audio and video multiplier playback
Project git repository address:
Source from:
https://developer.mozilla.org/zh-CN/docs/Web/API/HTMLMediaElement/playbackRate https://developer.android.google.cn/reference/android/media/MediaPlayer#setPlaybackParams(android.media.PlaybackParams) https://developer.apple.com/documentation/avfoundation/avplayer/1388846-rate
Note: A custom engine is required. The native (iOS, Android) and web support for audio multiplier and video multiplier playback varies, so the actual playback needs to be platform and device specific.
Technical support team provides
Provided by Github user (kirikayakazuto), upgraded to version 3.6.0 by the support team
-
(v3.6.0) TiledMap Auto Pathfinding
Project git repository address:
Source from:
Provided by forum user @jogi, upgraded to version 3.6.0 by the support team
-
(v3.6.0) Spine Bone Control
Project git repository address:
Original posting address: https://forum.cocos.org/t/topic/126989
Show:
Unity assetstore user Mario Haberle provided, upgraded by the support team to port the game to version 3.6.2
-
(v3.6.2) FPS Single player shooting simulation
Project git repository address:
Game operation keys: W = forward, A = left shift, S = backward, D = right shift, shift + W = speed run, C = crouch, left mouse button = shoot, right mouse button = aim, space = jump, Q = elbow strike, R = change magazines, mouse wheel = cut gun
Source from:
https://assetstore.unity.com/packages/3d/characters/humanoids/sci-fi/easy-fps-73776
Show:
Detailed test video: https://download.cocos.org/CocosTest/zhefengzhang/NoDelete/20220612_181524.mp4
Content development team to provide, by the technical support team to correct some game performance
-
(v3.6.2) VideoTexture
Project git repository address:
Because there is a 100m limit on the size of a single file upload on github, you need to open the link http://download.cocos.org/CocosTest/zhefengzhang/NoDelete/3.6.2-videoTexture-native-folder/native.zip to download and unzip the custom engine part into the project
WeChat browser and WeChat mini-games are not supported In addition to regular local video and remote video, the native platform also supports support for playing live streams. Link to test live streaming: rtmp://mobliestream.c3tv.com:554/live/goodtv.sdp (note that the clip of MediaVieo component is set to null, otherwise it will not be played using url) ios uses hard decoding, android uses soft decoding
Provided by Cocos forum user @moli3663, technical support team upgraded to 3.6.2
-
(v3.6.0) 2D Physical water buoyancy
Project git repository address:
Original posting address: https://forum.cocos.org/t/topic/112948
Show: