ActionScript 3.0 :: Equation For Animating A Point Around A Sphere?
Jul 25, 2011if anyone has any info on animating a point around a "sphere" with actionscript. If anyone has an actionscript equation defining this motion
View 4 Repliesif anyone has any info on animating a point around a "sphere" with actionscript. If anyone has an actionscript equation defining this motion
View 4 RepliesI want to create an animating sphere representing the earth but here is the catch I want the users to be able to spin it round in real time, what tools will do the trick?
View 3 RepliesI need to know what side of a rotated box my sphere/point is colliding with and at what angle.
I could perform the 4 lines check but I think it will be too cpu consuming. I need it for fast simple physics simulations(bounces)..
There's an variable in my swf I want to receive XML. It's an integer value in the form of an equation. How do I receive the XML value for 'formatcount'?
[Code]...
Code:
package {
import flash.display.Sprite;
import org.papervision3d.cameras.Camera3D;
[Code].....
I've imported the correct folder in my Edit->Prefences->ActionScript 3.0 settings. I've instantiated an object and it compiles, and I'm not getting any errors but, nothing shows up on the screen.
I'm doing 3d gallery in AS3 and i have run in to huge problem. After ActionScript creates 3d sphere it doesnt go away no mater if i go forward or backwards in timeline.
View 0 RepliesI am making a splash screen for a program and I have a picture in my head of a spinning sphere with pictures on it.I've already made my sphere and mapped my design onto the sphere in illustrator, although it is not as clear as I wanted.How do i get the sphere into flash and animate it to spin continuously?
View 1 RepliesHow would you do it? Or, else, how would you create a world? I.e. what I need is to place the sphere in the way the distance form the camera to it's center is less then the sphere's radius.
View 2 Repliesi'm trying to achieve the effect of a rotating sphere given a regular 2D texture. the best thing i've seen is a tutorial on emanueleferonato.com which gives this result: emanueleferonato dot com /downloads/mapping09.swf as you can see, it works pretty well when you're moving left/right OR up/down. it fails to simulate realistic rolling when going in any diagonals (since it's a very simplistic illusion). how to render such a sphere given any point on a mercator projection and then have the sphere rotate in an arbitrary (but fixed) direction? this is a bit advanced math stuff.
btw, if anyone's interested, i figured a better displacement map than what is used in the link i showed
i started my search again and immediately bumped into this: [URL] it's library called BitmapSphere and it does exactly what i need it to! also, could admin edit this and put together the link or something? i find it highly annoying that i need 50 posts before being able to post a link
Has anybody gone through a chemical equation balancer using AS2
View 2 Repliesjust download my project and look at the missile code. I need to find out the equation make it so that the fire that is attached in the mc moves as if it didn't inherit the missile's coordinates(i.e make it so the fire moves like it was outside the missile's mc, and doesn't move with it) I know it has something to do with the circular rotation code found in the tutorials but i just need someone to write out the code.
View 1 RepliesIs there an easy way or some kind of function that can turn a string into an equation? Say I have:
var string = "4 + 5";
is there something that can get it so it will be counted as 9?
The basic concept: I want to at runtime overlay (or paste or whatever) one bitmap image asset onto another. The original image asset is a texture on a 3d sphere.Example:3D Sphere with earth texture applied to it. Put a cloud on the earth texture and have cloud move along the earth.
Caveats:Can't use any composite materials because I take a serious perf hit. Want to try working only with bitmaps to see if it is faster.I've gotten this far but don't know how to fill rectangle with jpeg file and certainly have no idea where to go from here..earthBitmap= new BitmapData( 256, 256, true); fillRect will only do a color ... I need what fills a rect with jpeg image and how to edit a bitmap on the fly.
I am trying to rotate a sphere with the mouse on the x and y axis but the sphere keeps 'roll'ing and flipping it all around.
package {
import flash.display.Sprite;
import flash.events.Event;
import flash.events.MouseEvent;
[code]....
i am developing an application where client can add his photos to appear on a sphere or ball or coffee cup and able to save them and give it for printing using flex. like itasveer.com site. i tried to use away3D but if the image is small it is stretched and added to sphere. i dont want it to strech instead the original image shud appear on the sphere. if it is added to cup it shud cover only the circular part it shud not add this to top and bottom.
View 1 RepliesHow position plane in sphere papervision3d as3 ?
I have a problem , how position a plane in surface of sphere.
The effect I would like to achieve is when the plane around the sphere is clicked, the sphere rotates so that the plane is in the middle of the stage. but there always some problems when i clicked the plane the sphere seems like never rotate to it's back.[code]
View 3 RepliesI want to attach spheres to rotating sphere but I've encountered some rotation problems:
In application u can rotate mainSphere in both x and y axiss'.
If I rotate main sphere in only x axiss or only y axiss, it works correctly. But if I rotate main sphere around both x and y axiss, sphere is attacing the wrong place.
Here is the code:
ActionScript Code:
// these are the spheres containers. Sphere container class extends form object3d
var mainSphere:SphereContainer3D;
var attachingSphere:SphereContainer3D;
[Code].....
I would like to know if theirs a way where you can type in a text field something like "5*5".
And then on enter, the document would take the database and be able to return 25.
I am quite confused due to the fact that content that you input into a textfield must be a String and when you use the Number() converter the system gets confused.
I want to display a Quadratic equation with format like (4x2). I want to display 2 as superscript automatically after typing x in the textbox.
View 1 RepliesI am very new to action script, and using action script 2.0, I am having a problem getting an input textbox to read in mathematical formulas. To enter 5x^2, the key sequence to be used is {5}{x}{2}. i.e., the characters must be formatted as it is being typed.
Ultimately, I want to enter equations like 5x^2-4x-2.
The textbox should not allow non-numerical characters other than x.
I have 3 balls and i want them to turn around a center point.The physics is right but I'm finding confusing how to apply the equation to any object of my array.
Here it goes the code:
Code:
var movies = ["ball_mc", "ball2_mc", "ball3_mc"];
var angle:Number = 0;
var centerX:Number = center_mc._x;
[code]....
do you know of a WYSIWYG equation editor, like DragMath, implemented in javascript/mathml or Flash? I could embed DragMath as well, but I was wondering if there's a way to have a good WYSIWYG formula editor without requiring the users to run a Java applet.
View 2 RepliesIm trying to make a simple addition, like 2 plus 2 and send it to my dynamic box. I show u guys how im doing.
[Code]....
I have one input textbox.To enter 5x^2 ,key sequence used are "5" "x" "2" ie.,the characters must be formatted as it is being typed.I want to enter equations like "5x^2-4x-2".It should not allow other characters other than "x", using action script 2.0 .
View 4 RepliesThe project I'm working on requires a text field that the user can input an equation and the result is passed on to a variable. The problem is whenever you put in an equation it always comes out zero. If you just put in a number it passes it on properly. Below is a simplified example of what I'm trying to do.[code]...
View 9 RepliesIs there any actionscript that can draw a line after formal y = a*x+b;
Where a and b is given in an input textfield.
I have 3 balls and I want them to turn around a center point. The physics is right but I'm finding confusing how to apply the equation to any object of my array.
Here it goes the code:
var movies = ["ball_mc", "ball2_mc", "ball3_mc"];
var angle:Number = 0;
var centerX:Number = center_mc._x;
var centerY:Number = center_mc._y;
var radius:Number = 100;
[Code] .....
Im trying to do a simple addition, like 2 plus 2, adn then send it to my dynamic textbox.
Im sending the value to the box wrong.
[code]
somar (40);
function somar(numero1:Number){
soma = soma + numero1;
trace(soma);
btn_somar.value = soma;
}
I am a newbie to Papervision. I want to design a sphere with 8 holes around one of its diameters. How do I do it? How do I draw anything on a sphere in Papervision?
View 1 Replies