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


Similar Posts:


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 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

ActionScript 3.0 :: Magnify With Displacement Map Filter?

Apr 10, 2009

I found this cool class

[URL]

View 2 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 :: 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

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 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

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 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 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

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 2.0 :: CS3 : Using Perspective In Flash?

Mar 8, 2009

navigation center left, the grey boxes.click it and the content area will flip 180.how is it possible to do such FX?is there any general methods to use perspective in flash?

- with bitmaps

- with MCs

View 2 Replies

Flash :: MovieClip In Perspective?

Jun 1, 2011

I would like to have a MovieClip that has a bit of depth. I can't use rotationX, rotationY or rotationZ because I have to use Flash CS3. The first image is what I have now, a flat movieclip. The second is what I should have.

I already tried using a matrix, but that didn't work. I posed a question about it, and there somebody sugested that I should use a 3D engine to get the result I want.

[Code]...

View 1 Replies

ActionScript 2.0 :: MX - Perspective Text?

Oct 6, 2003

is there any way of creating the same perspective motion in AS as i've done in the below attachment using tweens?

View 4 Replies

ActionScript 3.0 :: FP10 Perspective And Masking

Jul 29, 2009

So I am learning AS3 slowly.First project in it.I am having some troubles. (I know I need to learn to code class based, working on it, familiarizing myself with some of the basics before I change my style completely).I have set up my stage to have four instances of a movieclip named silverScreen0 - silverScreen3.Each of those has a content layer in it which I am dynamically loading an identical swf.I then have a mask I put over each clip so that it only show a specific area.

-First issue comes up that hte fourth mask seems to move/distort on load, as you'll see in the swf.

-Second issue comes up when the loaded swf comes in ... the mask seems to shift if the swf has a motion animation, click the second white circle above chapter1 to see this.

-Third issue comes up when I move the content layer inside of the silverScreen# clip ... the mask seems to move as well. No example of this but if you download the source files you can see it.[code]

View 1 Replies

ActionScript 3.0 :: Control 3d Perspective With Mouse?

Feb 6, 2010

how to control the perspective of a image/movieclip with the position of the mouse. I've been looking everywhere but so far no succes.

The effect i'm looking for is exactly like the one on this site:[URL]

View 5 Replies

Logos Are Shown In 3d Perspective And Keep Rotating?

Oct 12, 2010

Code:[URL].. they have a flash banner where a lot of logos are shown in 3d perspective and keep rotating.its a popular effect on net anybody know where can I find the code online. m no coder. i belive its an xml driven pic gallery widget.

View 2 Replies

Professional :: Perspective Distortion In A Tweening?

Dec 10, 2010

I want to tween a movieclip so it changes from squared to trapezoid. Just imagine a text paragraph distorted like the scrolling text in the beginning of Star Wars movies.It would be easy to make the shape and then distort it, but what I want is to tween from undistorted to distorted and it seems that normal tweening only allows skewing, rotation and resizing.Since a picture is worth a thousand words, this is what I want to do (the dog is not the movieclip I want to distort, just an example):This is easy in Photoshop (CTRL+T and then pick a corner with SHIFT+CTRL+ALT) and also in edition time in Flash, but I want the distortion to happen in execution time so it looks like the movieclip is standing up and then falls back.

View 2 Replies

Actionscript 3 :: Change Position When Something Is In Perspective?

May 17, 2011

I would like to draw a grid in perspective and draw a circle in in te left bottom corner.But I am not able to get it right.[code]...

View 1 Replies

ActionScript 3.0 :: Deactivate The Scene Perspective?

May 10, 2010

When I put some clips on different part of the scene, and modfify their rotationY I would like see them with the local global point of view. Unfortunately, if one clip on the left of scene and another on the right, the 2 clips won't have the same view. How to do to see them similar?

View 7 Replies

Flash 10 :: Drawing In One-point Perspective?

Jul 30, 2011

Okay, there are a few things I want to know how to draw in one-point perspective: a toilet, a shower, a bath; basically I want to know how to draw everything in a bathroom.

View 0 Replies

ActionScript 2.0 :: Putting A Image In Perspective?

Oct 30, 2005

its possible to put a image or movieclip in perspective via actionscript? Im want to build some 3D stuff and would like to incorperate images in it, but i havent got a clue on how to do this.

View 2 Replies

ActionScript 3.0 :: Transform>>perspective...in Flash?

Jan 31, 2009

I've noticed there is something in AS3 that allows "shearing or skewing" of an object, but I was wondering if it's possible to do the equivalent of what Photoshop refers to as "transform>>perspective"

View 3 Replies

ActionScript 2.0 :: Falling Snow, Top Perspective Looking Down?

Jun 24, 2004

This project I am working on needs a top view on a snowstorm. I was thinking I can use code similar to a starfield coming at you, and then modifying it so that the objects start from around you and fall towards the center. (opposite direction). However, when I change the code the way I believe I need to, I get the right thing to happen but not to regenerate. It happens only once, and once they reach the center, they don't recreate around the edges of the screen. Here is the code I am using from a simple starfield tutorial:

_global.ppDist = 700;
_global.speed = 50;
//update function to handle perspective projection and scaling

[code]....

View 3 Replies

ActionScript 2.0 :: Flat Texture Perspective - 2D Manipulations

Aug 7, 2009

Is there such a thing as taking a screen, copying it to bitmapData and then angling it as if in 3D perspective... in AS2 ? I know AS3 in CS4 can do this, but I am stuck working in AS2. I've used Bitmapdata before, but only for 2D manipulations.

View 2 Replies

Professional :: Getting A Menu To Reset Perspective In Flash Cs5?

Jul 30, 2010

The windows are in a mess now, is there a button/menu that can reset the view so that it looks like what it's like originally?

View 1 Replies







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