Flash 10 :: Drawing In One-point Perspective?
Jul 30, 2011Okay, 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 RepliesOkay, 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 RepliesHow to convert 3d point to 2d point? I've found next formula in Internet(camera is situated in origin)
[Code]....
But these formulae give me strange result when z are less than zero(z<0) I need build line from A(100,100,100) to B (100,100;-100) As you can see these equations give really strange result when I try to convert B point in 2D dimension
I didn't know where this should go; I thought this was the best place. In Actionscript 2.0 I'm trying to draw the shelf of a closet (wall-to-wall) but I don't know how to.
View 1 RepliesLets say I have two objects, and I want to use action script to draw a line connecting them, which will update automatically as they are moved/ dragged.Can anyone show me how to do that, and also how to control line's parameters like colour, weight etc?
View 1 RepliesI want the text to scroll from this point changing perspective along with curve. I know how to do it in AI, PS but without doing like 100 pictures of it slowly moving and putting them in flash like an old style cartoon I have no idea how to do this... Basically when someone rolls over the button I want This to come from nothing and scroll up onto the arc and stay till they roll off... I know how to do the simple button... it's designing a movie clip that does this on an arc that i cannot figure out
View 5 RepliesFrom the Robert Penner code given in this tutorial: [URL] i was wondering why controlx and controly has to be so complicated. I've tried changing it to just _root._xmouse but it messes up. I don't get this, shouldn't the curve point be the same point as the mouse?
View 13 Repliesis it possible to somehow use a the clear() function on a line that has been dynamically drawn only at a certain point? i need a line to be drawn and then gradually erased with time. currently i'm drawing a green line and then a few seconds later, a start up a function that creates a white line above it. it works great if this line is above a white background, but if it's above some other element, you see a white line.
View 7 RepliesAny way to get a curved line to draw from a known point a to a known point b. Point b will always be changing and will be in any position around point a. I can work with an existing line from a movieclip and change it somehow, but right now I can't find any way to accomplish it.
View 2 RepliesI'm doing this project, about 2 lines intersecting each other(the 2 lines are not always on the same position). I try to find the intersections point using collision detection method but how do I place an object on the intersections point?
if(line1.hitTestObject(line2)) //
So this is how we find the intersection point but we do not know how to draw / place an object on the intersection point.
I've been unable to find info on this because it's tricky to find the correct keywords. I want to allow the user to draw a line so that the application can measure the distance between two points chosen by the user. I could let the user click on one point and then the other but it would be much better if, after clicking the first point, a line would follow the mouse cursor like in most graphic applications. How would you do that? Is there a convenient method for that? Maybe use the MOUSE_MOVE event after the MOUSE_CLICK and continuously draw a line?
View 3 Repliesnavigation 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
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]...
I am developing a white board application which allows the user to draw line with arrow head (some like Microsoft Word line with arrow feature). I am using graphics property along with lineTo() method to draw a line. Now i have to draw a angular arrow on the last point of line. I am drawing the arrow by connecting the points around last points. As 360 line can pass through this point and each line can have a different angle of arrow.
View 1 RepliesI'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 RepliesThe 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 RepliesThe following is entirely a math question. As we know, PerspectiveProjection delivers perspective transformations in 3D represented by the interdependent values of fieldOfView and focalLength according to the following formula:
focalLength = stageWidth/2 * (cos(fieldOfView/2) / sin(fieldOfView/2)
Q: How to get the visible on-screen size of the DisplayObject (Cube on the above-linked image) to which PerspectiveProjection has been applied? A more thorough description and illustrative code on the issue in ActionScript 3 lacks functionality for visible bounds of DisplayObject.
I'm in the planning and learning stages of building a facebook game. For the past year my foremost question has been, "Flash or HTML5?". Rather than try to decide the answer to that, I thought I would give the markets for both some more time to mature and learn how to design the game and how to manage the server element.
Over the last year I've devoured thousands of pages of text concerning game development and business development, along with getting a solid footing in AS3, python, php, C# and javascript. So, I'm most interested in picking a system that is best for the job rather than, for example, starting off assuming the game logic will be in python because that's what I enjoy most.
The game is at its core a strategy game and I plan to use many mobile phones extensively in addition to the standard facebook "invite all your friends" features. The graphics won't be flashy and will in most places be rather flat because of the thematic elements, rather than 3d isometric like farmville or other flash facebook games.
So from a technological perspective HTML5 doesn't have any real advantage that I can see over flash, and neither does flash have any real advantage over HTML5. If you see that one has a clear advantage over the other then I would be happy to hear that in your comments.
I have five primary questions that I need your opinion on:
1) Which platform makes better sense for building a facebook game considering the future market trends?
2) Which platform has better inherent elements to help prevent cheating? (like flash being compiled into a .swf vs javascript being in plain text)
3) Which platform would be most attractive to the best game development talent for future hires?
4) Which platform is easiest to take technology from one game and use it for other future games? (like developing isometric graphics in flash)
5) Which platform is easiest to develop with a team?
I am trying to create a starfield effect. I have gone through the tutorials here and elsewhere and come so far. I am attaching the fla file along with the code. The motion as you can see is jerky. Cant figure out what am i doing wrong. Another thing. I am trying to load this swf into a main movie using the following script:
[Code]...
I could go about drawing buildings with 3d perspective height, like in the original [url]...
I've tried using beginBitmapFill() and drawing the polygons but the texture doesn't look right because it lacks the correct depth.
I'm attempting to create a dynamic perspective shadow system in Flash 9 (AS 3) that would have the following constructor:
ActionScript Code:
public function PShadow(mcClipToShadow:MovieClip, nAngle:Number = 45, nDistance:Number = 20, nAlpha:Number = 90, nBlur:Number = 10, nXOffset:Number = 0, nYOffset:Number = 0)
{
//do stuff
}
The function would duplicate the mcClipToShadow MovieClip to use as the base shadow, apply a 100% black tint, set the alpha to nAlpha, and apply a blur filter with Blur X = Blur Y = nBlur. Then a transformation Matrix would be applied that would skew the shadow sprite so that it was cast in the nAngle direction with length nDistance.
The only part that I'm having trouble with is solving the math for the Matrix. I've played a lot with the swf's in your tutorial to better understand how the matrix manipulates things, but I'm still having troubles doing the math properly. My goal is to simply plugin the variables from the constructor into the Matrix constructor and the proper shadow will result.
I need a movie clip that will stay in the same place on the x axis, but will scroll up and down with the page viewer on a website. staying in view.
View 1 RepliesI am converting a Flash Web App to a Javascript(HTML and CSS) Web App. I have a cube rotation animation working but I have a problem with the perspective.My Problem: I am not sure which CSS attribute I should use to replicate the Flash versions perspective(please see the 2 images below). The 2 below images where taken while the cube rotation was occuring and you can see the difference in the perspective(the 2nd image is too wide and should look like the first). You can see a working example here(Note it only works onThe first image was taken from the flash application and displays the CORRECT perspective(that I am trying to achieve in CSS).The 2nd image is taken from my CSS, Javascript and HTML web app and the cube rotates with the INCORRECT perspective. What CSS attribute do I change in order to achieve the above images cube perspective?
View 1 RepliesI'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 2 RepliesI sent an email to pom regarding a tutorial that he wrote, but the email was bounced and he hasn't replied to my PM. I have followed both of pom's tutorials that involve experiments with perspective in Flash, but I have encountered a problem while attempting to duplicate a movie clip symbol in the second tutorial ([URL]). I have a single instance of the "ball" movie clip symbol appearing at random positions. However, I cannot seem to successfully duplicate the symbol instance at random positions using the loop that pom provided:
[Code]....
i've tried to simulate a pencil tool, for drawing above a imagem, but the drawing is below the picture. How fix it?
[Code]....
Basically I've got a reasonably complex drawing object in a fla and I want to reproduce it in a class definition using the drawing api. However obviously this is a tedious task, so is there some trick or automated method of doing this?
Last time I needed to do this it was a drawing of an arrow and I ended up writing down x,y,width,height values for everything but this one has curves in it which I don't have experience with drawing anyway.
is there any way of creating the same perspective motion in AS as i've done in the below attachment using tweens?
View 4 RepliesI'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 RepliesI cannot get this to work. Without the "var drawing", "var drawing being true or false" and the "if statement", it works fine. But I need to add the "var drawing" so that you can only draw if you turn it on by pressing the "draw_btn" button. Note, I do not get an error, the script "apparently" contains no errors. Here is the code:
ActionScript Code:
var drawing = false
_root.createEmptyMovieClip("myLine", 0);
[Code].....
I've created a drawing tool which allows the user to draw on the canvas, the problem is that if I try to draw over a movieclip nothing happens. Is there a way I can allow for the user to draw over movieclips? For example if I had a background of paper?
Here's the code I'm using for it:
// This code is for drawing the lines on the page
//1.
var drawingLine:MovieClip = new MovieClip();
addChildAt(drawingLine,0);
[code]....