AS3 - UVT Bitmap Distortion
Hi guys,
Does anyone have any insight into how bitmaps are distorted when using UVT data and the Graphics.drawTriangles() method in Flash CS4? It is too quick for the bitmaps to be drawn pixel-by-pixel, and standard Matrix transformations won't produce the same effect due to their affine nature. I guess scanlines are a possibility.
Ultrashock Forums > Flash > ActionScript
Posted on: 2008-11-28
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Bitmap Distortion
Hi all...
I'm sure everyone here knows how bad flash (Mx) is at using bitmaps. If x and y aren't pixel exact the bitmap gets distorted, also if the smooth option is activated.
My problem is I have a few bitmaps that are inside some mc (buttoms, backgrounds, etc) and some of them get distorted. All the movieclip containning them are pixel exact (position not 54.3 or 23.1) and the smooth option is not activated.
I going crazy... anyone knows why bitmaps distort in flash mx?? (and all the previous versions)
Any help is apreciatted. Thx.
Pier
[F8] Bitmap Distortion
Hi all
Is there a way of distorting an bitmap in flash so that i can animate it to look as if it is on a 3d surface? i've attached the movie clip i'm working on to clarify, i'd like an image to appear on the back.
You seem to be able to distort shapes but not bitmaps or symbols.
if any one can tell me if it's possible or if i'm wasting my time that would be great.
thanks in advance.
Bitmap Distortion
I have created buttons in Photoshop that are rectangle with small (not) anti-aliased text. I export them as PNG files and Import them into Flash. When I convert one of these files to a Button or Movie in Flash, the text becomes distorted and out of proportion. Any idea what I am doing wrong?
Bitmap Images Distortion
I'm sure this is a basic problem but is there any ways to stop bitmap image distortion? In particular anything with a curved line seems to come out jagged. Any help would be appreciated.
Bitmap Distortion Problem
Hello,
I found a lot of posts on this topic but I haven't found the solution that would generaly remove the problem. So the problem is that graphics imported in flash when exported sometimes get distorted. Some are solving this problem by setting alpha 99%, some by moving bitmap by half pixel or with resizing image. But none of this works for everything and always. Also I noticed that the size of the movie can couse the problem.
Is there a solution for this problem. Should the graphics be in some particular format like gifs with specified dihter or reduction algorithms.
I am making a flash presentation and I import png graphics and have a lot of problem with this.
Thanks
Bitmap Symbol Distortion
Often when I convert a bitmap to a symbol and publish it, the image symbol becomes distorted with an extra jagged edge.
I've tried everything I can think of and read about to smooth the edge (minor resizing, Alpha setting to 99%, etc) without any results.
And this only seems to happen with a symbol - the original bitmap when published looks fine.
Can anyone help me out here?
CS4 - Graphics Bitmap Distortion
Hi guys,
Does anyone have any insight into how bitmaps are distorted when using UVT data and the Graphics.drawTriangles() method in Flash CS4? It is too quick for the bitmaps to be drawn pixel-by-pixel, and standard Matrix transformations won't produce the same effect due to their affine nature. I guess scanlines are a possibility but I have a feeling that would also be quite slow.
Rotation Distortion MC With Bitmap
Hi, I am experiencing a strange problem.
I am attaching a bitmap in an MC.
i try to rotate the MC a tiny bit (few degrees) then what happens is that the Bitmap gets distorted. The straight lines turn kinda edgy...
If only i bring it back to _rotation =0, then everything clears up as it never happened.
I have been rotating it with actionscript, but then i went and tested it manually. Same problem...anyone has experience and solution with this issue?
take a look here:
http://mgpepe.com/stuff/gotoAndLearn/ro ... roblem.swf
HYCH
lol saw the discussion with Hasan on HTH...
Bitmap Distortion In Flash Player
I am having some problems with bitmap distortion in my flash movies. Surely am I not the only one to experience this since it seems to be a problem with the way flash player renders bitmap? it is usually only one pixel in height, and moves from time to time, which makes everything looks bad.
any help on how to fix this would be greatly appreciated.
Thanks.
Resize Bitmap, Then Draw(Bitmap) To A Separate BitmapData, Doesn't Work Right...?
Hey everyone,
So, I'm loading a jpg into a BitmapData variable, which is liked to a Bitmap variable, then I resize the Bitmap variable.
Every 10 secs it unloads the current bitmap and loads a new one.
But I want to draw the resized bitmaps to a separate BitmapData Variable, except when I try and do that it draws it in the original size... ? Why doesn't it draw the new resized version?
Any ideas?
CopyPixels While Moving Bitmap When Overlay Layer Has Bitmap Effects Bug?
hi,
Wanted to create a walking character, using a large image of all this character postures as resource.
Did this:
1. Created a new Bitmap with its BitmapData
2. Created an EnterFrame event listener to this Bitmap where:
a. I move the Bitmap to the right
b. I change the character posture by copying pixels from the large image to the characters BitmapData
Works fine...
But then I've added another layer (sprite) on top of this bitmap.
Added a glow filter to this layer (sprite) and got the following bug:
The character (Bitmap) is leaving trails as it moves... as if Flash doesn't clean after it...
Please see attached files - it's all there, short and clear.
Basically, the pseudo code looks like this:
--------------------------------------------------------------------------------------------------------------
var __sourceBmpData:SourceBmpData = new SourceBmpData(72, 128);// SourceBmpData is a linkage name to an image on the library
var __imgBmpData:BitmapData = new BitmapData(24, 32, true, 0x00000000);
var __imgBmp:Bitmap = new Bitmap(__imgBmpData);
this.addChild(__imgBmp);
// add event listener
__imgBmp.addEventListener(Event.ENTER_FRAME, Walk);
// bug layer
var bug_mc:Sprite = new Sprite();
this.addChild(bug_mc);
var glow:GlowFilter = new GlowFilter();
glow.color = 0xFF0000;
bug_mc.filters = [glow];
// enter frame
private function Walk(event:Event):void {
__imgBmp.x = 32 + __posX * 12;
__imgBmpData.copyPixels(__sourceBmpData, new Rectangle((__posX % 3) * 24, 32, 24, 32), new Point(0, 0));
__posX++;
}
--------------------------------------------------------------------------------------------------------------
Is it a bug or am I doing somthing wrong?
Thanks,
EZ
CopyPixels While Moving Bitmap When Overlay Layer Has Bitmap Effects Bug?
hi,
Wanted to create a walking character, using a large image of all this character postures as resource.
Did this:
1. Created a new Bitmap with its BitmapData
2. Created an EnterFrame event listener to this Bitmap where:
a. I move the Bitmap to the right
b. I change the character posture by copying pixels from the large image to the characters BitmapData
Works fine...
But then I've added another layer (sprite) on top of this bitmap.
Added a glow filter to this layer (sprite) and got the following bug:
The character (Bitmap) is leaving trails as it moves... as if Flash doesn't clean after it...
Please see attached files - it's all there, short and clear.
Basically, the pseudo code looks like this:
--------------------------------------------------------------------------------------------------------------
var __sourceBmpData:SourceBmpData = new SourceBmpData(72, 128); // SourceBmpData is a linkage name to an image on the library
var __imgBmpData:BitmapData = new BitmapData(24, 32, true, 0x00000000);
var __imgBmp:Bitmap = new Bitmap(__imgBmpData);
this.addChild(__imgBmp);
// add event listener
__imgBmp.addEventListener(Event.ENTER_FRAME, Walk);
// bug layer
var bug_mc:Sprite = new Sprite();
this.addChild(bug_mc);
var glow:GlowFilter = new GlowFilter();
glow.color = 0xFF0000;
bug_mc.filters = [glow];
// enter frame
private function Walk(event:Event):void {
__imgBmp.x = 32 + __posX * 12;
__imgBmpData.copyPixels(__sourceBmpData, new Rectangle((__posX % 3) * 24, 32, 24, 32), new Point(0, 0));
__posX++;
}
--------------------------------------------------------------------------------------------------------------
Is it a bug or am I doing somthing wrong?
Thanks,
EZ
Can't See A Bitmap Under A Mask When Moving The Bitmap With Elastic Motion
The um... title... kinda said it all. I have a mask. I have a bitmap under the mask. I want to move the bitmap around with elastic motion so I put it in an MC and cut and pasted some functions.
I can see it moving fine when i delete the mask. And I can see it masked fine when I delete the functions. But when both are there I just get emtpy space.
Is there something I don't know but shoud about elastic motion and masks or is there something ****y going down and I probably need to post the FLA?
Thanks all,
-damnit.
Stretch Bitmap-filled Object W/o Stretching Bitmap?
I've got a bitmap-filled rectangle I'm using as a background. I'd like to resize the rectangle dynamically without stretching the bitmap, ie the bitmap needs to tile.
I can do it with BitmapData using the tile option, but it's really slow. Is there an easier way to do this that I'm missing?
Draw A Bitmap Line Or A Bitmap Polygon
I need to create a flash/flex/ActionScript3 program that allows user to draw lines and polygons with legends. The legends are provided as bitmap. I'm thinking that I have to use bitmapfill to do the work. Is this the best approach?
As the line may change the direction, I will need the bitmapfill to change direction following the direction of the line. What is the best way to do this? Any example out there?
For polygons, can we use bitmapfill to fill irregular shapes?
Thanks,
-Maggie
Bitmap Font Text Drawn To Bitmap
Is there a way to write a bitmap font right into the bitmap being desplayed?
Mabey better worded:
myBitmap.draw(image, t) draws a picture is there a way to draw text?
I'm stuck even if its just a work around in some way I would like to know... (the current work around i have in my head is writing it in a movieclip turning that into bitmap data and drawing it... esentially creating a prototype answering my question... but a built in way would be easier probably).
Draw A Bitmap Line Or A Bitmap Polygon
I need to create a flash/flex/ActionScript3 program that allows user to draw lines and polygons with legends. The legends are provided as bitmap. I'm thinking that I have to use bitmapfill to do the work. Is this the best approach?
As the line may change the direction, I will need the bitmapfill to change direction following the direction of the line. What is the best way to do this? Any example out there?
For polygons, can we use bitmapfill to fill irregular shapes?
Thanks,
-Maggie
Faster Option Than Bitmap Smoothing? Or Speed Up Bitmap Smoothing?
Hey,
Is there any way to speed up bitmap smoothing? or to achieve the same effect with something less processor intensive? Or maybe a way to reduce the amount that it smooths or something. Btw, when I say speed up I mean less processor intensive.
In the project I'm currently working on the image must be rotated and scaled smoothly to 1.5 times it's starting size. If there is any different way to achieve a smooth-ish image please let me know. Even if it's really complicated, if it's at all faster I want it hear it.
How I'm currently doing it is I load in the images (jpg) from an XML file, create a bitmap take the bitmap data from the loaded jpg and enable smoothing. Then I add that bitmap to a movieclip and then I do my stuff from there. It's a complex photo viewer. It all works, but I need to make it work using less resources.
Any ideas are MUCH appreciated! Thanks
Png Pic, And Seeing Distortion
hi, whenever I try to add a png and export to swf, the png looks kinda distort, I tried making it looseless, and adjusting the quality to 100%. and it's still showing missinng lines and shifting pic size. anyway i can solve that??
Plz Help (distortion)
I made a curvy swirl in macromedia fireworks then I exported the png into flash. When I export my flash movie, the swirl is not a clean curve, it gets a little distorted. Why is this and what can I do to avoid this? BTW I use flash 5
MC Distortion
Confused! I created a button on my main timeline.
I have Movie Clips resting on the main timeline.
I placed the same button into the MC's and the buttons become distorted. They scale about 30% wide. the height seems to be just fine.
Why, oh why could this be happening??
Laurel
Mc's Distortion
Hi,
I'm looking to find a way to distort the side of a mc with AS to get something like the fla I've attached. On this one, the motion is simply done using shape tweening, but I want to be able to do that on mc's.
I've found in the AS Help some docs about matrix, transformPoint, etc, but I just can't figure it out to simply scale up or down the sides of a mc.
Any help would be great! Thanks!
Distortion Of Jpg Buttons
hi all, i'm new here and i allready got a problem
i'm trying to make a flash navigation wich is based on imgages i made in photoshop.
when i do this my jpg or gif images get distorted on a weird way. The quality of the images is fine, but when i roll over some buttons (also gif/jpg), some pixels in my background image or button image get shifted.
- i use Flash 5,
- u can look at the problem here --> http://www.geocities.com/wvdgrinten/index.html
the top left button has got this problem, and also the central metalic ring is not as round as it should be.
(the origanal jpg has a perfect circle)
I don't know why this happens, hope u lads know an answer 2 my newbee question
Symbol Distortion - Help
I'm making a little animation that involves seeing many cows. I made one "cow" symbol, wanting to use it repeatedly to show that there are several cows in a field. I have one layer I call "Cows" as well. However, if I put more than one symbol per frame, the animation distorts itself in a way for which I don't want.
Example: 5 cows are in the movie, on one layer. 100 frames later, they are motion tweened to move from one side of the screen to another. HOWEVER, they also end up getting scaled to like 50% or something in the process.
This doesn't happen when I use one symbol per layer. So I have to have a layer called "Cow1", "Cow2", Cow3", etc, and animate each layer. Is this really necessary? Am I missing something here?
Can I not have more than one symbol per layer?
Video Distortion
I have made some AVIs using a screen capture program that I am adding to my movie. I have used a 3rd party encoder and converted them to SWFs. I have imported them and put them into the appropriate scene. I then published the stand-alone EXE. When the videos played, the mouse movements in the video cause distortion even though they didn't when I just played the AVI with Windows Media Player. I was wondering what is causing this and if I can eliminate it.
Bmp Distortion When Importing...
i remember seeing a tutorial on this awhile back somewhere but i cant find it. im sure you all know how if you import a jpeg or gif into flash, it gets distorted (one side gets chopped and that fragment goes on the other side). well im working on a design with some images i made in photoshop and this is slowing me down too much. could someone tell me the steps to keeping bmps so they dont distort?
Image Distortion
My images are distorted! How can I make them so they don't?
I have already made them to symbols opened them and broken the apart but that didn't help. I have also turned off the smoothing in the properties dialog.
http://www.idefilm.se
Image Distortion (i Have Tried Everything)
ok, i have a background image, and them a series of images above it that have the background image as well as part of an animation... its hard to explain but i have uploaded the .fla for you to see...
i have tried every trick that i could think of, making it a symbol and putting it at 99 alpha, breaking it up, turning off image smoothing, adjusting the position over and over, nothing works...
i'd love to see if someone could figure this out.
heres the .fla
http://www.seeminglyawake.net/kyle/news.fla
Image Distortion
Hi,
Ive created a movie which contains a logo, all is ok when previewing in flash, but when I preview in browser the logo is slightly distorted, there is nothing wrong with the original image it appears to be a problem only when displaying in browser.
Ive tried saving the image as .png, .gif but this has no affect.
cheers
Text Distortion?
Hi. I'm getting some weirdness when I publish these maps. In the authoring environment, the text that names the roads looks fine, but when I publish to an .swf, some of the text (seemingly randomly) becomes distorted and misshapen, as though I had run an optimize shapes on it (if you publish the attached .fla, you'll notice it in the upper right hand corner of the left hand map if you zoom in on it). These maps were imported from Freehand, and the text was converted to paths before import (I had to do this because the text would be offset if I didn't.)
I am flummoxed. Does anyone know what I did wrong? Thanks for the help!
Matt
Text Distortion?
Hi. I'm getting some weirdness when I publish these maps. In the authoring environment, the text that names the roads looks fine, but when I publish to an .swf, some of the text (seemingly randomly) becomes distorted and misshapen, as though I had run an optimize shapes on it (if you publish the attached .fla, you'll notice it in the upper right hand corner of the left hand map if you zoom in on it). These maps were imported from Freehand, and the text was converted to paths before import (I had to do this because the text would be offset if I didn't.)
I am flummoxed. Does anyone know what I did wrong? Thanks for the help!
Matt
Text Distortion?
Hi. I'm getting some weirdness when I publish these maps. In the authoring environment, the text that names the roads looks fine, but when I publish to an .swf, some of the text (seemingly randomly) becomes distorted and misshapen, as though I had run an optimize shapes on it (if you publish the attached .fla, you'll notice it in the upper right hand corner of the left hand map if you zoom in on it). These maps were imported from Freehand, and the text was converted to paths before import (I had to do this because the text would be offset if I didn't.)
I am flummoxed. Does anyone know what I did wrong? Thanks for the help!
Matt
Jpg Distortion Issue
When I apply an animation (in a different layer) over or behind the jpg, the jpg gets distorted slightly while the animation plays over it. Can anyone help?
Sound Distortion, Help
Hi!
I am trying to upload a 10 second, event based sound with my flash movie. I took the sound (an MP3 to AIFF file) out of iTunes, edited it in iMovie then brought it back into flash. When I play the flash movie locally, it sounds fine. (It's at 44Khz, Stereo) But when I upload it onto the server, there's a weird echo and this terrible distortion. in fact, you can check it out at www.spicymango.com.
I've tried many different clips, this happens over and over. I need help!!!
Thanks,
Leena
Pixel Distortion
i have some .gifs in a flash file, that look fine when i have them in design time. but when i preview or export the file, they become distorted. is there any way to prevent this?
Pixel Distortion
whenever i import an image and use it in a movie a tiny bit of the movie gets cut off, just a pixel but it can make the movie look messier. can this be fixed?
Massive PNG Distortion
I'm not necessarily new to flash, yet only recently have I been attempting to really do anything with it. And today I noticed that EVERY png file I imported into flash came out extremely distorted when I previewed the movie. I tried about 3 or 4 completely different PNGs, and all happened the same.
I notice "noise"-esque discoloration (small, but noticable if you look for it) in preview mode. I'm not talking distortion so bad they're unrecognizable or anything like that, but badly enough to destroy small text. When I import the pngs into flash, they look perfectly normal--it's only in the preview they come out distorted.
I went so far as to look back on previous movies I had made with PNGs and (although I didn't catch it when making them) they too were noticably distorted between the fla and the swf.
Just for clarification, when I say 'preview' I mean 'test'
Masssive PNG Distortion
I'm not necessarily new to flash, yet only recently have I been attempting to really do anything with it. And today I noticed that EVERY png file I imported into flash came out extremely distorted when I previewed the movie. I tried about 3 or 4 completely different PNGs, and all happened the same.
I notice "noise"-esque discoloration (small, but noticable if you look for it) in preview mode. I'm not talking distortion so bad they're unrecognizable or anything like that, but badly enough to destroy small text. When I import the pngs into flash, they look perfectly normal--it's only in the preview they come out distorted.
I went so far as to look back on previous movies I had made with PNGs and (although I didn't catch it when making them) they too were noticably distorted between the fla and the swf.
Just for clarification, when I say 'preview' I mean 'test'
Any help would be greatly appreciated.
Image Distortion
Hello. I really need some help. Flash is making me tiiiiiired! I have been trying to solve this problem for some time now! The problem is that when i import an image (both png and bmp) into flash the left part becomes distorted. More specifically the image is a frame and the left part of the frame seems to become 2 pixels wide instead of one like the rest of the frame. Hope someone can help me!
Image Distortion
hi
i created a outline image in photoshop and saved it as a png file, then imported it to flash..when i put it on the page the image is nice and smooth, but when i test it on the internet, the image comes
out choppy..not smooth. any idea why this happens and how do i fix it.
thanks
Image Distortion
I was wondering if anyone knew anything about image distortion in Flash MX. I am not sure how to explain it, there was an old OZ Wheels racing website that when you clicked on a certain button, the image would stretch to another part of itself, it would distort and bend to another spot....and I can't possibly figure out how that was done. I was wondering if anyone 1. knows what the hell I'm talking about and/or 2. can tell me how this is done. I'd appreicate dearly any help that can be offered.
FrankieB
Png Color Distortion - Please Help
I have created a movie that floats in the center of the screen and to create a dropshadow under it I made a .png file in fireworks and imported it into a frame on the lowest layer.
My problem is that when I open the movie in the browser window, the stage color no longer matches the the background color in the html. I have the color set to #cccccc so there shouldn't be any problem.
I can only assume that the .png dropshadow is the problem.
Any Solutions???
Help With Color Distortion
Hi guys,
Why is it that when I publish my Image...
The looks so distorted....
How can I keep the Full Rich Color
Why All The Distortion In Flash
i seem to get image distortion in flash
no matter what i do.
i go from photoshop...export it to image ready >
then im importing it to flash ...
i go to the properties...i click off smoothing.
i have tried all the import jpeg quality settings...
im stumped?
when i zoom in it doesnt look bad....
but when normal view...it looks messed up ????????
Image Distortion
I am currently trying to create an online portfolio to contain some of my work.
The problem is when I import the images from Photoshop to Flash they seem to get distorted.
I'm saving them as jpgs (set to the highest quality option) in Photoshop, then importing them to Flash, and converting them to graphic symbols.
But when I view the images in the publish preview in Flash the images appear distorted- with very jagged edges.
I'm at work at the moment, and my portfolio is on pc at home, so if anyone is willing to try to help me and would like to see the images, please let me know, and I will email you the images this evening so you can see what I'm talking about.
Anyone who can offer any suggestions/ advice- THANK YOU!!
carly
|