Actionscript 3 :: Syncing Overlay To Displacement Map Filter?

Dec 13, 2011

I'm using a DisplacementMapFilter to created a globe-like effect on a flat map. My problem is, I also want to sync some labels to this map. I have the x/y coordinates for their locations on the flat map, but I need to map them to the now-displaced image.

I would like to be able to do this using the BitmapData that contains the displacement map, so that changing the Bitmap changes both the displacement filter and the label locations. Also, the labels will not be static, and accuracy is fairly important.

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Magnify With Displacement Map Filter?

Apr 10, 2009

I found this cool class

[URL]

View 2 Replies

ActionScript 3.0 :: How To Use Displacement Filter With JPEG Image

Mar 9, 2010

I'm trying to use the displacement filter with a jpeg image instead of a gradient map. My images are:
1) Background: men2.jpg
2) Map image: men2BN.jpg (same as above, but grayscale and blurred)
3) The image to be displaced: star5_mc

View 1 Replies

Flash :: Why Is Perlinnoise Displacement Filter Not Updating

Jan 17, 2012

i got this script from this tutorial. I tried to convert it from AS2 to AS3, but it seems like the displacement filter is only applied once for some reason. After that, the bitmap isn't updated.[code]

View 2 Replies

ActionScript 3.0 :: Make A Cool Water Effect Using Bitmap Data And A Displacement Filter?

Jun 9, 2009

I found a tutorial on how to make a cool water effect in as3 using bitmap data and a displacement filter. It works great but it is very heavy on the computer.

here is my code

Code:
var bmd:BitmapData = new BitmapData(700, 398);
var dmf:DisplacementMapFilter = new DisplacementMapFilter(bmd, new Point(0,0), 1, 2, 10, 30);
var p1:Point = new Point(0, 0);
var p2:Point = new Point(0, 0);

[code]....

View 2 Replies

ActionScript 3.0 :: Bitmap Filter - Push The DropShadow Filter Onto Movie Clip At RunTime?

Mar 10, 2011

I looked at the following example in the AS3 Reference: [URL] It is unclear to me looking at the package example how to apply this in standard ActionScript 3 without packages to a Movie Clip resident in my Library that gets called at RunTime. how I would push the DropShadow filter onto my Movie Clip at RunTime?

View 6 Replies

IDE :: Filter Is Using Too Much Memory - Apply The Filter To Only A Specific Area Of A Movieclip?

Jul 15, 2009

To achieve a zoom effect in our 2D flash game, we make the background of the game much bigger than the visible stage. This becomes a problem when the background is complex or when we apply a grayscale filter to the background. Is there a better way to do zoom? Or, is there a way to apply the filter to only a specific area of a movieclip?

View 2 Replies

ActionScript 2.0 :: Displacement Map For Perspective

Jul 16, 2007

I've tried in vein to understand displacement maps; I can find nothing on "The Internet" that teaches me what I need to learn. Now I'm looking to all you smart-types to solve my problem for me! All I want to is take an image (a rectangle) and make it look like it's going off into the distance (trapezoid-like), getting smaller from left to right. This doesn't even need to animate, I just need two states: straight-on and trapezoid-like -- think iTunes album art browser minus the bells & whistles. I know this can be accomplished with a displacement map, but I know not how to get 'er done.

View 7 Replies

ActionScript 3.0 :: Iterative Displacement Mapping?

Jan 22, 2010

The way my test works, I draw a path on a displacement map using the mouse, and this displacement is applied to the same image every frame (i.e., the displaced image of the last frame is displaced again). Colors are flowing along the path as they should, with one problem: the displaced pixels always turn transparent after a few seconds.At first I thought this had something to do with the DisplacementMapFilterMode, so I tried setting it to "COLOR" using an opaque bright blue, while the stage behind my warped image is a highlighter green. Nope, the FilterMode color is only used for pixels sampled off the image, while my interior pixels were turning completely transparent of their own accord. I tried removing the alpha channel from my distorted image, and then the pixels would just turn black instead of transparent.

So, now I'm stumped. I've viewed my displacement map to make sure it looks right, I've tried setting the displacement scale to low and high numbers, and I've checked the channel assignments, all to no avail. Here's my code, and I've attached the .fla as well, so you can see what's happening. If you run the file, just make your mouse is located in the center of the frame before it starts, or you'll end up dragging the blue fill color in from off the screen.

Code:
// "spider" is the name of a named movie clip instance containing
// an image on the stage, having the same dimensions as the stage

[code]......

View 0 Replies

ActionScript 3.0 :: Find Position Of Mc After Displacement?

Apr 28, 2011

I have an mc that is displaced. Within this movie clip is a text box that moves about but it is being displaced along with the rest of the mc. Is there anyway to find a position inside the displaced mc and translate that to root coordinates.

View 0 Replies

IDE :: Unable To Create A Displacement Effect?

Aug 18, 2009

I am trying create a displacement effect using this code, but i am getting these error, not able to solve it!import flash.display.BitmapData;

