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
Similar Posts:
Sep 22, 2011
I'm looking into producing a relatively basic augmented reality web app where a user can print out a pre-made marker, which when held infront of their webcam and viewed through the app will display an object on top which the user can move around and explore. Something very similar to this: [URL] but with a simpler model. I have absolutely no idea where to start and am struggling to find any decent sources online.
View 0 Replies
Sep 30, 2010
How do you get the rotation of the marker in FLARToolKit? All that I can find is how to do it with papervision3D but since I am using Unity3 for the 3D, this is not optimal.
View 1 Replies
Aug 11, 2011
I have another (newbie) question about FLARToolKit.This is Lee Brimelow's code to make 3 boxes on top of the marker.
package {
import flash.display.BitmapData;
import flash.display.Sprite;
import flash.events.Event;
[Code]...
the flaw of this code is, after the marker detected, yes, the 3D object got rendered. but after the marker were not detected, the object still appeared on the screen (even though it did not move)
View 1 Replies
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
Jul 15, 2010
The program works just fine, and I am able to play the vĂdeo.flv in the augmented reality, but i need a preload for this because the flv is about 20Mb... how can I begin to add a preload to this project?
View 1 Replies
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
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
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
Feb 23, 2009
Why isn't there the Z, rotation X and rotation Y fields in my motion editor panel?
View 1 Replies
Mar 1, 2011
Is there any tutorial of how we can take a picture of augmented reality application in Flex, like in this video at 1:12 min.
View 1 Replies
Mar 22, 2011
Tutorials that I've been looking at are either about Augmented reality or Papervision 3D click-ability. I haven't found any article that talks about them at the same time
View 2 Replies
Sep 17, 2009
I am trying to get a Papervision 3d plane with video attached to it to orient to the marker on the y axis. That is when you hold the marker at a z axis(flat) the video plane plays vertically, basically like a hologram playing off a flat surface. I am new to papervision 3d and I cant figure out how to orient the plane to the marker.
View 3 Replies
May 12, 2010
how to insert a swf file in augmented reality?
View 4 Replies
Jun 10, 2010
I'm trying to develop an augmented reality game on an action script project in flex and I have a small problem, I need to load a png image on the stage so I have put it into a swf but when loading the swf with the pngs do not show me anything.
[Code]...
View 1 Replies
Sep 9, 2009
I'm trying to work with Augmented Reality, I saw some examples and I'm trying to make some changes.
[URL]
this example it shows a 3D cube.What I want is a little easier, I think.I want to show a image or a .Swf file.
AS he it uses:
Code:
package {
import org.papervision3d.lights.PointLight3D;
import org.papervision3d.materials.WireframeMaterial;
[code].....
When I compile, he shows the image.What I want is to show the image only when I show the marker.
View 1 Replies
Sep 25, 2010
this tutorial create augmented reality an application with 3d *.dae files. [URL] I want to do this with video files. So, when i show the pattern to the camera, video play. How can i do this? :/
View 2 Replies
Oct 3, 2010
URL..which should be recognized via a webcam. So this image is the original which should be included into the swf. If a person show this image in the webcam, an overlay of a video should added and played (augmented reality).How can I do this? I found FLARToolkit, but it is not possible because I need a black border which the original image does not has.Are there other libraries which have this functionality?
View 2 Replies
Jul 23, 2010
I'm trying to make a cube based on six markers for augmented reality and I need to display a defferent video on each marker, I followed Lee Brimelow in "Learn how to use the FLARManager library to make creating AR applications", the tutorial worked perfect but I can't use my own video and SWC file!
And also I followed the best tutorial for multiple markers "Tracking multiple augmented reality markers with FLARManager and papervision" by Rob Hawkes and got it worked, how to load my six videos into an array to work as materials for my planes (markers)?
View 1 Replies
Sep 25, 2010
this tutorial create augmented reality an application with 3d *.dae files.
[URL] I want to do this with video files. So, when i show the pattern to the camera, video play. How can i do this?
View 1 Replies
May 22, 2011
This is for a freelance design i am working on. I would do it expect coding and flash is very confusing to me and hurts my head. I have a link that says how you make it but im not quiet sure. [URL]if someone can please make me something that would be great i will give you all the details you want in a email but i dont want to share it in the forums if its illeagle or not (its not illeagle by law but maybe by forums idk) my email to contact me is [URL]
View 26 Replies
Oct 23, 2010
I tried to playing around with the augmented reality. Therefore I watched the tutorial (http:url....) and all works like a charme to me. I replaced the kramer.m4v with my own video. It works perfectly.But I want to have my own video on a transparent layer.So that I can see myself not within the background of my video.Therefore I did a video on a greenscreen and keyed the background. All seems to be ok!I exported the video in an .mov with the alpha channel. It works so far, but the black background is still there if i hold the marker to the camera.so my question is: Is it not possible to export a mov with the alpha channel to let the background go away?
Any hints or workaround? I just want to have a video with me speaking on a transparent background and not with teh black background. I changed the kramer.m4v in the HELLOFlar.as to kramer.mov (its with my own video, just the name is the same) but the background isn´t gone
View 11 Replies
May 31, 2011
i'm trying to make an augmented reality game..my game will be composed of a main menu..and in the main menu you can either choose to start a new game,option,and exit button, what will i do to make my background a webcam view when i click the new game button??
View 2 Replies
Apr 17, 2009
I'm trying to do a little augmented reality. I'm using an action script to call a video and play it. The problem that I'm having is that the sound is starting the moment the window is open and the video plays with the marker is shown. I want the sound and video to only play when the marker is seen. I would like it to pause when the marker is removed and then resume where it left off when the marker is seen again. Here is a copy of my code if someone could look it over and tell me what I'm doing wrong. PLEASE PLEASE PLEASE just correct my mistake. I don't understand enough about coding for you to just say Netstream.pause() and netstream.resume. I don't know where to put that information in.
package { import flash.display.Sprite; import flash.events.Event; import flash.display.BitmapData; import flash.display.Loader; import flash.net.URLRequest; import flash.media.Video; import flash.net.NetConnection; import flash.net.NetStream;
[code]........
View 1 Replies
Dec 11, 2009
I'm researching a potential project involving flash based augmented reality, and I've already looked at FlarToolkit and FlarManager which seem pretty straight forward to execute marker detection. What I cannot find are any sites or assistance with how to detect hand position, etc. To allow the subject to 'press' buttons. An example of what I mean can be found here: [URL] where the model presses virtual buttons to take action.
View 2 Replies
Oct 8, 2009
I am watching the tutorial on the motion editor and when he opens the motion editor to edit the Rotation X and Rotation Y values I'm in trouble.My motion editor now only shows Rotation Z but, no Rotation X or Rotation Y. What am I doing wrong?
View 1 Replies
Dec 2, 2008
I am trying to do a simple "pseudo 3D" rotation of a movie clip. The clip would "flip" on to the screen. I have created the effect using PaperVision3D, however, the final SWF is about 64k and my project requires a smaller file size. I tried to create the flip effect manually by creating skewed versions of the clip and tweening between them, except this doesn't work because the shape is not tweaked along the vanishing point as it should be. It looks like perhaps I could accomplish what I want to do using the MatrixTransformer but I've not had much luck so far.
View 3 Replies
Oct 3, 2006
I'm trying to pause my rotation on rollover of a movieclip and restart rotation on rollout of the movieclip. Here is my current code,
[Code]...
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
Mar 13, 2009
I have a pointer that rotates with this code (on the MC):
Code:
onClipEvent (enterFrame) {
_rotation += 0.2;
}
This works fine but now I would like to have another pointer but with an starting angle of 60degrees. Is there an easy way to ad a starting degree or angle value on this code?
View 1 Replies