Except he wants the cube to mask whats inside it.  I&#39;m not sure offhand how to separate the external faces of a cube with its internal faces, so I&#39;d suggest using two cubes: insideCube and outsideCube.<br><br>insidecube should only have internal faces, and no external faces.<br>
outsidecube is the opposite (no internal faces).<br><br>then use the following:<br>viewport.<span style="color: rgb(0, 102, 0);">getChildLayer</span><span style="color: rgb(102, 204, 102);">(</span>insidecube<span style="color: rgb(0, 0, 0); font-weight: bold;"></span><span style="color: rgb(102, 204, 102);">)</span>.<span style="color: rgb(0, 102, 0);">mask</span> = viewport.<span style="color: rgb(0, 102, 0);">getChildLayer</span><span style="color: rgb(102, 204, 102);">(</span>outsidecube<span style="color: rgb(102, 204, 102);">)</span>;<br>
<span style="color: rgb(102, 204, 102);"><br></span>As long as the cubes share the same transformation info, I think that will work.<br><br><br><br><div class="gmail_quote">On Fri, Apr 17, 2009 at 5:30 AM, CodeJockey1 <span dir="ltr">&lt;<a href="mailto:codejockey1@gmail.com">codejockey1@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Simple solution:<br>
<br>
create a cube, and turn off all of the outside faces so the material only<br>
shows on the inside faces.  Done!<br>
<font color="#888888">--<br>
View this message in context: <a href="http://www.nabble.com/Advanced-Masking-question-tp21144142p23096640.html" target="_blank">http://www.nabble.com/Advanced-Masking-question-tp21144142p23096640.html</a><br>
</font><div class="im">Sent from the Papervision3D mailing list archive at Nabble.com.<br>
<br>
<br>
_______________________________________________<br>
</div><div><div></div><div class="h5">Papervision3D mailing list<br>
<a href="mailto:Papervision3D@osflash.org">Papervision3D@osflash.org</a><br>
<a href="http://osflash.org/mailman/listinfo/papervision3d_osflash.org" target="_blank">http://osflash.org/mailman/listinfo/papervision3d_osflash.org</a><br>
</div></div></blockquote></div><br>