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
Similar Posts:
Feb 23, 2010
I have mxml thingy, for example:
<mx:VBox id="isThisVBoxAwesomeOrWhat" width="500" height="500"
backgroundImage="@Embed('images/500x500.jpg')" verticalAlign="bottom"
includeInLayout="false"[cod
So, I have a Vbox names isThisVBoxAwesomeOrWhat that contains another VBox that containst two text fields.Now, further in the code I make a plane out of it so I can make a 3D object out of it, here is the snippet:[for i in totalPlanes]
...
var material:MovieMaterial = new MovieMaterial(isThisVBoxAwesomeOrWhat, true, true, true);
...
plane = new Plane(material, isThisVBoxAwesomeOrWhat.width, isThisVBoxAwesomeOrWhat.height, 10, 10);[code].....
So now I have my scene filled with planes made out of VBox composite as I wanted. I also have those planes in a linkedList, and what I would like to do now is to "SOMEHOW" access each individual VBox and it's composites for each individual plane.Something like this (obviously doesn't work! Just an example):
linkedList.node.data.VBox.VBox.Text[0]
so I could modify parameters on the fly. Or maybe I'm totally wrong on this and I should have as many Vbox'en as I have planes and id each individually. Whatever the case I can't figure out how to access children of the parent in this mxml example.
View 1 Replies
Nov 17, 2009
SO. I built an Augmented reality demo using the FLARManager. It works great locally but when I try to run it on a server the web cam won't show up.
View 3 Replies
Sep 18, 2009
Im kinda new to using class and papervision3d and FLARManager. I created a FLAR project using flash cs4 to complile the .as files What do I need to deploy this to a website...do I need to move everything that is in the org folder on the server?
View 1 Replies
Jan 24, 2011
I'm trying to run the example application from the FlarManager download. It worked first time using the FlarToolkit engine, but the webcam freezes if I change to the FlareNFT tracker. The only change I've made is to the onAdded function:
From this:
this.flarManager = new FLARManager("../resources/flar/flarConfig.xml", new FlarToolkitManager(), this.stage);
To this:
this.flarManager = new FLARManager("../resources/flar/flarConfig.xml", new FlareNFTManager(), this.stage);
When using the FlareNFTManager it compiles but freezes the camera feed. No errors are thrown, but the FlarManager event handlers are not triggered (e.g. onFlarManagerInited, onMarkerAdded, etc.).
View 2 Replies
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
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
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
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
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
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
Aug 13, 2010
I am using Flash Builder 4 to run Lee's tutorial "Augmented Reality with FLARManager".However, upon importing the project and running, it shows the feed from the webcam but it's frozen on the first frame. I have a Logitech Quickcam Pro for Notebooks and, thinking it may be interference from the Logitech software, tried killing all Logitech-related processes but to no avail. I also tried making the project on my own and writing only the first few lines of code as the minimum requirement to get the webcam displayed (ie: everything up to about 9 minutes). Also, I'm working with FLARManager v1.0 which has some slight differences from v.6 Lee was working with for this tutorial. I'm fairly sure I've fixed these differences (in this case, the constructor for FLARManager) as specified on FLARManager's website. Here's my code:
Code: Select allpackage
{
import com.transmote.flar.FLARManager;
[code].....
View 2 Replies
Jan 9, 2011
I'm having some problems with Papervision and Flash CS5. Basically, it doesn't seem to work ... I successfully installed Papervision once before on Flash CS3 using the same technique.. which leaves me asking if Papervision is even compatible with CS5 ? I've searched high and low but I can't seem to find anything concerning CS5 in the FAQs or on the forums.
View 3 Replies
Mar 12, 2009
I've successfully loaded a DAE model with its own bitmap texture material. Now I want to layer an environment map over that to give it a shiny look. I'm about ready to go out of my mind---nothing seems to work. I've created my environment map material, and added it to the DAE model, but it fails to appear at all. I've cut some holes in the original bitmap material, so that I'd be able to see if the reflection was covered over, but nothing appears to be hiding underneath
View 1 Replies
Jun 28, 2009
This is a theoretical question, and I'm asking it because I don't have to knowledge to articulate it in keywords: I want to know if there is currently a way to load .swf'swith all functionalitynto some sort of 3d dome/vortex/vector(?) that lets you see all the .swfs from the inside. In other words: Imagine yourself inside a huge sphere broadcasting several functional .swf's 'embedded' to its surface, a la Silverligt
View 2 Replies
Jun 26, 2010
I need to develop a cube that contain 10 little cubes and manipulate everyone like an object.
View 1 Replies
Sep 29, 2009
How to find uv coordinates while making custom primitive in papervision3D?
View 0 Replies
Feb 2, 2009
I followed all the tutorials I could find for Papervision3D, both for Flash and Flex, and I always get compilation errors. I followed all the instructions from the very beginning, and nothing ever works.The examples given in as3 runkexamplesFlashCS3 don't publish correctly if I open the SWF and try to compile them either. For example, helloMouse3D gives me:
1046: Type was not found or was not a compile-time constant: InteractiveScene3DEvent.
1046: Type was not found or was not a compile-time constant: InteractiveScene3DEvent.
And I didn't change a single line of code. The as2 examples still compile correctly,
View 5 Replies
Apr 17, 2009
I Want Papervision3D Class and how to use it in ActionScript 2.0
View 4 Replies
May 25, 2011
I have a flash application and I use papervision3d library. I put my objects to the scene, no problem but I also want to show the coordinate axes (x,y and z) to user. Is there any way to show these axes?
View 2 Replies
Nov 28, 2010
The problem I am having is that once I click back button on my scene to go back to home page, the animation of papervision3d kick-starts on top of already existing papervision3d animation. It doubles each time.
Is there a way to remove it? something like removeChild(); or it's nothing similar to that?
View 0 Replies
Sep 16, 2010
i have a big problem and i dont know how to solve this! Normaly i work with the BasicRenderEngine in Papervision3D and the Caurina Class to Tween the alpha property of the Planes. And this works fine when i set the Plane to:plane.useOwnContainer = true;But in my actual project i must use the QuadrantRenderEngine from Papervision3D becouse of the Z Sorting. But when i use the QuadrantRenderEngine the alpha tweens doesent work anymore, even when i just set the alpha property directly to another value it doesent work.
For example:plane.alpha = 0.5;Does also not work. I checked my script and i found no errors or something and when i change back to the BasicRenderEngine again it all works again! So it must be a problem with the QuadrantRenderEngine!what i can do to make the alpha tweens working together with the QuadrantRenderengine!!!
View 1 Replies
Jan 6, 2010
I have a wall of Planes at different angles and positions. I'd like to get the camera to rotate and look straight at the focused plane. I have created a dummy Plane (lookAtMe) that tweens to the Plane I click on as follows:
private function planeClicked(e:InteractiveScene3DEvent):void
{
lookAtTarget.copyTransform(this);
[Code]....
The camera centers on the looAtMe Plane but doesn't rotate so that the selected Plane is straight on.
View 3 Replies
Mar 8, 2010
I'm updating the start and end points of a Line3D object in Papervision3D. The end result works fine but there seems to be a lag from when I move the objects and for the line to redraw in the right position. I'm using the following code:
connectingLine.v0.x = startDisObj.sceneX;
connectingLine.v0.y = startDisObj.sceneY;
connectingLine.v0.z = startDisObj.sceneZ;
[code].....
View 1 Replies
Apr 30, 2010
I'm doing a project using FLARManager augmented reality and the Papervision3D library. Unfortunately, Papervision is giving me a lot of problems.My scene3D contains a DAE model and a plane. The plane has a MovieMaterial and is playing a video through FLVPlayback. The DAE and the plane are both inside the same DisplayObject3D container. FLARManager transforms the container so that everything appears through the angle of the marker.
My DAE model is a TV, the screen of the TV is transparent. I want to have my Plane inside of my DAE model, so that the Movie playing on the plane material appears to be what is playing on the TV.The problem is that, even if the plane has a lower Z index then the TV, it always appears in front of the TV.
How do I have my plane and its MovieMaterial appear behind the TV, so that some of its corners are cut out by the TV and the part of the TV thats transparent let me see the Movie? If its impossible, anyone has an idea of how I could get the desired effect of having a movie play on the screen of my DAE tv model?
View 1 Replies
May 10, 2010
im very new at papervision3d, i know in order to display a .DAE model i use this
[Code]...
But how can i do in order to use VRML models (.WRL).
View 1 Replies
May 27, 2010
I would like to combine bitmaps to one texture and apply it to a cylindric primitive. The cylinder will be rotating or better: the texture should moving along the cylindric-surface and therefor you should see only one (up to 3 textures at the same time). For better understanding: it's my intention to create somehow a poster-pillow with a undefined number of posters on it. By clicking on the pillow, it should rotate to the next poster but you will see always parts of the previous/next poster.
My question is: How can I load the texture dynamically but also how to combine, load/unload posters on the run ?
View 1 Replies
Mar 17, 2011
I am working on panoramic scene . And I want to move a plane with cursor. When I move mouse, plane must be mouse coordinates. And I want to take plane 3D coordinates (x,y,z) expecially z-coordinate. I try below code. But it doesnt work correctly. Mouse and plane are not be same coordinates on screen. How I can do?
public class RayTracer
{
public static function getIntersection(viewport:Viewport3D, camera:CameraObject3D, normal:Array):Number3D
[Code]....
View 3 Replies
Nov 28, 2011
I have a question about Papervision3D, or perhaps bitmapData, I am unsure where the problem is. I have constructed a program that takes 4 banners and splits them into pieces and then applies those pieces to cubes so that I can make a banner rotator. So after I run my program I have 10 cubes with a piece of a banner on 4 faces(front, top, back, bottom) of each cube. The problem is that some of the faces are oriented incorrectly(spun 180 degrees).
Is there a way in Papervision3D to spin a cube face? The other place I think the problem may be is when I create the bitmapData that will be applied to the cube faces. Is there some way to explicitly define orientation during bitmapData creation?
[Code]...
View 1 Replies
Dec 30, 2011
How position plane in sphere papervision3d as3 ?
I have a problem , how position a plane in surface of sphere.
View 1 Replies