DNESS / cocos2d-iphone

Automatically exported from code.google.com/p/cocos2d-iphone
1 stars 0 forks source link

CCMutableTexture2D and image editing algorithms. #864

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
With this class you could implement easily image editing algorithms, like: 
Gaussian blur, box 
blur, Edge Detection and Embossing effect filter.

I have implemented the gaussian blur effect thanks to CCMutableTexture2D.
http://www.cocos2d-iphone.org/forum/topic/6315
And it works in OpenGL ES 1.1!!

I propose these usages:
- blur effect in your textures.
- Shadows or glossy effect in the labels.
- New transitions.
- Awesome background effects in the HUD or in the pause menu.
- Depth-of-field effects

Currently CCTexture2D is very difficult to subclass without rewrite all code, 
so I also propose a 
little change in this class.

Replace:
"
free(data);
return texture;
"

to:

"
[self releaseData:data];
return texture;
"

Original issue reported on code.google.com by manu.valladolid on 13 May 2010 at 4:30

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by ricardoq...@gmail.com on 14 May 2010 at 8:15

GoogleCodeExporter commented 9 years ago
it doesn't work under the newest cocos2d 1.0.0, will you please update it.

Original comment by uxKe...@gmail.com on 27 Jul 2011 at 8:35

GoogleCodeExporter commented 9 years ago
In which way it doesn't work ? could you provide more info ?

Original comment by ricardoq...@gmail.com on 1 Aug 2011 at 5:58