<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:p="urn:schemas-microsoft-com:office:powerpoint" xmlns:a="urn:schemas-microsoft-com:office:access" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema" xmlns:b="urn:schemas-microsoft-com:office:publisher" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:c="urn:schemas-microsoft-com:office:component:spreadsheet" xmlns:odc="urn:schemas-microsoft-com:office:odc" xmlns:oa="urn:schemas-microsoft-com:office:activation" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:q="http://schemas.xmlsoap.org/soap/envelope/" xmlns:rtc="http://microsoft.com/officenet/conferencing" xmlns:D="DAV:" xmlns:Repl="http://schemas.microsoft.com/repl/" xmlns:mt="http://schemas.microsoft.com/sharepoint/soap/meetings/" xmlns:x2="http://schemas.microsoft.com/office/excel/2003/xml" xmlns:ppda="http://www.passport.com/NameSpace.xsd" xmlns:ois="http://schemas.microsoft.com/sharepoint/soap/ois/" xmlns:dir="http://schemas.microsoft.com/sharepoint/soap/directory/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:dsp="http://schemas.microsoft.com/sharepoint/dsp" xmlns:udc="http://schemas.microsoft.com/data/udc" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sub="http://schemas.microsoft.com/sharepoint/soap/2002/1/alerts/" xmlns:ec="http://www.w3.org/2001/04/xmlenc#" xmlns:sp="http://schemas.microsoft.com/sharepoint/" xmlns:sps="http://schemas.microsoft.com/sharepoint/soap/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:udcs="http://schemas.microsoft.com/data/udc/soap" xmlns:udcxf="http://schemas.microsoft.com/data/udc/xmlfile" xmlns:udcp2p="http://schemas.microsoft.com/data/udc/parttopart" xmlns:wf="http://schemas.microsoft.com/sharepoint/soap/workflow/" xmlns:dsss="http://schemas.microsoft.com/office/2006/digsig-setup" xmlns:dssi="http://schemas.microsoft.com/office/2006/digsig" xmlns:mdssi="http://schemas.openxmlformats.org/package/2006/digital-signature" xmlns:mver="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns:mrels="http://schemas.openxmlformats.org/package/2006/relationships" xmlns:spwp="http://microsoft.com/sharepoint/webpartpages" xmlns:ex12t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:ex12m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:pptsl="http://schemas.microsoft.com/sharepoint/soap/SlideLibrary/" xmlns:spsl="http://microsoft.com/webservices/SharePointPortalServer/PublishedLinksService" xmlns:Z="urn:schemas-microsoft-com:" xmlns:st="&#1;" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"Trebuchet MS";
        panose-1:2 11 6 3 2 2 2 2 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
