02-19-2010, 09:33 AM
|
#1
|
|
|
Gradient quality is poor (Flash vs. Photoshop)
Hi,
The quality of my gradients needs to be as good as in Photoshop. But no matter what I do, they look choppy (with banding). Here an example:
Flash (Timeline or AS3 the same) / Photoshop

Each box 200px x 200px
1. Box: 0x808080 -> 0xFFFFFF / horizontal
2. Box: 0x808080 -> 0xFFFFFF / vertical
3. Box: Both boxes merged with blend mode
What the heck is that? Can you guys reproduce that?
How can I get the best possible gradient quality with AS3?
thanks
|
|
|
02-19-2010, 10:23 AM
|
#4
|
|
|
Your gradients all look absolutely smooth and identical on my 24" iMac.
__________________
I used to be a paranoid-psychotic-schizophrenic, but don't worry, he's dead now.
|
|
|
02-19-2010, 11:13 AM
|
#6
|
|
|
I see no banding at all, they look more or less identical.
__________________
Performance King.
|
|
|
02-19-2010, 11:44 AM
|
#8
|
|
|
I barely / faintly see the banding, but none the less, know what you are talking about. What I've done to attempt to overcome banding is:
On your angled gradients, rotate the angle slightly, see if that helps.
Try to add more colors to the gradient, instead of black-white, try black-darkgrey-lightgrey-white
And a print technique back in the day was to blur the gradient in photoshop - you can alway apply a slight blur filter, playing with x/y amounts within a defined rectangle area on the bitmap.
I'm presuming that whatever handles gradients in Photoshop (and Illustrator for that matter), is quite a bit more powerful than how Flash defines/renders gradients - Since Flash 8 I've noticed gradients band in Flash. The above images though, if that's the worse you see the banding, I'm sure the majority of viewers looking at your app won't notice, as the other comments suggest  .
|
|
|
02-22-2010, 08:03 AM
|
#11
|
|
|
Thanks for testing. On my Macbook screen I also don't see it neither, however I do on my 24" Dell.
I fully agree to you guys, the user wouldn't barely see any difference. If I would use the gradient as a visual element, I couldn't care less...
However, I'm using the gradient as a map for the DisplacementMapFilter. And here it's getting tricky. When using the gradient as a DisplacementMap, the banding is actually visible, especially when different gradient and merged together with blendmodes.
See example here:
The first row uses a gradient generated by Flash, the second by Photoshop (both 0x000000 -> 0x404040).
Not that big of a deal, you might say..? See the result, when it's getting animated:
--> Click to see animated example
As you see, the Flash example sticks to the banding, where the Photoshop leads to a smoother (although not perfect) result. And this is only one gradient. When you copy two (or more) together, the banding is obviouslly copied as well and the result looks even worst.
You see that too?
So again the question: Anyone knows how to get pixelperfect dynamiclly created gradient in Flash? (Maybe with pixel bender?)
|
|
|
02-22-2010, 12:43 PM
|
#12
|

 |
A gargantuan hole, Michigan |
|
 |
783 |
|
|
Well, when using it as a DisplacementMap, yeah, I can definitely see the difference.
Theoretically, you could create a custom algorithm to draw up the pixels yourself, but frankly, you're not going to be getting anything nearly as perfect as Flash or Photoshop can do that way. If you want it the way Photoshop does it, you're probably just going to have to use Photoshop. If you have to make them dynamically, I think you could possibly get away with creating the Gradient with AS3's methods, but scaled up to 400% or so, create the Bitmap, and scale that down. Maybe.
__________________
Sam: "So how's life been treating you, Tom?"
Tom: "Like it caught me sleeping with it's wife"
www.thecodebot.com
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -4. The time now is 03:46 AM.
|
|