Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I am using a 3D animation (CCLens3d) and a lightning effect which uses OpenGL rendering (I might be wrong so please check the example project).. Lightning project can be found here. If I don't use my 3D animation, everything is fine.. but when I use it, all other sprites are redrawn according to the current color of the lightning.. How can I fix this? Thanks..

Here is some code

CCLens3D *lens =
[CCLens3D actionWithPosition:ccp(winsize.width/2, winsize.height/2)
                      radius:200
                        grid:ccg(50, 50)
                    duration:2.0];


Lightning *lightning = [Lightning lightningWithStrikePoint:ccp(200,300)
                                      strikePoint2:ccp(250, 40)];
[self addChild:lightning z:1];
share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.