Tag: Flash

  • Augmented Reality – Test 1

    Yukiko's test of Augmented reality

    I just got my augmented reality demo to work! It was really easy – Just one afternoon of work. To try it out you need: A webcam, a printout of this page. Click on this link and hold up your printout to your webcam in order to play with the demo.

    I pretty much followed this video tutorial by The Flash Blog. It describes how to use the FLAR and Papervision 3d toolkits with Flex to detect a symbol in a video feed and map a 3D model to its plane. I just adapted his tutorial to Flash. (I’ll post my .FLA shortly)

    Here were my overall steps:

    1. Download FLARToolkit
    2. Download Marker Generation tool (Air app)
    3. Made marker in Photoshop and printed it out
    4. Ran the Marker Generation app and saved a .pat pattern file
    5. Created FLARdemo.as class file, Flardemo.fla
      • in the .fla, declare Flardemo object, add to display
      • setupFLAR() – import .pat file
      • setupCamera()
      • setupBitmap() – load video feed into flartools
      • setupPV3D()
        • Create scene, camera, container
        • create lights, materials, objects
        • Create render engine, FLAR trans matrix, viewport
        • Add to display list
      • Create onEnterFrame event handler
        • Feed video to FLAR
        • test for symbol detection, if yes then,
          • get and set transform matrix
          • render papervision!
    Some overall troubles and solutions included:
    • Since in Flash, not flex, I needed to declare, create, and add to display list a FLARdemo object in my .fla file. This wansn’t described in the Flash blog tutorial.
    • Also since I was working in Flash, library imports were a bit more complicated. I eventually gave up and cut/pasted from another tutorial that he was following. A less documented, but code provided tutorial is located here by a guy named Mikkoh.
  • Make Flash stage transparent

    Ok. Here’s a quick tip on how to make your stage transparent in flash.

    1. Go to publish settings: File > Publish Settings or Shift + F12
    2. In the HTML Tab, Find the Window Mode setting and select Transparent Windowless from the drop down menu.

    Source: Adobe’s tech help site

  • Japanese Mouse Switcheroo

    While surfing some of my webcomics, I found a link to a Japanese web award page ( I think ). What was cool about it was the use of flash to change to mouse pointer into well… a huge foam pointer/float carried around by a bunch of guys. It’s hilarious and worth a minute to look:
    http://www.1-click.jp/