How to insert external rendering functions?

I’m a contributor of Effekseer, which is OSS third-party particle effect tool.

Some people requests to support Effekseer in Cocos Creator.
EffekseerForWebGL renders effects to current framebuffer directly.

I’m searching a function to insert external rendering functions in Cocos creator rendering flow like CommandBuffer.IssuePluginEvent (Unity’s function)

https://docs.unity3d.com/2019.4/Documentation/ScriptReference/Rendering.CommandBuffer.IssuePluginEvent.html

If this function is implemented, SpriteStudio, Live2d and many third-party tools can be used on Cocos Creator.

Best regards.

3 Likes

Need WebGL api to support, you can port it like this Component.
https://github.com/playnb/Live2dForCocosCreator/bloba/master/assets/components/live2d/Live2dComponent.ts

1 Like

Thank you for your information.
I saw a code.
It seem that live2d draw images into a framebuffer and the framebuffer is shown with SpriteComponent.

This method can only show transparent images.
Effekseer shows additive images and distorts backgrounds.
So it is not enough.