How to zoom a circular region with Cocos2d?

I am working on a Cocos2d project for iPad and iPhone, and now I need to develop something that looks too small for iPhone. My first approach was to redesign it to make it possible to look bigger, but then I though that a region zoom effect would be great. The bad point is that I don't know how to do it... I really don't know what would be the correct/best approach to do it.

I have already checked out the Cocos2D CCLens3D build in effect, but it doesn't give me the results I want.

I would love to get the same result than when you long-press a textview/textfield on the UIKit: UITextField zoom

Thanks in advance for your help!

Upvotes: 1

Views: 340

Answers (1)

Ospho
Ospho

Reputation: 2796

If your still looking for a solution: http://rombosblog.wordpress.com/2012/06/03/magnifierglassforcocos2d/

Uses CoreGraphics to render. Although this implementation works (requires some tweaking), I found that it lacked that Gaussian distribution effect I was looking for and was quite expensive if you updated the magnifying effect in a small interval.

Upvotes: 1

Related Questions