Flash bitmap wavy scale
- Started
- Last post
- 20 Responses
- one53
have you ever tried to scale tween a bitmap in flash and have it get all wavy on you? anyone have any fixes for it? because it looks like crap.
- schjetne0
Depends what you mean by "wavy".
- Mick0
I've had this prob... no idea why it does it.
You can see it on the background image in this flash movie...
http://www.mixart.com/4dusa/rand…it waves too and fro when things animate over it. I've only notice this type of thing happen when a large (as in pixel size) JPG is used in flash.
- schjetne0
Aaaah. A standard pixel shift. Try setting the alpha of the picture to 99%. There are some other ways to fix this too, but this seems to be the easiest.
- one530
yeah, i had read about changing the trans to 99%, but hat doesn't seem to work either. the bitmap is compressed quite a bit but even when i bump up the jpg compression to 95 it still does the pixel shift wave-like crap. you can view an example of it here.
- Mick0
Nice effect ;) hehe
Tried exporting your JPG from another app? I heard there were some problems with PS7 saving JPGs. May not be relevant though.
- eloosive0
On a similar topic, I found PIXELRANGER's solution effective...
Here is the deal.
Only use PNGs
Always align any PNGs or bitmaps to a corner in your symbol. DO NOT EVER align it in the center of the symbol.
Always go into the library and uncheck the smoothing option.
Finally I always expand any images with a transparent outline by 2 pixels on all sides becuase the registration point (that dot that cross you see inside the symbol) has a tendency to warp whatever part of the image it is over. Therefor..if I have a 2 pixel buffer around the image. The registration point isn't directly over any pixels.
With those tips I haven't had a pixel shift in any of my projects not even in development stages in over 2 years.
- neeko0
set your images to 1,1 instead of 0,0.
- schjetne0
All those tips helps when the picture is static, but he's scaling a picture here, and as far as I know, that effect is gonna happen no matter what when you scale a jpeg in Flash.
Sorry, man, you just gotta live with it.
- one530
yeah, i tried it all. png, aligning it to the corner of the symbol, 1, 1, 99% trans etc..
it seems as if nothing can fix it...
what crap.
it doesnt do it in the timeline , but as soon as i publish it gets all wave-like. it does do it in the timeline when the project is scaled though.. it looks like flash just sucks at scaling bitmaps. they should fix it.
- schjetne0
That's because in realtime the only sensible solution for scaling is "nearest neighbor", so basically your stuck with that stuff, unless you figure out a way to use over scaling processes in realtime. That would be a real processor hog, though.
Personally I think it's a real good looking effect, but that's just me :)
- neeko0
i refuse to believe there isnt a workaround for this problem.
- unknown0
Think how it does it in photoshop... it resamples the image by creating/removing pixels... where as in Flash you've still got the same image at a different size.. so flash is checking the size and rounding up and down... hence every 'n'th line you get a jump.
- jking760
makes perfect sense that Flash can't scale a Bitmap image and make it look good... you're trying to take one pixel depth to something higher, it's going to look shite no matter what.
- one530
it doesn't make _perfect_ sense.. i am not trying to scale more than 100%... just trying to go from 92% to 100%..
- schjetne0
What about this do you not understand? It really DOES make perfect sense.
- tex0
Yeah, I've had the same issue several times. Call it "dropping frames" here.
I think it is a memory issue created by the tween. I have searched Flashkit for answers and come up empty.
try another effect before the bitmap appears then fade it in perhaps. Mabey a vector version of the picture.
Just a suggestion
- kendo0
I have a similar problem. It's a bitmap text and i'm not changin its scale but its alpha over 3 keyframes. Although it stays in the exactly same x-y cordinates, when I publish it, it looks like it's moving about 1 pixel. Plus, it seems fine in IE, but doesn't in Netscape. After I tried Pixelranger's solution, it's just less recognizable, doesn't solve it completely.
- estlin0
The only real solution, though impractical (because of file size), is to convert the bitmap to a really highly detailed vector using the trace bitmap option in flash. Mess with the settings a bit till you get something you like.
- estlin0
nevermind my last post, I tried using actionsript to scale it, and freak, it works, smooth like silk.
a sample would be to convert your image to a movie clip, scale it to the starting size, then on the clip put this code:
onClipEvent (enterFrame) {
if ( _xscale < 100 ) {
_xscale += .1;
_yscale = _xscale;
}
}The .1 value you can change around
to make quicker tweens, and of course the _xscale <100 part refers to the ending scale.
- neeko0
theres a workaround for everything dammit.