var damper = new flash.display.BitmapData(128, 128, false, 128);
var result = new flash.display.BitmapData(128, 128, false, 128);
var result2 = new flash.display.BitmapData(256, 256, false, 128);

[code].....

View 2 Replies

ActionScript 3.0 :: Apply Displacement Mapping To Every Frame?

Oct 6, 2011

I'm using this tutorial to create buttons with displacement mapping for my simple game menu. These buttons need to be clickable; i.e. once you click on them you move to a different frame. Everything works fine on the first frame, but when I click to the next frame the displacement map disappears and will not apply to the buttons on that frame. Plus, when I click my "back" button to return to Frame 1, the displacement effect has disappeared entirely.

This is the code which is in the base "Game" class, which links to the main Flash file.
 
package
{
import flash.display.MovieClip;
import flash.events.MouseEvent;

[Code]....

It calls the JitteryButton class, another external class, which I don't think is the problem, but I can post if if necessary. It's very similar to the one in the tutorial. Also, I need to add different buttons on other frames of the menu, but if I call them in this external class, it doesn't recognise them.

can anyone spot why this might stop working like it does? I was thinking about instead of using "Game" as an external Actionscript file, I could actually write it into Flash as Actionscript on a layer - would this work?

View 1 Replies

ActionScript 2.0 :: Make Displacement Map For Perspective Correction?

Jan 20, 2006

I am trying to make displacement map for perspective correction, but so far my math goes wrong. Here's what I've got; as you see, some lines are not preserved.

View 5 Replies

ActionScript 2.0 :: Displacement Applied To Shape Tween?

Jan 12, 2007

I had a quick question about displacement... I just have a circle that changes shape and size and I wondered if there was a way to apply some kind of displacement filter to it, so that ANYTHING under this circle movieclip is distorted by the displacement. (think of a magnifying glass).

View 1 Replies

Actionscript 3 :: Write "Intercepting Filter Pattern" Like Java's Servlet Filter In Flex?

Feb 10, 2011

I want to know how to write "Intercepting Filter Pattern" like Java's servlet filter in Flex.

And I want to insert it into the classes which have a role of server communicating.

View 1 Replies

ActionScript 2.0 :: Make Text Appear Wavy Using Displacement Maps?

Apr 17, 2007

i am trying to make my text appear wavy using displacement maps. i've attached the file. Please check it out and tell me how to do the following three things with it:

i need to ensure that the text doesnt get cut at the top when it goes out of bounds.i need to create a gradient with more variations. that is, right now its going from 0x000080 to 0x0000FF to 0x000080. so i need to make it go like: 0x000080 - 0x0000FF - 0x000080 - 0x0000FF - 0x000080.i need to be able to vary the size of the gradient box so that it perfectly fits the movieclip that i apply it tohow do i do it? could anyone please make those changes and attach the file back? or just tell me how to do it?

View 3 Replies

ActionScript 3.0 :: Squares In Random Midpoint Displacement Algorithm

Sep 3, 2011

I'm trying to make a plasma fractal (as a self-challenge, I made the sierpinski triangle, Koch snowflake, Mandelbrot set, Julia set, and dragon fractal. If you want the code, PM/reply.) Here's the code of frame 1:

[Code]....

View 2 Replies

Flash :: Prevent Text Displacement For Some Foreign Language Fonts?

Jan 3, 2011

I have a multilingual project (currently 13 languages), which uses many different font variations of "Helvetica Neue", mostly bold, condensed and regular cuts from the LinoType Pro font set ( which includes western european characters) and the same for cyrillic. We will probably add chinese and japanese variations in the future. I have set up the project to use different CSS stylesheets and separately load the fonts for each version, depending on which language the user selects, so I can have different line heights, kerning and/or font sizes to make everything keep the original look, even if the fonts look nothing alike.

All of this works well, except for one problem: For some reason, all cyrillic letters seem to be displaced. They appear 2-3 pixels below the correct base line, and actually protrude across the textfield's bottom border, even when the field is set to autosize. When I use textfield.getCharBoundaries(), all values seem to be correct, even though they obviously aren't rendered correctly.To make everything look neat, I could of course manually move all problematic textfields up or down according to language and font size, but I was wondering if there was some way to prevent or at least detect this kind of displacement in order to automatically handle the adjustments - the Flash Player should have some sort of information on how things are rendered, shouldn't i

View 7 Replies

Professional :: Syncing Mp3 To Animation?

Feb 27, 2010

I have a Flash movie which is synched to an MP3 file by adding keyframes at  the appropriate points to trigger actions.

In the *.fla file, and in  an exported *.swf or *.exe Projector file the synching is retained perfectly. However, when I include the *.swf in an html file, the synching  is lost. It would appear that either the MP3 file is playing at the right  speed and the movie is lagging behind, or the movie is at the right speed  and the MP3 is playing faster than it should.

I have matched the Audio Output stream to the MP3 file in the Publish Settings dialogue (both now 128kbps), but the drifting still occurs in an html page.

I am using Flash 8.0 on a PC running Windows XP Pro SP3. I have a quad-core Intel Xeon, and 4meg of RAM.

View 5 Replies

Professional :: Audio Not Syncing With Video?

Jun 13, 2010

When I go to test my video the audio and video are playing at different playback speeds. I'm trying to create a video using Flash that requires events based on the song itself. how to make the audio and video play at the same speed during Timeline playback and testing?

View 1 Replies

Professional :: FrameSync 2.0 Lip Syncing Extension Is Now Available

Aug 16, 2010

FrameSync is a free Flash extension, originally released nearly 2 years ago, that allows you rapidly lip-sync your characters with an audio track. Version 2.0 allows you sync your characters even faster and easier than before. ew features include a keyframe mode, audio playback and frame navigation for Flash CS5, and performance improvements. See this post for more details.

View 2 Replies

Professional :: Sounds Not Syncing With Frames?

Mar 29, 2011

I'm working on adding sound effects to a short animation. The first few sounds are syncing perfectly, however when I test the movie in Flash Player, at about the middle part of the animation, the sounds no longer sync; they play ahead of where they are supposed to. Testing the movie right in Flash, though, the sounds are fine. Exporting to a SWF file as well as a MPEG-4 also plays the unsynched sounds where they are not supposed to be

View 7 Replies

Media Server :: Syncing Of Two FLV Files

May 16, 2011

We developed one application in which a user can chat with a customer. But FLV size of user is double than that of customer FLV. At the time of playing we are getting problem of sync issue between FLV files. We are setting buffer size of 10 seconds. Is their any other way so that we can sync both FLV and an officer can view the communication of user and customer. Is DVR will do in sync? If yes then how?

View 7 Replies

Professional :: Syncing Audio With Animation?

Mar 24, 2012

I'm making an animation in flash CS5, and everything went well with it until a certain scene, which is no different than the other scenes in terms of animation/audio. In that scene, while one character is finishing his audio sentence, the next audio line already begins, screwing up the animation to audio sync in the animation from that point on. This doesn't make sense because the line that begins too early, isn't marked to play until a few seconds into the NEXT scene. Why is this happening? I tried so many things and it's really frustrating that nothing is working. I tried changing the lines from even, to stream, from mp3 to wav, making scenes longer at the end, but no matter what I do, the next audio line begins really early, messing up the entire audio to animation sync of the entire video from that point on.

View 5 Replies

Flash :: Syncing Separate Swf Files

Aug 1, 2011

I've been working on this problem for months, can'f find a viable solution. I can get the main movieclips of the files to p with a mouseover action, but I really need three separate swf files to sync upon load.

View 1 Replies

Flash :: Syncing Mobile App With Web - Builder For PHP?

Aug 17, 2011

Im starting experiment with Flash Builder for PHP mobile projects and I found it facinating. I could connect the app to a local database, but I was wondering how can I update the data of the mobile app from a website?

View 1 Replies

ActionScript 3.0 :: Syncing Text With Audio?

Oct 26, 2009

I have got a simple code that displays about three paragraph of text character by character.I need to sync it with audio. ie play the same audio that is displayed in the screen.What could be the best way to do so ?

View 2 Replies

ActionScript 3.0 :: Sound Syncing With Text In CS5?

Jun 2, 2011

FLASH CS5
AS3

I would like to sync my sound file with the text on the timeline. This would amount to sound being played and the text changing color when that word is read. I have tried this manually in earlier versions of flash. I timed up the sound file with the text/color. Using this method the results were spotty and not always the same. Sometimes, depending on the computer, it was timed perfectly, others it was a second or so off.

Is there an easier way to accomplish sound to text syncing?

1) Using Flash CS5?

