<?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 on: How to make only &#8220;The Hole&#8221; using Papervision3D</title>
	<atom:link href="http://saqoosha.net/en/2009/01/08/1676/feed/" rel="self" type="application/rss+xml" />
	<link>http://saqoosha.net/en/2009/01/08/1676/</link>
	<description>Saqoosha.net</description>
	<lastBuildDate>Sun, 14 Mar 2010 23:29:20 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: tetsuo</title>
		<link>http://saqoosha.net/en/2009/01/08/1676/comment-page-1/#comment-69716</link>
		<dc:creator>tetsuo</dc:creator>
		<pubDate>Tue, 16 Mar 2010 16:44:00 +0000</pubDate>
		<guid isPermaLink="false">http://saqoosha.net/?p=1676#comment-69716</guid>
		<description>idem dimitrios k 
I have the same question.</description>
		<content:encoded><![CDATA[<p>idem dimitrios k<br />
I have the same question.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dimitrios k</title>
		<link>http://saqoosha.net/en/2009/01/08/1676/comment-page-1/#comment-69448</link>
		<dc:creator>dimitrios k</dc:creator>
		<pubDate>Tue, 16 Mar 2010 08:32:00 +0000</pubDate>
		<guid isPermaLink="false">http://saqoosha.net/?p=1676#comment-69448</guid>
		<description>Hello there!
I have a question.
How can i make the hole in a 3d program like 3dsmax and export it to .dae format?can i make this or only in pv3d?
thank you and greetz from greece</description>
		<content:encoded><![CDATA[<p>Hello there!<br />
I have a question.<br />
How can i make the hole in a 3d program like 3dsmax and export it to .dae format?can i make this or only in pv3d?<br />
thank you and greetz from greece</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: draven</title>
		<link>http://saqoosha.net/en/2009/01/08/1676/comment-page-1/#comment-69431</link>
		<dc:creator>draven</dc:creator>
		<pubDate>Tue, 16 Mar 2010 07:15:00 +0000</pubDate>
		<guid isPermaLink="false">http://saqoosha.net/?p=1676#comment-69431</guid>
		<description>Hello guys, is there any way to remove the green edge around the hole? 

Thanks for the awesomeness Saqoosha!</description>
		<content:encoded><![CDATA[<p>Hello guys, is there any way to remove the green edge around the hole? </p>
<p>Thanks for the awesomeness Saqoosha!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Olivier</title>
		<link>http://saqoosha.net/en/2009/01/08/1676/comment-page-1/#comment-69150</link>
		<dc:creator>Olivier</dc:creator>
		<pubDate>Tue, 16 Mar 2010 05:31:00 +0000</pubDate>
		<guid isPermaLink="false">http://saqoosha.net/?p=1676#comment-69150</guid>
		<description>Amazing work Saqoosha. Thanks again for all the examples and sources.
Merci mille fois.</description>
		<content:encoded><![CDATA[<p>Amazing work Saqoosha. Thanks again for all the examples and sources.<br />
Merci mille fois.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://saqoosha.net/en/2009/01/08/1676/comment-page-1/#comment-69148</link>
		<dc:creator>John</dc:creator>
		<pubDate>Tue, 16 Mar 2010 14:48:00 +0000</pubDate>
		<guid isPermaLink="false">http://saqoosha.net/?p=1676#comment-69148</guid>
		<description>Awesome!
Successfully implemented it in my own project.
And the input from Timbo and ReDrUm was of great help.

Saqoosha, your a true ActionScript hero.</description>
		<content:encoded><![CDATA[<p>Awesome!<br />
Successfully implemented it in my own project.<br />
And the input from Timbo and ReDrUm was of great help.</p>
<p>Saqoosha, your a true ActionScript hero.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lucas</title>
		<link>http://saqoosha.net/en/2009/01/08/1676/comment-page-1/#comment-69108</link>
		<dc:creator>Lucas</dc:creator>
		<pubDate>Tue, 16 Mar 2010 15:26:00 +0000</pubDate>
		<guid isPermaLink="false">http://saqoosha.net/?p=1676#comment-69108</guid>
		<description>thanks, Rob. Really helped me.</description>
		<content:encoded><![CDATA[<p>thanks, Rob. Really helped me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob</title>
		<link>http://saqoosha.net/en/2009/01/08/1676/comment-page-1/#comment-69107</link>
		<dc:creator>Rob</dc:creator>
		<pubDate>Tue, 16 Mar 2010 10:55:00 +0000</pubDate>
		<guid isPermaLink="false">http://saqoosha.net/?p=1676#comment-69107</guid>
		<description>Hi Guys,

Some additional information to the “hole” effect:

If your hole is not perfectly “transparent” but you can see an almost invisible semi transparent green box “below” your marker (around your hole)…
I bet you used jpg format for the green texture. I’ve no idea why but if I’m exporting the green texture from photoshop to a jpg file, the 00ff00 colour is changing to 00ff01. And that’s why is that semi transparent green box is there around your hole. Just use another format (png) and that unwanted green box will disappear.</description>
		<content:encoded><![CDATA[<p>Hi Guys,</p>
<p>Some additional information to the “hole” effect:</p>
<p>If your hole is not perfectly “transparent” but you can see an almost invisible semi transparent green box “below” your marker (around your hole)…<br />
I bet you used jpg format for the green texture. I’ve no idea why but if I’m exporting the green texture from photoshop to a jpg file, the 00ff00 colour is changing to 00ff01. And that’s why is that semi transparent green box is there around your hole. Just use another format (png) and that unwanted green box will disappear.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob</title>
		<link>http://saqoosha.net/en/2009/01/08/1676/comment-page-1/#comment-69103</link>
		<dc:creator>Rob</dc:creator>
		<pubDate>Tue, 16 Mar 2010 21:43:00 +0000</pubDate>
		<guid isPermaLink="false">http://saqoosha.net/?p=1676#comment-69103</guid>
		<description>Oh one more thing.

Just a designer solution again :D So coders skip this message ;)

If you don’t understand this coder language, I will translate it for you:

This whole thing is about using a specific colour as a simple green screen. This case the colour is a specific green colour (00FF00). So whatever is 00FF00 on screen will be transparent.

Ok, why is it good for us? Hehe, ok I have a question: what if the hole is not cubic? What if it’s not a simple mesh but a complicated one? Follow this way and you won’t have a problem:

Use your 3D modeler tool as always. In your texture file find some free space and fill it with 00FF00 colour (just a small area needed). 

Create the hole, the shape is doesn’t matter. This will be the “inside” of the hole. Texture it as you want. Than duplicate this object and turn it inside out (reverse vertex order or something like that). This will be the ”outside” of the hole. Now texture it but this case use that small green area on it. And there you go, with the code above it will be transparent even if the shape is a complicated one.</description>
		<content:encoded><![CDATA[<p>Oh one more thing.</p>
<p>Just a designer solution again :D So coders skip this message ;)</p>
<p>If you don’t understand this coder language, I will translate it for you:</p>
<p>This whole thing is about using a specific colour as a simple green screen. This case the colour is a specific green colour (00FF00). So whatever is 00FF00 on screen will be transparent.</p>
<p>Ok, why is it good for us? Hehe, ok I have a question: what if the hole is not cubic? What if it’s not a simple mesh but a complicated one? Follow this way and you won’t have a problem:</p>
<p>Use your 3D modeler tool as always. In your texture file find some free space and fill it with 00FF00 colour (just a small area needed). </p>
<p>Create the hole, the shape is doesn’t matter. This will be the “inside” of the hole. Texture it as you want. Than duplicate this object and turn it inside out (reverse vertex order or something like that). This will be the ”outside” of the hole. Now texture it but this case use that small green area on it. And there you go, with the code above it will be transparent even if the shape is a complicated one.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob</title>
		<link>http://saqoosha.net/en/2009/01/08/1676/comment-page-1/#comment-69102</link>
		<dc:creator>Rob</dc:creator>
		<pubDate>Tue, 16 Mar 2010 21:26:00 +0000</pubDate>
		<guid isPermaLink="false">http://saqoosha.net/?p=1676#comment-69102</guid>
		<description>Hi All,

Javier I had the same problem. I couldn’t get the effect because I had no viewport… I’m not a coder but I’m interested in AR so I’ve started to using and hacking templates (sorry developer dudes). So I guess you are same kind as me, and I guess you are using the same (or at least similar) template as me. And I have the solution for you:

So basically you have a viewport just you don’t know about it. As I see now this whole thing is not working without viewport. So if you see the 3d object then you have viewport 

Ok, where is that than? The template what I’m using is built up from different external ‘as’ files. In the main ‘as’ file there is no viewport definition, but it is defined in another as file (PV3DARApp.as for me).

Find your other as file with the viewport definition. Check for lines like:

import org.papervision3d.view.Viewport3D;

and

new Viewport3D(320, 240

and things like that.

If you find that file than you are almost there.

Now you have to “hack” this file. Put this code to the “import section”:
import flash.filters.ColorMatrixFilter;

Then search for viewport related lines like

this._viewport = this._base.addChild(new Viewport3D(320, 240)) as Viewport3D;
this._viewport.scaleX = 640 / 320;

etc.

Put this code there:

var myElements_array:Array = [1, 0, 0, 0, 0,
            0, 1, 0, 0, 0,
            0, 0, 1, 0, 0,
            1, -1, 1, 1, 0];
var myColorMatrix_filter:ColorMatrixFilter = new ColorMatrixFilter(myElements_array);
this._viewport.filters = [myColorMatrix_filter];

And that’s it. I hope I helped the AR community with this.

BTW thanks for all the developer dudes to put together this fantastic piece of flash!</description>
		<content:encoded><![CDATA[<p>Hi All,</p>
<p>Javier I had the same problem. I couldn’t get the effect because I had no viewport… I’m not a coder but I’m interested in AR so I’ve started to using and hacking templates (sorry developer dudes). So I guess you are same kind as me, and I guess you are using the same (or at least similar) template as me. And I have the solution for you:</p>
<p>So basically you have a viewport just you don’t know about it. As I see now this whole thing is not working without viewport. So if you see the 3d object then you have viewport </p>
<p>Ok, where is that than? The template what I’m using is built up from different external ‘as’ files. In the main ‘as’ file there is no viewport definition, but it is defined in another as file (PV3DARApp.as for me).</p>
<p>Find your other as file with the viewport definition. Check for lines like:</p>
<p>import org.papervision3d.view.Viewport3D;</p>
<p>and</p>
<p>new Viewport3D(320, 240</p>
<p>and things like that.</p>
<p>If you find that file than you are almost there.</p>
<p>Now you have to “hack” this file. Put this code to the “import section”:<br />
import flash.filters.ColorMatrixFilter;</p>
<p>Then search for viewport related lines like</p>
<p>this._viewport = this._base.addChild(new Viewport3D(320, 240)) as Viewport3D;<br />
this._viewport.scaleX = 640 / 320;</p>
<p>etc.</p>
<p>Put this code there:</p>
<p>var myElements_array:Array = [1, 0, 0, 0, 0,<br />
            0, 1, 0, 0, 0,<br />
            0, 0, 1, 0, 0,<br />
            1, -1, 1, 1, 0];<br />
var myColorMatrix_filter:ColorMatrixFilter = new ColorMatrixFilter(myElements_array);<br />
this._viewport.filters = [myColorMatrix_filter];</p>
<p>And that’s it. I hope I helped the AR community with this.</p>
<p>BTW thanks for all the developer dudes to put together this fantastic piece of flash!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Javier Patiño</title>
		<link>http://saqoosha.net/en/2009/01/08/1676/comment-page-1/#comment-69095</link>
		<dc:creator>Javier Patiño</dc:creator>
		<pubDate>Tue, 16 Mar 2010 04:30:00 +0000</pubDate>
		<guid isPermaLink="false">http://saqoosha.net/?p=1676#comment-69095</guid>
		<description>Hello..nice work...I have the same problem but I cant set the filter for the viweport because I dont use viewport..what can I do?..the green color now is black color.</description>
		<content:encoded><![CDATA[<p>Hello..nice work&#8230;I have the same problem but I cant set the filter for the viweport because I dont use viewport..what can I do?..the green color now is black color.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
