1
\$\begingroup\$

I want to do post processing effects so I was thinking If I could just make custom framebuffer in cocos2dx like OpenGL and render the ALL SCENES objects in it. I want a single frame buffer for all scenes. Is there any way? Thanks.

\$\endgroup\$
2
\$\begingroup\$

Here is some theory and practise on framebuffers:https://learnopengl.com/#!Advanced-OpenGL/Framebuffers it also explaines how to implement some very simple post-processing effects

\$\endgroup\$
0
\$\begingroup\$

Framebuffers will be your friend. You can create as many as you wish with glCreateFramebuffers(). Here is a documentation page, which lists all handy functions for doing that in "raw" OpenGL. Documentation

cocos2d has the RenderTexture class, which will fit also your needs. Here is a quick overview click me

\$\endgroup\$
  • \$\begingroup\$ The "click me" link is dead. It looks like the Wiki may have changed. Looking at the existing 3.x docs, I could not find a match. Do you know whether there is still such a document? \$\endgroup\$ – Alexis Wilke Feb 6 at 0:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.