2) Using After Affects? - I thought about using AA because I can control the sound better. But I would prefer to use Flash.

3) Another program?

View 3 Replies

ActionScript 3.0 :: Syncing Sound With MovieClip?

Sep 16, 2010

problem - syncing some background music with a movieclip. I am aware that you can place a sound directly onto the timeline of a movieclip: this was my first attempt at syncing the two up. Unfortunately the problem with this is that the sound (which is quite long) then won't STOP until it finishes playing regardless of whether I stop the movieclip or remove it from the stage. I also have no control over the volume this way.The only other method I can come up with involves keeping track of the current frame of the mc and triggering the sound manually, but this still goes out of sync if too much is happening at once and the framerate drops.

View 3 Replies

ActionScript 2.0 :: Syncing Two MovieClips OnRollOver?

Dec 19, 2007

First of all, final swf file size needs to be max 30kb. So I can not use Fuse (which would do the job automatically for some reason) nor complex stuff.

I have timeline tweened a image to scale (loops like a heartbeat) on main scene. Then on onRollOver another movieClip appears with different image but with "same" timeline tween (same as in keyframes in same frames and animation the same lenght).

When I hover my mouse on top of the "main" image, which is pulsating, the appearing movieClip is pulsating in the same rhythm but out of sync.

my code so far:

Code:
import caurina.transitions.Tweener;
var my_sound:Sound = new Sound();
logo_mc.onRollOver = function() {

[Code]......

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved