Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Dec 21, 2009, 02:15 PM   #1
jrdoner
macrumors newbie
 
Join Date: Nov 2009
Location: Florida
UIView animation: really bad result.

0

I set up a small view, placed three concentric circles in it, and then applied the CGAffineTransformMakeScale function to it. This was meant to achieve the effect of expanding ripples, but unfortunately, the circles become very pixelated as they expand.

I would have thought that these transforms take advantage of the fact that Coregraphics draw routines create vector graphics, but my expanded image looks like an enlarged bitmap with no smoothing at all.

I guess I could create expanding circles by some sort of exotic timer dance, but is there a way to get good results just using the CGAffineTransforms?

Thanks for any insights on this.

jrdoner
jrdoner is offline   0 Reply With Quote
Old Dec 21, 2009, 02:35 PM   #2
North Bronson
macrumors 6502
 
Join Date: Oct 2007
Location: Los Angeles
When you say that you "placed" three circles in it, what do you mean? Did you insert three UIImageViews with circle bitmaps?

If you don't want pixelation, you will need to create a UIView subclass with custom drawing code. I assume this is what you did.

When you animate with Core Animation, it's usually animating a cached bitmap of your view (which is why it looks so smooth). This is why it starts to pixelate. There is a command that makes your animation redraw with every frame; this is probably what you want -- you will probably take a performance hit, though.

You might also want to take a look at OpenGLES for this kind of functionality.
__________________
North Bronson Software
North Bronson is offline   0 Reply With Quote
Old Dec 21, 2009, 04:05 PM   #3
maniacdev
macrumors newbie
 
Join Date: Dec 2009
Location: Vancouver, BC
Quote:
Originally Posted by jrdoner View Post
0
I would have thought that these transforms take advantage of the fact that Coregraphics draw routines create vector graphics, but my expanded image looks like an enlarged bitmap with no smoothing at all.
Coregraphics can draw vector graphics, but they have to start as vector graphics. You'll need to convert the image to a vector graphic first.
maniacdev is offline   0 Reply With Quote
Old Dec 21, 2009, 06:08 PM   #4
jrdoner
Thread Starter
macrumors newbie
 
Join Date: Nov 2009
Location: Florida
I used the path commands (...addArc) to draw the circles: do those commands not create vector graphics? If not, how do I insure that I created a vector graphic?
jrdoner is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
No bad result? kieMac Digital Audio 0 Jul 23, 2009 05:17 PM
Really.... really bad news Firefly2002 MacBook Pro 96 Aug 15, 2008 08:20 PM
I tried booting my ibook w/ MBP startup disks...bad results. cinecal PowerPC Macs 5 Sep 8, 2007 07:54 PM
Really, really bad news :( njmac Community Discussion 58 Dec 5, 2006 01:54 PM
Bad Results with Bootcamp 1.1 Drivers and Parallels DVNIEL Mac Pro 1 Aug 21, 2006 01:49 PM


All times are GMT -5. The time now is 11:09 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

Privacy / DMCA contact / Affiliate and FTC Disclosure
Copyright 2002-2013, MacRumors.com, LLC