hi all
i've got a question about the [visit] function of CCNode

the original image is good with clear outline, nothing special
it composes of 5 leaves sprites inside
then I want to use [CCNode visit] to copy it
and here's the code
-(CCSprite *)flattenSprite:(CCSprite*)sprite textureSize:(float)textureSize {
CCRenderTexture *rt = [CCRenderTexture renderTextureWithWidth:textureSize height:textureSize];
[rt begin];
// store the original sprite position
CGPoint p=sprite.position;
//set original sprite to a target point for open GL to "visit"
sprite.position=ccp(textureSize/2,textureSize/2);
// open GL visit
[sprite visit];
//original sprite return to original point
sprite.position=p;
[rt end];
return [CCSprite spriteWithTexture:rt.sprite.texture];
}
by this function i can optimize the performance of the application by limiting the amount of the sprites existing on stage
but the "copied sprites" got a dark edge around it
it looks weird - especially when the sprites are ovelaping each others
please tell me if you have any clues / anywhere got useful information about this dark edge issue
thank you so much
best
Kit