31
Support / Re: Add a Border to a sprite
« on: May 31, 2013, 12:24:28 pm »
Sorry for bumping the old thread.
I recently implemented Flash-like dynamic glow/stroke in Cocos2d-iPhone by running pixel by pixel around sprite's border (based on pixel's alpha) and placing tiny circle sprites on a new texture (sprite sized).
Then I create a new sprite from the texture with outline and place it behind the main sprite. It's too expensive to run every frame but ok for a level preloading (0.5-1s for multiple big sprites even on iPad 1).
Will it be possible to reproduce this algorithm with Unity and 2d Toolkit? I need something like glReadPixels and CCRenderTexture.
I recently implemented Flash-like dynamic glow/stroke in Cocos2d-iPhone by running pixel by pixel around sprite's border (based on pixel's alpha) and placing tiny circle sprites on a new texture (sprite sized).
Then I create a new sprite from the texture with outline and place it behind the main sprite. It's too expensive to run every frame but ok for a level preloading (0.5-1s for multiple big sprites even on iPad 1).
Will it be possible to reproduce this algorithm with Unity and 2d Toolkit? I need something like glReadPixels and CCRenderTexture.