span.EmailStyle20
        {mso-style-type:personal;
        font-family:"Trebuchet MS","sans-serif";
        color:#595959;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
span.EmailStyle21
        {mso-style-type:personal-reply;
        font-family:"Trebuchet MS","sans-serif";
        color:#595959;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="3074" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=2 color="#595959" face="Trebuchet MS"><span
style='font-size:10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>Hmmm&#8230;
nobody?  This is a pretty simple problem, and I&#8217;m not sure where to start
troubleshooting next&#8230;  is there a problem if the dimensions of the image
being mapped to the object is larger than the surface area of the object itself? 
Just trying to figure out why I&#8217;m only getting the wireframe and not the
texture.  Code below.  Thanks!<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#595959" face="Trebuchet MS"><span
style='font-size:10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'><o:p>&nbsp;</o:p></span></font></p>

<div>

<p class=MsoNormal style='text-autospace:none'><b><font size=1 color="#76923c"
face="Trebuchet MS"><span style='font-size:9.0pt;font-family:"Trebuchet MS","sans-serif";
color:#76923C;font-weight:bold'><o:p>&nbsp;</o:p></span></font></b></p>

<p class=MsoNormal style='text-autospace:none'><b><font size=1 color="#76923c"
face="Trebuchet MS"><span style='font-size:9.0pt;font-family:"Trebuchet MS","sans-serif";
color:#76923C;font-weight:bold'>Jason Merrill</span></font></b><font size=1
color="#365f91" face="Trebuchet MS"><span style='font-size:8.0pt;font-family:
"Trebuchet MS","sans-serif";color:#365F91'> <br>
<br>
<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><b><font size=1 color="#0052c2"
face=Arial><span style='font-size:8.0pt;font-family:"Arial","sans-serif";
color:#0052C2;font-weight:bold'>Bank of  America</span></font></b><font size=1
color="#365f91" face="Trebuchet MS"><span style='font-size:8.0pt;font-family:
"Trebuchet MS","sans-serif";color:#365F91'> </span></font><b><font size=1
color="#d1001d" face=Tahoma><span style='font-size:8.0pt;font-family:"Tahoma","sans-serif";
color:#D1001D;font-weight:bold'><img width=17 height=14 id="_x0000_i1026"
src="cid:image001.jpg@01C9FAFC.06E8EA40" alt=smallLogo></span></font></b><font
size=1 color="#595959" face="Trebuchet MS"><span style='font-size:8.0pt;
font-family:"Trebuchet MS","sans-serif";color:#595959'>  </span></font><font
size=1 color="#595959" face="Trebuchet MS"><span style='font-size:8.0pt;
font-family:"Trebuchet MS","sans-serif";color:#595959'>Global Learning <o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=1 color="#595959"
face="Trebuchet MS"><span style='font-size:8.0pt;font-family:"Trebuchet MS","sans-serif";
color:#595959'>Shared Services Solutions Development <o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=1 color="#595959"
face="Trebuchet MS"><span style='font-size:8.0pt;font-family:"Trebuchet MS","sans-serif";
color:#595959'><br>
</span></font><i><font size=1 color="#7f7f7f" face="Trebuchet MS"><span
style='font-size:9.0pt;font-family:"Trebuchet MS","sans-serif";color:#7F7F7F;
font-style:italic'>Monthly meetings on the Adobe Flash platform for rich media
experiences - join the </span></font></i><i><font size=1 color="#548dd4"
face="Trebuchet MS"><span style='font-size:9.0pt;font-family:"Trebuchet MS","sans-serif";
color:#548DD4;font-style:italic'><a
href="http://sharepoint.bankofamerica.com/sites/tlc/flash/default.aspx"><font
color="#548dd4"><span style='color:#548DD4'>Bank of America Flash Platform
Community</span></font></a></span></font></i><i><font size=1 color="#7f7f7f"
face="Trebuchet MS"><span style='font-size:9.0pt;font-family:"Trebuchet MS","sans-serif";
color:#7F7F7F;font-style:italic'> </span></font></i><font size=1 color="#595959"
face="Trebuchet MS"><span style='font-size:8.0pt;font-family:"Trebuchet MS","sans-serif";
color:#595959'><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#595959" face=Calibri><span
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#595959'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#595959" face=Calibri><span
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#595959'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#595959" face=Calibri><span
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#595959'><o:p>&nbsp;</o:p></span></font></p>

</div>

<p class=MsoNormal><font size=2 color="#595959" face="Trebuchet MS"><span
style='font-size:10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:"Tahoma","sans-serif";font-weight:bold'>From:</span></font></b><font
size=2 face=Tahoma><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
papervision3d-bounces@osflash.org [mailto:papervision3d-bounces@osflash.org] <b><span
style='font-weight:bold'>On Behalf Of </span></b>Merrill, Jason<br>
<b><span style='font-weight:bold'>Sent:</span></b> Wednesday, July 01, 2009
3:59 PM<br>
<b><span style='font-weight:bold'>To:</span></b> papervision3d@osflash.org<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [Papervision3D]
Simple Cube w/Texture<o:p></o:p></span></font></p>

</div>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#595959" face="Trebuchet MS"><span
style='font-size:10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>OK
cool &#8211; so now I see the cube mesh, and I can rotate it easily, but the
texture is not mapped to it.&nbsp; Can someone check the code I posted about
two posts back and see if they see any problems with the way I am adding
materials?&nbsp; The .jpg is in the same directory.&nbsp; Thanks!<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#595959" face="Trebuchet MS"><span
style='font-size:10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><b><font size=1 color="#76923c"
face="Trebuchet MS"><span style='font-size:9.0pt;font-family:"Trebuchet MS","sans-serif";
color:#76923C;font-weight:bold'><o:p>&nbsp;</o:p></span></font></b></p>

<p class=MsoNormal style='margin-bottom:12.0pt;text-autospace:none'><b><font
size=1 color="#76923c" face="Trebuchet MS"><span style='font-size:9.0pt;
font-family:"Trebuchet MS","sans-serif";color:#76923C;font-weight:bold'>Jason
Merrill</span></font></b><font size=1 color="#365f91" face="Trebuchet MS"><span
style='font-size:8.0pt;font-family:"Trebuchet MS","sans-serif";color:#365F91'> <o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><b><font size=1 color="#0052c2"
face=Arial><span style='font-size:8.0pt;font-family:"Arial","sans-serif";
color:#0052C2;font-weight:bold'>Bank of&nbsp; America</span></font></b><font
size=1 color="#365f91" face="Trebuchet MS"><span style='font-size:8.0pt;
font-family:"Trebuchet MS","sans-serif";color:#365F91'> </span></font><b><font
size=1 color="#d1001d" face=Tahoma><span style='font-size:8.0pt;font-family:
"Tahoma","sans-serif";color:#D1001D;font-weight:bold'><img border=0 width=17
height=14 id="Picture_x0020_1" src="cid:image001.jpg@01C9FAFC.06E8EA40"
alt=smallLogo></span></font></b><font size=1 color="#595959" face="Trebuchet MS"><span
style='font-size:8.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>&nbsp;&nbsp;Global
Learning <o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=1 color="#595959"
face="Trebuchet MS"><span style='font-size:8.0pt;font-family:"Trebuchet MS","sans-serif";
color:#595959'>Shared Services Solutions Development <o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=1 color="#595959"
face="Trebuchet MS"><span style='font-size:8.0pt;font-family:"Trebuchet MS","sans-serif";
color:#595959'><br>
</span></font><i><font size=1 color="#7f7f7f" face="Trebuchet MS"><span
style='font-size:9.0pt;font-family:"Trebuchet MS","sans-serif";color:#7F7F7F;
font-style:italic'>Monthly meetings on the Adobe Flash platform for rich media
experiences - join the </span></font></i><i><font size=1 color="#548dd4"
face="Trebuchet MS"><span style='font-size:9.0pt;font-family:"Trebuchet MS","sans-serif";
color:#548DD4;font-style:italic'><a
href="http://sharepoint.bankofamerica.com/sites/tlc/flash/default.aspx"><font
color="#548dd4"><span style='color:#548DD4'>Bank of America Flash Platform
Community</span></font></a></span></font></i><i><font size=1 color="#7f7f7f"
face="Trebuchet MS"><span style='font-size:9.0pt;font-family:"Trebuchet MS","sans-serif";
color:#7F7F7F;font-style:italic'> </span></font></i><font size=1 color="#595959"
face="Trebuchet MS"><span style='font-size:8.0pt;font-family:"Trebuchet MS","sans-serif";
color:#595959'><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#595959" face=Calibri><span
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#595959'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#595959" face=Calibri><span
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#595959'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div>

<div>

<div>

<div>

<blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'>

<div>

<div>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>&nbsp;</span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>Here is all my
code (a few things are irrelevant since I was messing around with some other
things):</span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>&nbsp;</span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>package </span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>{</span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
import flash.display.Bitmap;</span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
import flash.display.BitmapData;</span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
import flash.display.Sprite; </span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
import flash.events.Event;</span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
import flash.events.MouseEvent;</span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
import org.papervision3d.core.proto.MaterialObject3D;</span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
import org.papervision3d.materials.BitmapFileMaterial;</span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
import org.papervision3d.materials.BitmapMaterial;</span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
import org.papervision3d.materials.utils.MaterialsList;</span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
import org.papervision3d.materials.WireframeMaterial;</span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
import org.papervision3d.objects.primitives.Cube;</span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
import org.papervision3d.view.Viewport3D; </span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
import org.papervision3d.scenes.Scene3D; </span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
import org.papervision3d.cameras.Camera3D; </span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
import org.papervision3d.materials.ColorMaterial; </span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
import org.papervision3d.render.BasicRenderEngine; </span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>&nbsp;</span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
public class MyPV3DTest extends Sprite</span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
{</span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
private var viewport: Viewport3D; </span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
private var scene: Scene3D; </span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
private var camera: Camera3D; </span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
private var material:MaterialObject3D;</span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
private var materials:MaterialsList;</span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
private var primitive:Cube</span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
private var renderer: BasicRenderEngine;</span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
public function MyPV3DTest ():void</span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
{</span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
//viewport = new Viewport3D(w, h, scaleToStage, interactive); </span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
viewport = new Viewport3D(550, 400, false, true); </span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
addChild(viewport); </span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>&nbsp;</span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
//instantiates a Scene3D instance </span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
scene = new Scene3D(); </span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>&nbsp;</span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
//instantiates a Camera3D instance </span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
camera = new Camera3D(); </span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>&nbsp;</span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
//renderer draws the scene to the stage </span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
renderer = new BasicRenderEngine(); </span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>&nbsp;</span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
var wireframeMaterial:WireframeMaterial = new WireframeMaterial(0x333333);</span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
wireframeMaterial.doubleSided = true;</span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>&nbsp;</span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
var bitmapFileMaterial:BitmapFileMaterial = new BitmapFileMaterial(&quot;city.jpg&quot;);</span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
bitmapFileMaterial.doubleSided = true;</span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;var materialsList:MaterialsList = new MaterialsList(); </span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;materialsList.addMaterial(wireframeMaterial, &quot;front&quot;); </span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;materialsList.addMaterial(wireframeMaterial, &quot;back&quot;); </span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;materialsList.addMaterial(bitmapFileMaterial, &quot;left&quot;); </span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;materialsList.addMaterial(wireframeMaterial, &quot;right&quot;); </span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;materialsList.addMaterial(wireframeMaterial, &quot;top&quot;); </span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;materialsList.addMaterial(wireframeMaterial, &quot;bottom&quot;); </span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>&nbsp;</span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;var cube:Cube = new Cube(materialsList, 200, 200, 200, 3, 3, 3);</span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;scene.addChild(cube);</span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
}</span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
}</span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>}</span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>&nbsp;</span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>&nbsp;</span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>&nbsp;</span></font><o:p></o:p></p>

<p><b><font size=1 color="#76923c" face="Trebuchet MS"><span style='font-size:
9.0pt;font-family:"Trebuchet MS","sans-serif";color:#76923C;font-weight:bold'>&nbsp;</span></font></b><o:p></o:p></p>

<p style='margin-bottom:12.0pt'><b><font size=1 color="#76923c"
face="Trebuchet MS"><span style='font-size:9.0pt;font-family:"Trebuchet MS","sans-serif";
color:#76923C;font-weight:bold'>Jason Merrill</span></font></b><font size=1
color="#365f91" face="Trebuchet MS"><span style='font-size:8.0pt;font-family:
"Trebuchet MS","sans-serif";color:#365F91'> </span></font><o:p></o:p></p>

<p><b><font size=1 color="#0052c2" face=Arial><span style='font-size:8.0pt;
font-family:"Arial","sans-serif";color:#0052C2;font-weight:bold'>Bank of&nbsp;
America</span></font></b><font size=1 color="#365f91" face="Trebuchet MS"><span
style='font-size:8.0pt;font-family:"Trebuchet MS","sans-serif";color:#365F91'> </span></font><b><font
size=1 color="#d1001d" face=Tahoma><span style='font-size:8.0pt;font-family:
"Tahoma","sans-serif";color:#D1001D;font-weight:bold'>&lt;image001.jpg&gt;</span></font></b><font
size=1 color="#595959" face="Trebuchet MS"><span style='font-size:8.0pt;
font-family:"Trebuchet MS","sans-serif";color:#595959'>&nbsp;&nbsp;Global
Learning </span></font><o:p></o:p></p>

<p><font size=1 color="#595959" face="Trebuchet MS"><span style='font-size:
8.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>Shared Services
Solutions Development </span></font><o:p></o:p></p>

<p><font size=1 color="#595959" face="Trebuchet MS"><span style='font-size:
8.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'><br>
</span></font><i><font size=1 color="#7f7f7f" face="Trebuchet MS"><span
style='font-size:9.0pt;font-family:"Trebuchet MS","sans-serif";color:#7F7F7F;
font-style:italic'>Monthly meetings on the Adobe Flash platform for rich media
experiences - join the </span></font></i><i><font size=1 color="#548dd4"
face="Trebuchet MS"><span style='font-size:9.0pt;font-family:"Trebuchet MS","sans-serif";
color:#548DD4;font-style:italic'><a
href="http://sharepoint.bankofamerica.com/sites/tlc/flash/default.aspx"
target="_blank"><font color="#548dd4"><span style='color:#548DD4'>Bank of America
Flash Platform Community</span></font></a></span></font></i><i><font size=1
color="#7f7f7f" face="Trebuchet MS"><span style='font-size:9.0pt;font-family:
"Trebuchet MS","sans-serif";color:#7F7F7F;font-style:italic'> </span></font></i><o:p></o:p></p>

<p><font size=2 color="#595959" face=Calibri><span style='font-size:11.0pt;
font-family:"Calibri","sans-serif";color:#595959'>&nbsp;</span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face=Calibri><span style='font-size:11.0pt;
font-family:"Calibri","sans-serif";color:#595959'>&nbsp;</span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face=Calibri><span style='font-size:11.0pt;
font-family:"Calibri","sans-serif";color:#595959'>&nbsp;</span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>&nbsp;</span></font><o:p></o:p></p>

<div style='border:none;border-top:solid windowtext 1.0pt;padding:3.0pt 0in 0in 0in;
border-color:-moz-use-text-color -moz-use-text-color'>

<p><b><font size=2 face=Tahoma><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
font-weight:bold'>From:</span></font></b><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> <a
href="mailto:papervision3d-bounces@osflash.org" target="_blank">papervision3d-bounces@osflash.org</a>
[mailto:<a href="mailto:papervision3d-bounces@osflash.org" target="_blank">papervision3d-bounces@osflash.org</a>]
<b><span style='font-weight:bold'>On Behalf Of </span></b>Javier Espaņa | <a
href="http://javierespana.com" target="_blank">javierespana.com</a><br>
<b><span style='font-weight:bold'>Sent:</span></b> Tuesday, June 30, 2009 4:13
PM<br>
<b><span style='font-weight:bold'>To:</span></b> <a
href="mailto:papervision3d@osflash.org" target="_blank">papervision3d@osflash.org</a><br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [Papervision3D]
Simple Cube w/Texture</span></font><o:p></o:p></p>

</div>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>&nbsp;<o:p></o:p></span></font></p>

<p style='margin-bottom:12.0pt'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>Try this out instead, it seems that you are using a
cube and aren't loading the material list correctly.<br>
<br>
<i><span style='font-style:italic'>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; wireframeMaterial = new WireframeMaterial(0x333333);<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; wireframeMaterial.doubleSided
= true;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ///<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; //BitmapFileMaterial,
doubleSided draws the color on both sides of the geometry normals<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; bitmapFileMaterial =
new BitmapFileMaterial(&quot;AJ.png&quot;);<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
bitmapFileMaterial.doubleSided = true;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ///<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; var
materialsList:MaterialsList = new MaterialsList(); <br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
materialsList.addMaterial(wireframeMaterial, &quot;front&quot;); <br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
materialsList.addMaterial(wireframeMaterial, &quot;back&quot;); <br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
materialsList.addMaterial(bitmapFileMaterial, &quot;left&quot;); <br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
materialsList.addMaterial(wireframeMaterial, &quot;right&quot;); <br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
materialsList.addMaterial(wireframeMaterial, &quot;top&quot;); <br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
materialsList.addMaterial(wireframeMaterial, &quot;bottom&quot;); <br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ///<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; //cube = new
Cube(MaterialList applied to object, width, depth, height, wSegments,
dSegments, hSegments);<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; cube = new
Cube(materialsList, 200, 200, 200, 3, 3, 3);<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; scene.addChild(cube);</span></i><br>
<br>
That's a quick example that loads a bitmap on a side of the cube, and renders a
wireframe material on the other sides...<br>
<br>
Hope it helps =)<br>
<br>
Javier<o:p></o:p></span></font></p>

<div>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>On Tue,
Jun 30, 2009 at 4:48 PM, Merrill, Jason &lt;<a
href="mailto:jason.merrill@bankofamerica.com" target="_blank">jason.merrill@bankofamerica.com</a>&gt;
wrote:<o:p></o:p></span></font></p>

<div>

<div>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>Hey all,</span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>&nbsp;</span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>I&#8217;m new
developing with Papervision3d (though not new to Flash/Flex/Actionscript) and
have a really basic problem. I was able to display my first code-generated
plane and rotate it, and also load a model collada file built with
Swift3d.&nbsp; Now I am trying to create a box with texture, but having
problems.&nbsp; Here is the relevant part of my code:</span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>&nbsp;</span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>(CubeTexture is a
bitmap in Flash CS3 with linkage exported as class: CubeTexture and base class:
flash.display.BitmapData)</span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>&nbsp;</span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>var bitmap:Bitmap
= new Bitmap(new CubeTexture(0,0));</span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>material = new
MaterialObject3D();</span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>material.bitmap =
bitmap.bitmapData;</span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>&nbsp;</span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>materials = new
MaterialsList();</span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>materials.addMaterial(material);</span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>&nbsp;</span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>primitive = new
Cube(materials, 200, 200, 200);</span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>scene.addChild(primitive);</span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>&nbsp;</span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>I get this error:</span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>&nbsp;</span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>&#8220;WARNING:
Required material not found in given materials list. Supported materials are:
front, back, right, left, top, bottom &amp; all.&#8221;</span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>&nbsp;</span></font><o:p></o:p></p>

<p><font size=2 color="#595959" face="Trebuchet MS"><span style='font-size:
10.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>Any ideas what
I&#8217;m doing wrong?&nbsp; Thanks.</span></font><o:p></o:p></p>

<div>

<p><b><font size=1 color="#76923c" face="Trebuchet MS"><span style='font-size:
9.0pt;font-family:"Trebuchet MS","sans-serif";color:#76923C;font-weight:bold'>&nbsp;</span></font></b><o:p></o:p></p>

<p><b><font size=1 color="#76923c" face="Trebuchet MS"><span style='font-size:
9.0pt;font-family:"Trebuchet MS","sans-serif";color:#76923C;font-weight:bold'>&nbsp;</span></font></b><o:p></o:p></p>

<p style='margin-bottom:12.0pt'><b><font size=1 color="#76923c"
face="Trebuchet MS"><span style='font-size:9.0pt;font-family:"Trebuchet MS","sans-serif";
color:#76923C;font-weight:bold'>Jason Merrill</span></font></b><font size=1
color="#365f91" face="Trebuchet MS"><span style='font-size:8.0pt;font-family:
"Trebuchet MS","sans-serif";color:#365F91'> </span></font><o:p></o:p></p>

<p><b><font size=1 color="#0052c2" face=Arial><span style='font-size:8.0pt;
font-family:"Arial","sans-serif";color:#0052C2;font-weight:bold'>Bank of&nbsp;
America</span></font></b><font size=1 color="#365f91" face="Trebuchet MS"><span
style='font-size:8.0pt;font-family:"Trebuchet MS","sans-serif";color:#365F91'> </span></font><font
size=1 color="#d1001d" face=Tahoma><span style='font-size:8.0pt;font-family:
"Tahoma","sans-serif";color:#D1001D'>Error! Filename not specified.</span></font><font
size=1 color="#595959" face="Trebuchet MS"><span style='font-size:8.0pt;
font-family:"Trebuchet MS","sans-serif";color:#595959'>&nbsp;&nbsp;Global
Learning </span></font><o:p></o:p></p>

<p><font size=1 color="#595959" face="Trebuchet MS"><span style='font-size:
8.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'>Shared Services
Solutions Development </span></font><o:p></o:p></p>

<p><font size=1 color="#595959" face="Trebuchet MS"><span style='font-size:
8.0pt;font-family:"Trebuchet MS","sans-serif";color:#595959'><br>
</span></font><i><font size=1 color="#7f7f7f" face="Trebuchet MS"><span
style='font-size:9.0pt;font-family:"Trebuchet MS","sans-serif";color:#7F7F7F;
font-style:italic'>Monthly meetings on the Adobe Flash platform for rich media
experiences - join the </span></font></i><i><font size=1 color="#548dd4"
face="Trebuchet MS"><span style='font-size:9.0pt;font-family:"Trebuchet MS","sans-serif";
color:#548DD4;font-style:italic'><a
href="http://sharepoint.bankofamerica.com/sites/tlc/flash/default.aspx"
target="_blank"><font color="#548dd4"><span style='color:#548DD4'>Bank of
America Flash Platform Community</span></font></a></span></font></i><i><font
size=1 color="#7f7f7f" face="Trebuchet MS"><span style='font-size:9.0pt;
font-family:"Trebuchet MS","sans-serif";color:#7F7F7F;font-style:italic'> </span></font></i><o:p></o:p></p>

<p><font size=2 color="#595959" face=Calibri><span style='font-size:11.0pt;
font-family:"Calibri","sans-serif";color:#595959'>&nbsp;</span></font><o:p></o:p></p>

</div>

</div>

</div>

<p style='margin-bottom:12.0pt'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'><br>
_______________________________________________<br>
Papervision3D mailing list<br>
<a href="mailto:Papervision3D@osflash.org" target="_blank">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><o:p></o:p></span></font></p>

</div>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>&nbsp;<o:p></o:p></span></font></p>

</div>

</div>

</blockquote>

<blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'>

<div>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>_______________________________________________<br>
Papervision3D mailing list<br>
<a href="mailto:Papervision3D@osflash.org" target="_blank">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><o:p></o:p></span></font></p>

</div>

</blockquote>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>&nbsp;<o:p></o:p></span></font></p>

</div>

</div>

</div>

</div>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'><br>
_______________________________________________<br>
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><o:p></o:p></span></font></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

</body>

</html>