ActionScript 3.0 :: Augmented Reality - Make Background A Webcam View?
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
Similar Posts:
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
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
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
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
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
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
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
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
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
Mar 18, 2010
I am wondering how to make a 360º view bubble, like they use for Google Street View, but have no idea how to go at accomplishing this task... i have the string of photos that i attached in photoshop(so that if you connected the left to the right it would be a full 360º view).
View 1 Replies
May 25, 2011
Stage snapshot with webcam view and image is not working if the .swf is moved
private function initTracking() : void
{
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP;
var camW : int = 640;
var camH : int = 500;
[Code]...
View 0 Replies
Sep 15, 2010
I'm new in AS and trying create util such Youtube's "My webcam". Here's a part of my code:
[Code]....
Can't attach video object or stream to spark.components.VideoPlayer to view video and don't know how to convert video to flv contents for sending in POST form.
View 1 Replies
Aug 24, 2008
I am working on background subtraction with a webcam. I have an event listener for a mouse event which takes a snapshot from the webcam, then I draw the difference between what the webcam sees (video) and the still image that has been taken by the webcam on a mouse click. I want the webcam to take a picture of an empty room and then to show a silhouette of whoever walks into the room after that, but I am having trouble getting just a plain silhouette (the webcam remains in the same position as when the mouse is clicked). I have tried thresholding, but with that method I am getting detail inside the silhouette.
If anyone could just give me a plain english explanation of how the threshold object works, in particular the 'mask' parameter, that would be a huge help and also the 'draw' function, as I think that is where the key may lie!!
View 1 Replies
Nov 9, 2010
I've seen this effect before, where everything is blurred except the front most object in the shot. it was possibly a flash or flex effect which worked in realtime with video and snapshots. can anybody shed some light as to what this effect was called or point to some resources?
View 2 Replies
Oct 20, 2010
how remove a background color from web cam in as3?
I need to do chroma key with a web-cam in browser !
View 1 Replies
Jul 15, 2009
I am trying to find a stand alone flash player/controller to play flash movies on my own computer (windows xp) ideally it would have the usual back stop forward controllers etc and I would if possible be able to change the veiw pane background colour.
View 1 Replies
Apr 10, 2009
I've designed a Flash site in CS3 using Action Script 2.0 that has a main flash movie sorta floating in space over a gradient background. I want the gradient background to re-size with the browser, so I thought that the easiest way to do this would be to delete the gradient background in Flash and instead recreate the background in Dreamweaver using the repeat background option and then make the Flash movie's background transparent. (I hope I'm making some amount of sense here).
I've found a few tutorials on how to do this, but so far I just get a white background instead of transparent. I've tried choosing "Transparent - Windowless" under Window Mode on the HTML tab in Publish Settings. And I've tried selecting the movie from within DW and clicking the parameter button and adding a "wmode" parameter with "transparent" as its value.
View 2 Replies
Apr 14, 2011
so, im a uni student and i got a little too ambitious creating an interactive media project for children. long story short im completely lost when it comes to actionscript 3.0.
i am attempting to use webcam movement to make butterflies fly around the screen. i have created all the graphics and I have created the video object and the video input from the webcam, and i know how to make the butterflies move, but i dont know how to import the butterflies in the first place. I created the animation in after effects and have exported it as an FLV. how do i get the FLV to the stage etc.
View 1 Replies
Aug 18, 2009
I have problems with webcam streaming in AS2. In AS3 I can make it visible on stage with a Camera.get call and a Video object. Because of some reasons in one of my works I have to use AS2. Can anyone provide me a working code to make visible the webcam's picture on the stage? I use the following code, but it doesn't work:
var cam = Camera.get();
//it's okay I can see the real camera name in the name property
var vid:Video;
vid.attachVideo(cam);
//... and nothing happens on the stage Why?
trace(vid) returns "undefined" Why?
View 0 Replies
Apr 23, 2012
I'm trying to write some apps that will include some image processing for facial, object recognition. There's a ton of stuff out there (mostly from 2009) that doesn't work very well and I want to give it a try.
Anyway, I have the webcam feeding a video object I've addChild()ed to the stage and that works aces. I want to make a copy of that video stream and plop it on the stage right next to it. This works, but the framerate suffers:
Code:
public function update(event):void
{
//onEnterFrame
var bmp:BitmapData = new BitmapData(_video.width/5,_video.height/5);
[Code]....
So this puts a pixelated version of the webcam feed right next to it just like I wanted, but it seems to lug down the processor. Logic would tell me that I'm piling on infinate amounts of "goat" to my movieClip (mc). I try to dispose() the bmp, but then it stops working.
View 9 Replies