ActionScript 3.0 :: Sphere Planes Rotation In PV3D

Oct 21, 2009

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 Replies


Similar Posts:


ActionScript 3.0 :: PV3D: When Adding Text3D To Planes In A Carousel The Rotaion Slows To A Crawl?

Jan 13, 2010

I have added 2 text3D textfields for each plane that gets rendered via xml.Everything works fine, yet as more planes get added via xml the carousel slows down considerably.If I remove the text3D fields the carousel rotates very smooth and at normal speed. Is this just a limitation of text3D in Papervision3D or is there a way to optimize this better? Yes, smooth is set to false and images have been optimized.

View 1 Replies

ActionScript 3.0 :: Planes Which Are In Aranged As One At Behind Another?

Feb 11, 2011

i am building a application and new to papervision3d so i am facing a problum a) i have two planes which are in aranged as one at behind another and then these both pnales are in one cube , what happens when i rotate cube these planes intersect and some cuttings show up in the plane which is at ffront.

View 6 Replies

ActionScript 3.0 :: Setup Planes With Papervision?

Oct 30, 2009

how to setup Planes with papervision, then retrieve them later?I've set up the 3d scene like this:

PHP Code:

var con:Sprite = new Sprite();
con.x = this.width * 0.5;
con.y = this.height * 0.3;
holder.addChild(con);

[code]....

but none of these methods seem to work,, possibly because you can't do the same things to Planes that you can to movieclips...(?)the scene.numChildren seems to work though.

View 1 Replies

Actionscript 3.0 :: FLARManager - Clickable Planes In Papervision3D

Sep 3, 2010

Following leeBrimlows tutorial using flarmanager, I am wanting to make a plane clickable that is housed in a container using the InteractiveScene3DEvent.

[Code].....

View 1 Replies

ActionScript 3.0 :: DrawTriangles() UV Mapping Only Good For Planes?

Aug 23, 2009

I'm just coming back to toying with 3d in flash. All my previous efforts were made in AS2 so drawTriangles() is liquid-awesome to me... Still, am I right in thinking that the UV mapping of drawTriangles is only really useful for two-triangle planar evaluations? In other words, there isn't any way to pipe in the UV map data required to skin a whole model - even a simple cube - in one call to drawTriangles, is there?

I got my hopes up when I saw I could draw the whole wireframe of an object in one call, but everything I read suggests the UV coordinates are relative to the vertices, not the indices. So I'm thinking that the UV value for a vertex can't be redefined for triangles sharing vertices as described by the index. Is that right? If so, I guess you could draw the whole thing in a single call if you threw away your index and passed all the unconsolidated vertex information. Seems like an awful waste if that's right.

View 1 Replies

ActionScript 3.0 :: Scrolling Background Is Hidding The Birds, Planes And Clouds Objects Which Scroll Up?

Nov 9, 2011

I thought I would create a simple little game involving a skydiver who is supposed to be falling towards the ground, the problem I have got is the scrolling background is hidding the birds, planes and clouds objects which scroll up,

