Examples: How To Draw On Textures In Cocos2D, Perform Motion Blur, Get/Set Individual Pixels And More

In the past I mentioned an excellent guide on the basics of using Cocos2D CCRenderTexture to mask images.

I came across another post demonstrating how to performsome interesting effects that can be performed using CCRenderTexture.

In the post you will see how to use CCRenderTexture to  draw and sketch on a rendered texture using touch, how to perform motion blur using CCRenderTexture, information about a mutable texture class for Cocos2D that allows you to easily get/set individual pixels and more.

The post is by Stephen Itterheim, and you can find it here with an example project included.

Some very handy code snippets to have if you’re working with Cocos2D.

 

©2011 iPhone, iOS 5, iPad SDK Development Tutorial and Programming Tips. All Rights Reserved.

.

DeliciousTwitterTechnoratiFacebookLinkedInEmail


Leave a Reply

Your email address will not be published. Required fields are marked *