<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Cocos2d-x on Mamadou Babaei</title>
    <link>https://www.babaei.net/tags/cocos2d-x/</link>
    <description>Recent content in Cocos2d-x on Mamadou Babaei</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <lastBuildDate>Fri, 08 Jan 2016 22:10:30 +0330</lastBuildDate><atom:link href="https://www.babaei.net/tags/cocos2d-x/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Post-Processing Effects in Cocos2d-x</title>
      <link>https://www.babaei.net/blog/post-processing-effects-in-cocos2d-x/</link>
      <pubDate>Fri, 08 Jan 2016 22:10:30 +0330</pubDate>
      
      <guid>https://www.babaei.net/blog/post-processing-effects-in-cocos2d-x/</guid>
      <description>&lt;link rel=&#34;stylesheet&#34; href=&#34;https://www.babaei.net/css/hugo-easy-gallery.css&#34; /&gt;
&lt;div class=&#34;box&#34; &gt;
  &lt;figure  itemprop=&#34;associatedMedia&#34; itemscope itemtype=&#34;http://schema.org/ImageObject&#34;&gt;
    &lt;div class=&#34;img&#34;&gt;
      &lt;img itemprop=&#34;thumbnail&#34; src=&#34;https://www.babaei.net/blog/post-processing-effects-in-cocos2d-x/gray-black-and-white-shader.webp&#34; alt=&#34;Picture A: Gray (black and white) post-processing effect in Cocos2d-x&#34;/&gt;
    &lt;/div&gt;
    &lt;a href=&#34;https://www.babaei.net/blog/post-processing-effects-in-cocos2d-x/gray-black-and-white-shader.webp&#34; itemprop=&#34;contentUrl&#34;&gt;&lt;/a&gt;
      &lt;figcaption&gt;
          &lt;p&gt;Picture A: Gray (black and white) post-processing effect in Cocos2d-x&lt;/p&gt;
      &lt;/figcaption&gt;
  &lt;/figure&gt;
&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Update [2020/10/23]:&lt;/strong&gt; &lt;em&gt;Since I wrote this tutorial many things has changed in Cocos2d-x and I haven&amp;rsquo;t been using it in years as I switched to Unreal Engine 4. According to &lt;a href=&#34;https://github.com/NuLL3rr0r/babaei.net/issues/2&#34;&gt;this GitHub issue&lt;/a&gt; opened by my blog readers, in order for this code to work there has to be some modifications to the code which is provided on that issue by @lazerfalcon and @madrazo. I was also &lt;a href=&#34;https://stackoverflow.com/questions/34595594/cocos2dx-sprite3d-wont-render-to-texture/39073958#39073958&#34;&gt;having trouble with render to texture on Sprite3D&lt;/a&gt; which seems to have been solved in newer versions.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Despite the fact that &lt;a href=&#34;http://cocos2d-x.org/&#34;&gt;Cocos2d-x&lt;/a&gt; uses the &lt;a href=&#34;https://www.khronos.org/opengles/&#34;&gt;OpenGL ES Shading Language v1.0&lt;/a&gt; for the shaders (in order to learn more about the language, please refer to: &lt;a href=&#34;https://www.khronos.org/files/opengles_shading_language.pdf&#34;&gt;OpenGL ES Shading Language v1.0 Spec&lt;/a&gt;) the engine does not provide an out-of-the-box API to apply post-processing effects to the whole game scene output at once.&lt;/p&gt;
&lt;p&gt;In this tutorial we will learn an easy way to apply multiple post-processing effects to the game scene output all at once.&lt;/p&gt;</description>
    </item>
    
  </channel>
</rss>