package
{
import flash.display.MovieClip;[code]......

View 2 Replies

ActionScript 3.0 :: Integration Of 2d Elements With PV3D

Jul 26, 2010

how I might go about integrating a 2D layer on top of a Papervison layer.

my goal: attach some 2D elements to a 3d object that is shifting rotation in 3dspace. Specifically, I want to draw a 2d line - x/y origin is the bottom right corner of the plane.

1. Height? Width? I can obtain the screen coordinates of a given displayObject3D with the screen property, but this gives me the coordinates of the center of the object. I simply haven't found a method to return the value of a related coordinate (the bottom right corner...) Since pv3d is projecting the object as a flattened 2d image at render time, you would think there would be a built in method to get such a thing. I've played around with papervisions built in drawing api, and it does a fine job of replicating the 2d api - so that might be an option if I can't find the coords in a predictable way.

2. translating zoom and focus of the camera into a predictable pixel values. If I have a plane that I know the 3d location of, and, hypothetically, the camera is viewing it squarely, how would I take into account the zoom and focus to translate the initial dimensions of the plane into pixel perfect height/width values? (for example, to place a 2d rectangle over the 3d content.) I can do a scale hack where I've applied a manual multiplier (just through trial and error), but its not exactly pixel perfect...

View 0 Replies

Actionscript 3.0 :: Event Propagation In PV3D?

May 18, 2009

how event propagation works in PV3D its definitely not like the conventional Flash style. On a quick search i have been able to find out that its possible using the InteractiveSceneManager Class, but unfortunately

View 1 Replies

Actionscript 3.0 :: PV3D: Collada Not Visible?

May 19, 2010

having a weird issue with a loaded Collada model. I'm not getting any errors as such, and I can trace out the collada's position etc, I just can't see it! Am I missing something stupid? Or is it a bad collada model, and if so how do I test for it? I thought it might be a texture issue, but I tried other collada models without textures and they show up as wireframes straight away.Here's the code:

Code: Select allpackage
{
import flash.display.Sprite;

[code]......

View 3 Replies

ActionScript 3.0 :: Do A Drag And Drop In 3d Like PV3D

May 19, 2011

I'm wondering if its possible to use for example Papervision or something similar to make a drag and drop action in 3d space. But when I say drag and drop I mean, you drag the object and then place it in its correct spot, if you do not, then you receive an incorrect message for example.

View 1 Replies

ActionScript 3.0 :: Rotation Center Is In Left Of The Image - Aren't 3D Rotation From Transform Panel

Jan 7, 2010

I have a movieclip and when I do 3D rotation from Transform panel, It rotates perfect, center is in the middle of image, and when I apply mc.rotationY, rotation center is in left of the image, aren't 3D rotation from Transform panel and mc.rotationY from AS same? what's up?

View 2 Replies

Actionscript 3 :: Augmented Reality Flartoolkit Rotation - Trace The Rotation Of The Marker

Mar 23, 2011

I'm trying to do some augmented reality projects with flartoolkit . I can now put simple 3d objects on my marker and it works fine , but I wanna give my project some events that the user can interact with. I'm trying to trace the rotation of the marker. there's a container:DisplayObject3D which my application uses to add the 3d objects , I traced this :"trace(container.rotationZ)" but it's just returning 0 . I studied another AR application's source code and it was using the rotation of it's container object without problem .and I think I should mention that I'm using the exercise file of seb lee delisle papervision3d course from [URL]. anyone has any experience with flartoolkit? the main functions of my my code is as below:

[Code]...

View 1 Replies

ActionScript 3.0 :: 3D Rotation Of Nested Movieclips, Separate Of Parent Rotation?

Aug 11, 2010

Is it possible to have the child movieclip rotate separate of the  rotation  properties assigned to the parent? so ultimately giving the  child  element it's own axis?I've customized Lee Brimelows (gotoandlearn.com) 3D carousel to spin  on  the x axis to make it a vertical carousel. I've also rotated that by 45 degrees on the y axis to see all the items, and wrote a snippet of   code to hide the left portion of the carousel. The entire  carousel is contained within the 'container' movieclip, and  inside of  that are my carousel items (as seen below), with the larger  item being  the item in focus.

On rollover of the item in focus, I want to rotate it so it faces the   viewer (as seen below),basically removing the 45 degree rotation   applied to the container.The problem i'm running into is when you rotate the container (changing   the rotationX of the container), the axis basically rotates with it, so   when i rollover the next item 'in focus', the following happens..(in  the  example where it appears how it want it to, the carousel is at a   rotationX of 0, so it works fine)

View 2 Replies

ActionScript 3.0 :: PV3D ShadedMaterial On A Collada File

Jan 20, 2009

i'm doing a materialtest with papervision, using some collada-objects that i load with the DAE-class. one thing that i didnt get to work is creating a shadedmaterial, not a shader as a material but combining a shader and my original material (loaded with the collada-file) into a new material. i dont get any errors, and when i look at examples i think i'm doing the right things, although the examples always create a new object from scratch (and add the ShadedMaterial to the fresh materialslist).What i do is load the objects, store their materials in an array (i clone them once they're loaded), and use this object-loop to create the shadedmaterial and replace it with its original.[code]The original materials are actually Bitmap FileMaterials, but since that's a subclass of BitmapMaterial i think that should work just fine. You can see my test here, every material works except for the flatshaded+bitmap, when i use that one my framerate drops dramatically but i dont see any change.URL...

View 1 Replies

ActionScript 3.0 :: PV3D Causes Movieclip To Spin Uncontrollably?

Feb 6, 2010

I have this script that creates a Tiltviewer effect and it works perfectly as long as you're on the page. However, if you switch focus to another browser window or tab, it begins to spin wildly and even takes a while to recover when the user comes back to the page.

ActionScript Code:
/* ----------  PV3D  ---------- */
import org.papervision3d.events.InteractiveScene3DEvent;
import org.papervision3d.materials.BitmapMaterial;

[Code].....

View 0 Replies

ActionScript 3.0 :: PV3D Gallery - Add Hyperlinks To The Images

May 26, 2011

I've been playing with this PV3D gallery that I found and dissecting and trying to learn everything I can, but I want to see if its possible to add hyperlinks to the images. Basically when the image resizes, I want it also to load a hyperlink after you click it again to remove the Image. I've included all the SourceCode in a zip file. If anyone can take a look and give me some pointers it would be awesome! edit*all the images are XML driven, I've tried making hyperlinks in the XML itself, but the way these gallery is setup is to load(img) not load(url)

View 1 Replies

Actionscript 3.0 :: PV3D Active HTML Links?

Apr 30, 2008

As part of a papervision project I need to render html text on to a plane. I've done this using a MovieMaterial and the html text renders perfectly as one would expect, except that any Code: Select all<a href=""> tags used in the html aren't working? Has anybody else experienced this problem? I've set the material to Code: Select allinteractive=true and that's working because buttons on the same material are working, just the html links aren't.

View 5 Replies

Actionscript 3.0 :: PV3D - MovieAssetMaterial Play And Stop

Jul 15, 2009

I have managed to create a Plane with a material that is a running movieClip with 8 frames. The thing is that I want to be able to play and stop that movieClip that's acting as the material of the Plane but can't seem to get to it... That movieClip called "walkingTest" that I'm using as the material, has another movieClip inside it called animatedDoll that is the one I need to play and stop.

[Code]...

View 2 Replies

Actionscript 3.0 :: PV3D - MovieAssetMaterial Play And Stop?

Aug 8, 2009

I have managed to create a Plane with a material that is a running movieClip with 8 frames. The thing is that I want to be able to play and stop that movieClip that's acting as the material of the Plane but can't seem to get to it...That movieClip called "walkingTest" that I'm using as the material, has another movieClip inside it called animatedDoll that is the one I need to play and stop. If I use:

walkingTest.animatedDoll.stop();

I get this error:

1119: Access to a possibly undefined property animatedDoll through a reference with static type flash.display:DisplayObject

But the weird thing is that this:

trace(movieAssetMaterial.movie);

Is working perfect. Here's the code...

Code: Select allpackage{
///
import flash.display.Sprite;

[code]...

View 1 Replies

Actionscript 3.0 :: Creating PV3D Textures With A Loop

Apr 28, 2010

I'm trying to create multiple objects in Papervision using Flash Builder, each one with it's own texture that I'm getting from an imported SWC.My code works perfectly if I apply one texture to all shapes, but when I try to put it into a loop I can't seem to get it to work. I think this is more of a syntax problem, I'm just not sure how to tell Flex what I want.Here's a chunk of the code that works fine, applying an "img1" texture to everything: [code]Does that make sense? I want each iteration of the loop to add a number to the end of "img" and apply that to the shape.

View 8 Replies

ActionScript 1/2 :: Inconsistent Rotation - 270 Degrees Of Rotation Disappear?

Apr 21, 2009

Program A has a cannon that aims to line up with where-ever the mouse is pointing, in 360 degrees, and fires when the mouse is is clicked. Program B has an eye instead of a cannon that should in theory do similar functions when the capslock key is toggled, but instead only has a 90 degree range of motion from the Right of the eye toward the bottom (quadrant 4 only). Where did the ther 270 degrees of rotation disappear to?

[Code]...

View 4 Replies

ActionScript 2.0 :: Create A 3d Rotation Much Like The Widely Used Carousel Only The Rotation?

Aug 11, 2006

i.m trying to create a 3d rotation much like the widely used carousel only the rotation i desire consist of four upright(90 degrees) movieclips resting on a slanted, 30 degree plane which rotate onEnterFrame or following a tween on a oval like path - then pause for a given number of seconds at the four movieclips positions equal in distance on the plane

function around() {
this._x = Math.cos(this.angle) * radiusX + centerX;
this._y = Math.sin(this.angle) * radiusY + centerY;
var s = this._y /(centerY+radiusY);

[code]....

View 7 Replies

IDE :: Z - Rotation X And Rotation Y Missing In Motion Editor Panel

Feb 23, 2009

Why isn't there the Z, rotation X and rotation Y fields in my motion editor panel?

View 1 Replies

ActionScript 3.0 :: Adding Video Player To PV3D Cube

Sep 29, 2008

With some great tutorials on the web, I have created an interactive cube in PV3d with a movieAssetMaterial for one the faces. I would like to add a fully functional video player to this face. I have code for an AS3 video player that I placed in the main fla on the movie clip that acts as the material. The video streams in fine, but the interface does not work. I'm wondering if this is a scope issue, a problem with adding events to a movie asset material, or some other problem. The video player code is attached. I have the video player code inside the movieAssetMaterial.

View 1 Replies

Flash :: Port Away3d Scene With Animation Into PV3d?

Jul 25, 2010

How to port Away3d scene with animation into PV3d? Are there any tutorials on how to do that?

View 1 Replies

Actionscript 3.0 :: PV3D - MouseEvent.CLICK On Object Instead Of Face

Feb 10, 2009

I've created 4 cubes, which turn on Rollover and Rollout, and on Click they should move to new x y coordinates.The Rollover and out on the faces (workfront,workback) work fine, but i don't get it right to put the Click on the whole cube.if tried to address it with workcube.addEventListener(MouseEvent.CLICK, workclick); but that doesn't work.if i address it with this or without workcube all my cubes react to the click

Code: Select allvar workcube:Cube = new Cube(new MaterialsList({front:mat2, back:mat3, top:mat0, bottom:mat0, left:mat1, right:mat1}), 60,60,60,10,10,10);
scene.addChild(workcube);

[code]....

View 4 Replies

ActionScript 3.0 :: No Errors But Can't See Sphere

Nov 22, 2009

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.

View 1 Replies

ActionScript 3.0 :: Possible To Clear 3d Sphere?

Aug 27, 2010

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 Replies

ActionScript 3.0 :: [PV3D] 'MaterialObject3D: TransformUV() Material.bitmap Not Found!?

Nov 14, 2009

I was recently trying to import some collada models from 3d studio max into flash. verything looks fine, but I have some kind of error which rather shouldn't appear: Quote:'MaterialObject3D: transformUV() material.bitmap not found!'I've found some answers by googling it, but I'm not sur

View 0 Replies







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