<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments for Mikko Haapoja's Blog</title>
	<atom:link href="http://www.mikkoh.com/blog/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mikkoh.com/blog</link>
	<description></description>
	<lastBuildDate>Tue, 15 May 2012 20:45:47 -0400</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on Flash Augmented Reality FLARToolkit by White Blood Cells</title>
		<link>http://www.mikkoh.com/blog/2008/11/flash-augmented-reality-flartoolkit/comment-page-1/#comment-84971</link>
		<dc:creator>White Blood Cells</dc:creator>
		<pubDate>Tue, 15 May 2012 20:45:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikkoh.com/blog/?p=129#comment-84971</guid>
		<description>&lt;strong&gt;click to read...&lt;/strong&gt;

[...]the time to read or visit the content or sites we have linked to below the[...]...</description>
		<content:encoded><![CDATA[<p><strong>click to read&#8230;</strong></p>
<p>[...]the time to read or visit the content or sites we have linked to below the[...]&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Interactive FlarToolkit (reacting to translation and rotation) by thoppenty</title>
		<link>http://www.mikkoh.com/blog/2009/03/interactive-flartoolkit-transformations-from-the-transformation-matrix/comment-page-1/#comment-80349</link>
		<dc:creator>thoppenty</dc:creator>
		<pubDate>Tue, 24 Apr 2012 20:59:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikkoh.com/blog/?p=281#comment-80349</guid>
		<description>For developing guaranteed which you will be obtaining chosen outstanding purses, generate a choice to acquire a Mulberry bayswater purse near to to at web site. A [url=http://www.mulberrysoutletshop.com][b]mulberry outlet[/b][/url] handbag is acknowledged for its conventional layouts. What is much more, it comes in well-known reproductions for example authentic Mulberry roxanne handbag.The Mulberry purses of Eurohandbag are easily readily obtainable in distinctive leather-based materials. You may buy a handbag which might be designed from box calf, togo, lizard pores and skin, snake skin, crocodile skin, and ostrich pores and skin. as part of your occasion you desire, you&#039;ll be able to even possess the handbag that you just just just like customized in accordance with the specifications. When it comes in your route of colors throughout the purses, you may pick from traditional hues for example black, white, or brown. 
 
Designers Mulberry purses are broadly applied throughout the significant followers when using the model planet. each film star loves to hold artist purses, and provided that males and ladies adhere to famous people, they at the same time adore to possess a great selection of artist handbags. Nonetheless, possessing a variety of people bags is away from query as receiving only one artist handbag could be fairly pricey for virtually any standard gentleman. Not everybody can manage to pay for this luxury. 
 
In relation to [url=http://www.mulberrysoutletshop.com][b]mulberry bags[/b][/url] invest in shade,Mulberry Handbag ava. choose on what at any time you&#039;d like. The precise younger young children generally pick out blue jeans collectively with vivid colorings, in add-on for the important females are frequently totally unpredictable.Purchase near towards net, be distinct to that means which you only look at, and subsequent that click on on,Mulberry Purse ebay. This may effectively possibly be to provide distinct the get an excellent problem. Subject material, coloring, sense, and for that goal near toward varieties of particulars are astonishingly critical, largely for your rationale that outfits normally are in most circumstances exhibits up as particularly fine as in real frequent existence an fantastic provide a lot further eye-catching photographs.The producer and particularly the Mulberry Shoulder Bags have expand to become a style and design icon for stars and trendy adult gentlemen and females all in excess of the globe. Thanks for visiting Mulberry Bags british store.it compensates its versatility and comfort.Mulberry Alexa Bag and Mulberry Handbags are on warm providing in Mulberry Bags Keep. 
 
Ladies have normally been manner acutely aware since of which they have a tendency to become in frequent contact with adjustments getting position in the glamour earth. They don&#039;t need to be labeled as outdated and old-fashioned. To be able to get their selves the most appropriate mulberry bag , ladies can readily experience some online shopping internet sites which could make them conscious of the most recent tendencies.</description>
		<content:encoded><![CDATA[<p>For developing guaranteed which you will be obtaining chosen outstanding purses, generate a choice to acquire a Mulberry bayswater purse near to to at web site. A [url=http://www.mulberrysoutletshop.com][b]mulberry outlet[/b][/url] handbag is acknowledged for its conventional layouts. What is much more, it comes in well-known reproductions for example authentic Mulberry roxanne handbag.The Mulberry purses of Eurohandbag are easily readily obtainable in distinctive leather-based materials. You may buy a handbag which might be designed from box calf, togo, lizard pores and skin, snake skin, crocodile skin, and ostrich pores and skin. as part of your occasion you desire, you&#8217;ll be able to even possess the handbag that you just just just like customized in accordance with the specifications. When it comes in your route of colors throughout the purses, you may pick from traditional hues for example black, white, or brown. </p>
<p>Designers Mulberry purses are broadly applied throughout the significant followers when using the model planet. each film star loves to hold artist purses, and provided that males and ladies adhere to famous people, they at the same time adore to possess a great selection of artist handbags. Nonetheless, possessing a variety of people bags is away from query as receiving only one artist handbag could be fairly pricey for virtually any standard gentleman. Not everybody can manage to pay for this luxury. </p>
<p>In relation to [url=http://www.mulberrysoutletshop.com][b]mulberry bags[/b][/url] invest in shade,Mulberry Handbag ava. choose on what at any time you&#8217;d like. The precise younger young children generally pick out blue jeans collectively with vivid colorings, in add-on for the important females are frequently totally unpredictable.Purchase near towards net, be distinct to that means which you only look at, and subsequent that click on on,Mulberry Purse ebay. This may effectively possibly be to provide distinct the get an excellent problem. Subject material, coloring, sense, and for that goal near toward varieties of particulars are astonishingly critical, largely for your rationale that outfits normally are in most circumstances exhibits up as particularly fine as in real frequent existence an fantastic provide a lot further eye-catching photographs.The producer and particularly the Mulberry Shoulder Bags have expand to become a style and design icon for stars and trendy adult gentlemen and females all in excess of the globe. Thanks for visiting Mulberry Bags british store.it compensates its versatility and comfort.Mulberry Alexa Bag and Mulberry Handbags are on warm providing in Mulberry Bags Keep. </p>
<p>Ladies have normally been manner acutely aware since of which they have a tendency to become in frequent contact with adjustments getting position in the glamour earth. They don&#8217;t need to be labeled as outdated and old-fashioned. To be able to get their selves the most appropriate mulberry bag , ladies can readily experience some online shopping internet sites which could make them conscious of the most recent tendencies.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on FlarToolkit/Flash Augmented RealityGetting Started by Astrid Depalma</title>
		<link>http://www.mikkoh.com/blog/2008/12/flartoolkitflash-augmented-realitygetting-started/comment-page-7/#comment-79770</link>
		<dc:creator>Astrid Depalma</dc:creator>
		<pubDate>Sun, 22 Apr 2012 04:04:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikkoh.com/blog/?p=182#comment-79770</guid>
		<description>I read the websites on a daily basis and it help me to</description>
		<content:encoded><![CDATA[<p>I read the websites on a daily basis and it help me to</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on FlarToolkit/Flash Augmented RealityGetting Started by Snineasianjunkj</title>
		<link>http://www.mikkoh.com/blog/2008/12/flartoolkitflash-augmented-realitygetting-started/comment-page-7/#comment-77280</link>
		<dc:creator>Snineasianjunkj</dc:creator>
		<pubDate>Sat, 07 Apr 2012 05:06:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikkoh.com/blog/?p=182#comment-77280</guid>
		<description>The scope of pharmacy             
&lt;a href=&quot;http://tragadolovernight.us&quot; rel=&quot;nofollow&quot;&gt;tragadol overnight&lt;/a&gt; apply includes extra traditional roles this sort of as compounding and dispensing drugs, and it also features extra modern day providers related to wellness care, which include clinical expert services, reviewing medicines for security and efficacy, &lt;a href=&quot;http://www.buyfioricetcodpharmacy.com&quot; rel=&quot;nofollow&quot;&gt;Buy Fioricet&lt;/a&gt; facts. Pharmacists, thus, are the experts on drug therapy and are the key health and wellbeing specialists who optimize treatment use to deliver individuals with optimistic well being results.</description>
		<content:encoded><![CDATA[<p>The scope of pharmacy<br />
<a href="http://tragadolovernight.us" rel="nofollow">tragadol overnight</a> apply includes extra traditional roles this sort of as compounding and dispensing drugs, and it also features extra modern day providers related to wellness care, which include clinical expert services, reviewing medicines for security and efficacy, <a href="http://www.buyfioricetcodpharmacy.com" rel="nofollow">Buy Fioricet</a> facts. Pharmacists, thus, are the experts on drug therapy and are the key health and wellbeing specialists who optimize treatment use to deliver individuals with optimistic well being results.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on FlarToolkit/Flash Augmented RealityGetting Started by pierw</title>
		<link>http://www.mikkoh.com/blog/2008/12/flartoolkitflash-augmented-realitygetting-started/comment-page-7/#comment-76091</link>
		<dc:creator>pierw</dc:creator>
		<pubDate>Thu, 29 Mar 2012 12:42:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikkoh.com/blog/?p=182#comment-76091</guid>
		<description>Is there any way to import this with javascript into unity3D?</description>
		<content:encoded><![CDATA[<p>Is there any way to import this with javascript into unity3D?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Flash Augmented Reality FLARToolkit by Yatharth</title>
		<link>http://www.mikkoh.com/blog/2008/11/flash-augmented-reality-flartoolkit/comment-page-1/#comment-75986</link>
		<dc:creator>Yatharth</dc:creator>
		<pubDate>Wed, 28 Mar 2012 21:24:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikkoh.com/blog/?p=129#comment-75986</guid>
		<description>Hi, I am developing an Ar app for my college project. I have a question can you click on a 3d model and open a website?
I really have been working on this but cant find the solution for this problem.
It would be a great help if somebody can help me.
Thanks
Yatharth</description>
		<content:encoded><![CDATA[<p>Hi, I am developing an Ar app for my college project. I have a question can you click on a 3d model and open a website?<br />
I really have been working on this but cant find the solution for this problem.<br />
It would be a great help if somebody can help me.<br />
Thanks<br />
Yatharth</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on FlarToolkit/Flash Augmented RealityGetting Started by Willemus</title>
		<link>http://www.mikkoh.com/blog/2008/12/flartoolkitflash-augmented-realitygetting-started/comment-page-7/#comment-74587</link>
		<dc:creator>Willemus</dc:creator>
		<pubDate>Tue, 20 Mar 2012 01:17:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikkoh.com/blog/?p=182#comment-74587</guid>
		<description>Kinds web page is definitely mainly useful for myself. I bookmarked your website!</description>
		<content:encoded><![CDATA[<p>Kinds web page is definitely mainly useful for myself. I bookmarked your website!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on FlarToolkit/Flash Augmented RealityGetting Started by Loan Lossen</title>
		<link>http://www.mikkoh.com/blog/2008/12/flartoolkitflash-augmented-realitygetting-started/comment-page-7/#comment-74419</link>
		<dc:creator>Loan Lossen</dc:creator>
		<pubDate>Sun, 18 Mar 2012 22:55:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikkoh.com/blog/?p=182#comment-74419</guid>
		<description>I have learn a few good stuff here. Certainly worth bookmarking for revisiting. I wonder how much attempt you put to make this sort of magnificent informative web site.</description>
		<content:encoded><![CDATA[<p>I have learn a few good stuff here. Certainly worth bookmarking for revisiting. I wonder how much attempt you put to make this sort of magnificent informative web site.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on FlarToolkit/Flash Augmented RealityGetting Started by Francisco Dirusso</title>
		<link>http://www.mikkoh.com/blog/2008/12/flartoolkitflash-augmented-realitygetting-started/comment-page-7/#comment-73644</link>
		<dc:creator>Francisco Dirusso</dc:creator>
		<pubDate>Wed, 14 Mar 2012 12:04:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikkoh.com/blog/?p=182#comment-73644</guid>
		<description>You do have a very nice design for your weblog, i want that to use in my site too.</description>
		<content:encoded><![CDATA[<p>You do have a very nice design for your weblog, i want that to use in my site too.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Augmented Reality Cloth by johnny</title>
		<link>http://www.mikkoh.com/blog/2009/01/augmented-reality-cloth/comment-page-1/#comment-71884</link>
		<dc:creator>johnny</dc:creator>
		<pubDate>Sat, 03 Mar 2012 02:54:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikkoh.com/blog/?p=225#comment-71884</guid>
		<description>when i run this program…i get an image in the cube… i dont want the cube to be displayed in the output..i want only the bitmap image in the output…can u correct this code n help me
package {
//imported classes (automatically generated)
import flash.display.BitmapData;
import flash.display.Sprite;
import flash.media.Camera;
import flash.media.Video;
import flash.utils.ByteArray;

import org.libspark.flartoolkit.core.FLARCode;
import org.libspark.flartoolkit.core.param.FLARParam;
import org.libspark.flartoolkit.core.raster.rgb.FLARRgbRaster_BitmapData;
import org.libspark.flartoolkit.core.transmat.FLARTransMatResult;
import org.libspark.flartoolkit.detector.FLARSingleMarkerDetector;
import org.libspark.flartoolkit.pv3d.FLARBaseNode;
import org.libspark.flartoolkit.pv3d.FLARCamera3D;
import org.papervision3d.lights.PointLight3D;
import org.papervision3d.objects.primitives.Cube;
import org.papervision3d.render.BasicRenderEngine;
import org.papervision3d.scenes.Scene3D;
import org.papervision3d.view.Viewport3D;
import org.papervision3d.materials.utils.MaterialsList;
import org.papervision3d.materials.shadematerials.FlatShadeMaterial;
import org.papervision3d.materials.BitmapMaterial;
import flash.events.Event;
import org.papervision3d.materials.BitmapFileMaterial;
import org.papervision3d.objects.parsers.DAE;

//This SWF command generates the size, framerate and color of the window
[SWF(width=&quot;640&quot;, height=&quot;480&quot;, frameRate=&quot;30&quot;, backgroundColor=&quot;#FFFFFF&quot;)]

public class AugReality extends Sprite
{
//Embed the “marker.pat” template into the project
[Embed(source=&quot;marker.pat&quot;, mimeType=&quot;application/octet-stream&quot;)]
private var marker:Class;

//Embed the “camera_para.dat” webcam data file into the project
[Embed(source=&quot;camera_para.dat&quot;, mimeType=&quot;application/octet-stream&quot;)]
private var cam_params:Class;

//createCam variables
private var ar_vid:Video;
private var ar_cam:Camera;
//createBMP vairiables
private var ar_bmp:BitmapData;
private var ar_raster:FLARRgbRaster_BitmapData;
private var ar_detection:FLARSingleMarkerDetector;
//createPapervision variables
private var ar_scene:Scene3D;
private var ar_3dcam:FLARCamera3D;
private var ar_basenode:FLARBaseNode;
private var ar_viewport:Viewport3D;
private var ar_renderengine:BasicRenderEngine;
private var ar_transmat:FLARTransMatResult;
private var ar_cube:Cube
//Uncomment the variable below if you wish to import a DAE 3D model
//	 private var ar_dae:DAE;

//This function is automatically generated
public function AugReality()
{
createFLAR();//call the createFlar function
createCam();//call the createCam function
createBMP();//call the createBMP function
createPapervision();//call the createPapervision function
addEventListener(Event.ENTER_FRAME, loop);//call the loop event
}
//This function sets up the FLAR marker file and webcam settings
public function createFLAR()
{
ar_params = new FLARParam();//create new paramaters for the project
ar_marker = new FLARCode(16, 16);//create a new 16×16 marker for the project
ar_params.loadARParam(new cam_params() as ByteArray);//loads paramaters for the webcam
ar_marker.loadARPatt(new marker());//loads the marker file template
}

//This function sets up a new Bitmap canvas
public function createBMP()
{
ar_bmp = new BitmapData(640, 480);//create a new Bitmap canvas to match the size of the project
ar_bmp.draw(ar_vid);//draw the Bitmap canvas onto the video
ar_raster = new FLARRgbRaster_BitmapData(ar_bmp);//Rasterize the Bitmap to RGB
ar_detection = new FLARSingleMarkerDetector(ar_params, ar_marker, 80);//Attach the marker file as the detection point
}
//This function creates a new PaperVision 3D object
public function createPapervision()
{
ar_scene = new Scene3D();//Create a new scene
ar_3dcam = new FLARCamera3D(ar_params);//Create a new 3D camera
ar_basenode = new FLARBaseNode();//Create a new content box
ar_renderengine = new BasicRenderEngine();//Create a new rendering object
ar_transmat = new FLARTransMatResult();//Create a new transformation matrix
ar_viewport = new Viewport3D();//Create a new viewport

//The code below creates a light that adds shadow to the 3D object
var ar_light:PointLight3D = new PointLight3D();//Create a new light variable
ar_light.x = 1000;//X axis position for the light
ar_light.y = 1000;//Y axis position for the light
ar_light.z = -1000;//Z axis position for the light

//The code below attaches an image file to the Papervision object
//Remove this section if you are intending to add a DAE 3D file
var ar_bitmap:BitmapFileMaterial;//Create a new material file
ar_bitmap = new BitmapFileMaterial(“podcast_logo_sm.png”);//Attach an image to the material
ar_bitmap.doubleSided = true;//Cover front and back of planes

//create a new cube object that is 80x80x80 pixels
//Remove this section if you are intending to add a DAE 3D file
ar_cube = new Cube(new MaterialsList({all:ar_bitmap}), 80, 80, 80);

//Uncomment this section if you wish to use a DAE 3D file
//	 var ar_materials:MaterialsList = new MaterialsList({all: new FlatShadeMaterial(ar_light)});
//	 ar_dae = new DAE();
//	 ar_dae.load(“lrg_acorn.dae”, ar_materials);
//	 ar_dae.scaleX = 5;
//	 ar_dae.scaleY = 5;

ar_scene.addChild(ar_basenode);//add the content box to the scene
ar_basenode.addChild(ar_cube);// add the cube to the content box (remove if using a DAE)
//	 ar_basenode.addChild(ar_dae); //Uncomment this section if you wish to use a DAE 3D file
addChild(ar_viewport);//Add the viewport to the project
}

//This loop tells the project what to do when the video loads
private function loop(e:Event):void
{
ar_bmp.draw(ar_vid);//attach the bitmap to the webcam video
ar_cube.rotationX +=4;//rotate the cube 4 pixels per frame on the X axis
ar_cube.rotationY +=6;//rotate the cube 6 pixels per frame on the Y axis
//	 ar_dae.rotationZ +=4; //Uncomment this section if you wish to use a DAE 3D file

try //This “try” clause catches any errors and prevents them from locking up the program.
{
//The below code detects the marker “if” it is in the viewing area
if(ar_detection.detectMarkerLite(ar_raster, 80) &amp;&amp; ar_detection.getConfidence() &gt; 0.5)
{
ar_detection.getTransformMatrix(ar_transmat);//When the marker is found, get the transformation matrix
ar_basenode.setTransformMatrix(ar_transmat);//Place the content box onto the transformatin matrix
ar_renderengine.renderScene(ar_scene, ar_3dcam, ar_viewport);//Render the scene
}
}
catch(e:Error){}//catch any errors
}
}
}</description>
		<content:encoded><![CDATA[<p>when i run this program…i get an image in the cube… i dont want the cube to be displayed in the output..i want only the bitmap image in the output…can u correct this code n help me<br />
package {<br />
//imported classes (automatically generated)<br />
import flash.display.BitmapData;<br />
import flash.display.Sprite;<br />
import flash.media.Camera;<br />
import flash.media.Video;<br />
import flash.utils.ByteArray;</p>
<p>import org.libspark.flartoolkit.core.FLARCode;<br />
import org.libspark.flartoolkit.core.param.FLARParam;<br />
import org.libspark.flartoolkit.core.raster.rgb.FLARRgbRaster_BitmapData;<br />
import org.libspark.flartoolkit.core.transmat.FLARTransMatResult;<br />
import org.libspark.flartoolkit.detector.FLARSingleMarkerDetector;<br />
import org.libspark.flartoolkit.pv3d.FLARBaseNode;<br />
import org.libspark.flartoolkit.pv3d.FLARCamera3D;<br />
import org.papervision3d.lights.PointLight3D;<br />
import org.papervision3d.objects.primitives.Cube;<br />
import org.papervision3d.render.BasicRenderEngine;<br />
import org.papervision3d.scenes.Scene3D;<br />
import org.papervision3d.view.Viewport3D;<br />
import org.papervision3d.materials.utils.MaterialsList;<br />
import org.papervision3d.materials.shadematerials.FlatShadeMaterial;<br />
import org.papervision3d.materials.BitmapMaterial;<br />
import flash.events.Event;<br />
import org.papervision3d.materials.BitmapFileMaterial;<br />
import org.papervision3d.objects.parsers.DAE;</p>
<p>//This SWF command generates the size, framerate and color of the window<br />
[SWF(width="640", height="480", frameRate="30", backgroundColor="#FFFFFF")]</p>
<p>public class AugReality extends Sprite<br />
{<br />
//Embed the “marker.pat” template into the project<br />
[Embed(source="marker.pat", mimeType="application/octet-stream")]<br />
private var marker:Class;</p>
<p>//Embed the “camera_para.dat” webcam data file into the project<br />
[Embed(source="camera_para.dat", mimeType="application/octet-stream")]<br />
private var cam_params:Class;</p>
<p>//createCam variables<br />
private var ar_vid:Video;<br />
private var ar_cam:Camera;<br />
//createBMP vairiables<br />
private var ar_bmp:BitmapData;<br />
private var ar_raster:FLARRgbRaster_BitmapData;<br />
private var ar_detection:FLARSingleMarkerDetector;<br />
//createPapervision variables<br />
private var ar_scene:Scene3D;<br />
private var ar_3dcam:FLARCamera3D;<br />
private var ar_basenode:FLARBaseNode;<br />
private var ar_viewport:Viewport3D;<br />
private var ar_renderengine:BasicRenderEngine;<br />
private var ar_transmat:FLARTransMatResult;<br />
private var ar_cube:Cube<br />
//Uncomment the variable below if you wish to import a DAE 3D model<br />
//	 private var ar_dae:DAE;</p>
<p>//This function is automatically generated<br />
public function AugReality()<br />
{<br />
createFLAR();//call the createFlar function<br />
createCam();//call the createCam function<br />
createBMP();//call the createBMP function<br />
createPapervision();//call the createPapervision function<br />
addEventListener(Event.ENTER_FRAME, loop);//call the loop event<br />
}<br />
//This function sets up the FLAR marker file and webcam settings<br />
public function createFLAR()<br />
{<br />
ar_params = new FLARParam();//create new paramaters for the project<br />
ar_marker = new FLARCode(16, 16);//create a new 16×16 marker for the project<br />
ar_params.loadARParam(new cam_params() as ByteArray);//loads paramaters for the webcam<br />
ar_marker.loadARPatt(new marker());//loads the marker file template<br />
}</p>
<p>//This function sets up a new Bitmap canvas<br />
public function createBMP()<br />
{<br />
ar_bmp = new BitmapData(640, 480);//create a new Bitmap canvas to match the size of the project<br />
ar_bmp.draw(ar_vid);//draw the Bitmap canvas onto the video<br />
ar_raster = new FLARRgbRaster_BitmapData(ar_bmp);//Rasterize the Bitmap to RGB<br />
ar_detection = new FLARSingleMarkerDetector(ar_params, ar_marker, 80);//Attach the marker file as the detection point<br />
}<br />
//This function creates a new PaperVision 3D object<br />
public function createPapervision()<br />
{<br />
ar_scene = new Scene3D();//Create a new scene<br />
ar_3dcam = new FLARCamera3D(ar_params);//Create a new 3D camera<br />
ar_basenode = new FLARBaseNode();//Create a new content box<br />
ar_renderengine = new BasicRenderEngine();//Create a new rendering object<br />
ar_transmat = new FLARTransMatResult();//Create a new transformation matrix<br />
ar_viewport = new Viewport3D();//Create a new viewport</p>
<p>//The code below creates a light that adds shadow to the 3D object<br />
var ar_light:PointLight3D = new PointLight3D();//Create a new light variable<br />
ar_light.x = 1000;//X axis position for the light<br />
ar_light.y = 1000;//Y axis position for the light<br />
ar_light.z = -1000;//Z axis position for the light</p>
<p>//The code below attaches an image file to the Papervision object<br />
//Remove this section if you are intending to add a DAE 3D file<br />
var ar_bitmap:BitmapFileMaterial;//Create a new material file<br />
ar_bitmap = new BitmapFileMaterial(“podcast_logo_sm.png”);//Attach an image to the material<br />
ar_bitmap.doubleSided = true;//Cover front and back of planes</p>
<p>//create a new cube object that is 80&#215;80x80 pixels<br />
//Remove this section if you are intending to add a DAE 3D file<br />
ar_cube = new Cube(new MaterialsList({all:ar_bitmap}), 80, 80, 80);</p>
<p>//Uncomment this section if you wish to use a DAE 3D file<br />
//	 var ar_materials:MaterialsList = new MaterialsList({all: new FlatShadeMaterial(ar_light)});<br />
//	 ar_dae = new DAE();<br />
//	 ar_dae.load(“lrg_acorn.dae”, ar_materials);<br />
//	 ar_dae.scaleX = 5;<br />
//	 ar_dae.scaleY = 5;</p>
<p>ar_scene.addChild(ar_basenode);//add the content box to the scene<br />
ar_basenode.addChild(ar_cube);// add the cube to the content box (remove if using a DAE)<br />
//	 ar_basenode.addChild(ar_dae); //Uncomment this section if you wish to use a DAE 3D file<br />
addChild(ar_viewport);//Add the viewport to the project<br />
}</p>
<p>//This loop tells the project what to do when the video loads<br />
private function loop(e:Event):void<br />
{<br />
ar_bmp.draw(ar_vid);//attach the bitmap to the webcam video<br />
ar_cube.rotationX +=4;//rotate the cube 4 pixels per frame on the X axis<br />
ar_cube.rotationY +=6;//rotate the cube 6 pixels per frame on the Y axis<br />
//	 ar_dae.rotationZ +=4; //Uncomment this section if you wish to use a DAE 3D file</p>
<p>try //This “try” clause catches any errors and prevents them from locking up the program.<br />
{<br />
//The below code detects the marker “if” it is in the viewing area<br />
if(ar_detection.detectMarkerLite(ar_raster, 80) &amp;&amp; ar_detection.getConfidence() &gt; 0.5)<br />
{<br />
ar_detection.getTransformMatrix(ar_transmat);//When the marker is found, get the transformation matrix<br />
ar_basenode.setTransformMatrix(ar_transmat);//Place the content box onto the transformatin matrix<br />
ar_renderengine.renderScene(ar_scene, ar_3dcam, ar_viewport);//Render the scene<br />
}<br />
}<br />
catch(e:Error){}//catch any errors<br />
}<br />
}<br />
}</p>
]]></content:encoded>
	</item>
</channel>
</rss>

