Yeah, you need a function to refresh the content all the time, something like this:<br><i><br>private function loop(e:Event):void{<br>      ///<br>      renderer.renderScene(scene, cam, vp);<br>}</i><br><br><div class="gmail_quote">

On Wed, Jul 1, 2009 at 3:03 PM, Merrill, Jason <span dir="ltr">&lt;<a href="mailto:jason.merrill@bankofamerica.com">jason.merrill@bankofamerica.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;">











<div bgcolor="white" link="blue" vlink="purple" lang="EN-US">

<div><div class="im">

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);">&gt;&gt;</span></font>
i assume it&#39;s there, but just to make sure, there is an onenterframe in your
code to render the scene?</p>

<p><font size="3" face="Times New Roman"><span style="font-size: 12pt;"> </span></font></p>

</div><p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);">No
– you have to animate the scene /  refresh frames in order for it to render?  I’m
new to Papervision, so I’m unfamiliar with these kinds of requirements.  I know
how to create onEnterFrame events of course, but what needs to animate/refresh
and how in the Papervision library?</span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);"> </span></font></p>

<div>

<p style=""><b><font size="1" color="#76923c" face="Trebuchet MS"><span style="font-size: 9pt; color: rgb(118, 146, 60); font-weight: bold;"> </span></font></b></p>

<p style=""><b><font size="1" color="#76923c" face="Trebuchet MS"><span style="font-size: 9pt; color: rgb(118, 146, 60); font-weight: bold;">Jason Merrill</span></font></b><font size="1" color="#365f91" face="Trebuchet MS"><span style="font-size: 8pt; color: rgb(54, 95, 145);"> <br>


<br>
</span></font></p>

<p style=""><b><font size="1" color="#0052c2" face="Arial"><span style="font-size: 8pt; color: rgb(0, 82, 194); font-weight: bold;">Bank of  America</span></font></b><font size="1" color="#365f91" face="Trebuchet MS"><span style="font-size: 8pt; color: rgb(54, 95, 145);"> </span></font><b><font size="1" color="#d1001d" face="Tahoma"><span style="font-size: 8pt; color: rgb(209, 0, 29); font-weight: bold;"><img alt="smallLogo" width="17" height="14"></span></font></b><font size="1" color="#595959" face="Trebuchet MS"><span style="font-size: 8pt; color: rgb(89, 89, 89);">  </span></font><font size="1" color="#595959" face="Trebuchet MS"><span style="font-size: 8pt; color: rgb(89, 89, 89);">Global Learning </span></font></p>

<div class="im">

<p style=""><font size="1" color="#595959" face="Trebuchet MS"><span style="font-size: 8pt; color: rgb(89, 89, 89);">Shared Services Solutions Development </span></font></p>

<p style=""><font size="1" color="#595959" face="Trebuchet MS"><span style="font-size: 8pt; color: rgb(89, 89, 89);"><br>
</span></font><i><font size="1" color="#7f7f7f" face="Trebuchet MS"><span style="font-size: 9pt; color: rgb(127, 127, 127); 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: 9pt; color: rgb(84, 141, 212); font-style: italic;"><a href="http://sharepoint.bankofamerica.com/sites/tlc/flash/default.aspx" target="_blank"><font color="#548dd4"><span style="color: rgb(84, 141, 212);">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: 9pt; color: rgb(127, 127, 127); font-style: italic;"> </span></font></i><font size="1" color="#595959" face="Trebuchet MS"><span style="font-size: 8pt; color: rgb(89, 89, 89);"></span></font></p>



<p><font size="2" color="#595959" face="Calibri"><span style="font-size: 11pt; color: rgb(89, 89, 89);"> </span></font></p>

<p><font size="2" color="#595959" face="Calibri"><span style="font-size: 11pt; color: rgb(89, 89, 89);"> </span></font></p>

<p><font size="2" color="#595959" face="Calibri"><span style="font-size: 11pt; color: rgb(89, 89, 89);"> </span></font></p>

</div></div>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);"> </span></font></p>

<div>

<div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;">

<p><b><font size="2" face="Tahoma"><span style="font-size: 10pt; font-weight: bold;">From:</span></font></b><font size="2" face="Tahoma"><span style="font-size: 10pt;">
<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>Eric McConkie<br>


<b><span style="font-weight: bold;">Sent:</span></b> Wednesday, July 01, 2009
12:23 AM<div><div></div><div class="h5"><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</div></div></span></font></p>

</div>

</div><div><div></div><div class="h5">

<p><font size="3" face="Times New Roman"><span style="font-size: 12pt;"> </span></font></p>

<div>

<p><font size="3" face="Times New Roman"><span style="font-size: 12pt;">i assume it&#39;s there, but just to make sure, there is an onenterframe in
your code to render the scene?<br>
<br>
[Sent from mobile...]</span></font></p>

</div>

<div>

<p style="margin-bottom: 12pt;"><font size="3" face="Times New Roman"><span style="font-size: 12pt;"><br>
On Jun 30, 2009, at 1:35 PM, &quot;Merrill, Jason&quot; &lt;<a href="mailto:jason.merrill@bankofamerica.com" target="_blank">jason.merrill@bankofamerica.com</a>&gt;
wrote:</span></font></p>

</div>

<blockquote style="margin-top: 5pt; margin-bottom: 5pt;">

<div>

<div>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);">Thanks Javier – that
explains a lot more.  However, I tried your code out, and while I didn’t
get any errors, I didn’t see any cube either (whereas I did when I made an
added a simple plane in the same file).  The .jpg (my file is city.jpg,
and I changed that in your code) is in the same folder location as the host
HTML and .swf.  I get this message:</span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);"> </span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);">“INFO:
BitmapFileMaterial: Loading bitmap from city.jpg” </span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);"> </span></font></p>

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

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);"> </span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);">package </span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);">{</span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);">           
import flash.display.Bitmap;</span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);">           
import flash.display.BitmapData;</span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);">           
import flash.display.Sprite; </span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);">           
import flash.events.Event;</span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);">           
import flash.events.MouseEvent;</span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);">           
import org.papervision3d.core.proto.MaterialObject3D;</span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);">           
import org.papervision3d.materials.BitmapFileMaterial;</span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);">           
import org.papervision3d.materials.BitmapMaterial;</span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);">           
import org.papervision3d.materials.utils.MaterialsList;</span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);">           
import org.papervision3d.materials.WireframeMaterial;</span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);">           
import org.papervision3d.objects.primitives.Cube;</span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);">           
import org.papervision3d.view.Viewport3D; </span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);">           
import org.papervision3d.scenes.Scene3D; </span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);">           
import org.papervision3d.cameras.Camera3D; </span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);">           
import org.papervision3d.materials.ColorMaterial; </span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);">           
import org.papervision3d.render.BasicRenderEngine; </span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);"> </span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);">           
public class MyPV3DTest extends Sprite</span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);">           
{</span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);">                       
</span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);">                       
private var viewport: Viewport3D; </span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);">                       
private var scene: Scene3D; </span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);">                       
private var camera: Camera3D; </span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);">                       
private var material:MaterialObject3D;</span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);">                       
private var materials:MaterialsList;</span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);">                       
private var primitive:Cube</span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);">                       
private var renderer: BasicRenderEngine;</span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);">                       
</span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);">                       
public function MyPV3DTest ():void</span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);">                       
{</span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);">                                   
//viewport = new Viewport3D(w, h, scaleToStage, interactive); </span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);">                                   
viewport = new Viewport3D(550, 400, false, true); </span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);">                                   
addChild(viewport); </span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);"> </span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);">                                   
//instantiates a Scene3D instance </span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);">                                   
scene = new Scene3D(); </span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);"> </span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);">                                   
//instantiates a Camera3D instance </span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);">                                   
camera = new Camera3D(); </span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);"> </span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);">                                   
//renderer draws the scene to the stage </span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);">                                   
renderer = new BasicRenderEngine(); </span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);"> </span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);">                                   
var wireframeMaterial:WireframeMaterial = new WireframeMaterial(0x333333);</span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);">           
                       
wireframeMaterial.doubleSided = true;</span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);"> </span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);">           
                       
var bitmapFileMaterial:BitmapFileMaterial = new BitmapFileMaterial(&quot;city.jpg&quot;);</span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);">          
                        
bitmapFileMaterial.doubleSided = true;</span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);">           
</span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);">         
                         
 var materialsList:MaterialsList = new MaterialsList(); </span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);">          
                        
 materialsList.addMaterial(wireframeMaterial, &quot;front&quot;); </span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);">          
                        
 materialsList.addMaterial(wireframeMaterial, &quot;back&quot;); </span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);">          
                        
 materialsList.addMaterial(bitmapFileMaterial, &quot;left&quot;); </span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);">          
                        
 materialsList.addMaterial(wireframeMaterial, &quot;right&quot;); </span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);">          
                        
 materialsList.addMaterial(wireframeMaterial, &quot;top&quot;); </span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);">          
                        
 materialsList.addMaterial(wireframeMaterial, &quot;bottom&quot;); </span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);"> </span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);">          
                        
 var cube:Cube = new Cube(materialsList, 200, 200, 200, 3, 3, 3);</span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);">          
                       
 scene.addChild(cube);</span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);">                       
}</span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);">           
}</span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);">}</span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);"> </span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);"> </span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);"> </span></font></p>

<p style=""><b><font size="1" color="#76923c" face="Trebuchet MS"><span style="font-size: 9pt; color: rgb(118, 146, 60); font-weight: bold;"> </span></font></b></p>

<p style=""><b><font size="1" color="#76923c" face="Trebuchet MS"><span style="font-size: 9pt; color: rgb(118, 146, 60); font-weight: bold;">Jason Merrill</span></font></b><font size="1" color="#365f91" face="Trebuchet MS"><span style="font-size: 8pt; color: rgb(54, 95, 145);"> <br>


<br>
<br>
</span></font></p>

<p style=""><b><font size="1" color="#0052c2" face="Arial"><span style="font-size: 8pt; color: rgb(0, 82, 194); font-weight: bold;">Bank of  America</span></font></b><font size="1" color="#365f91" face="Trebuchet MS"><span style="font-size: 8pt; color: rgb(54, 95, 145);"> </span></font><b><font size="1" color="#d1001d" face="Tahoma"><span style="font-size: 8pt; color: rgb(209, 0, 29); font-weight: bold;">&lt;image001.jpg&gt;</span></font></b><font size="1" color="#595959" face="Trebuchet MS"><span style="font-size: 8pt; color: rgb(89, 89, 89);">  Global
Learning </span></font></p>

<p style=""><font size="1" color="#595959" face="Trebuchet MS"><span style="font-size: 8pt; color: rgb(89, 89, 89);">Shared
Services Solutions Development </span></font></p>

<p style=""><font size="1" color="#595959" face="Trebuchet MS"><span style="font-size: 8pt; color: rgb(89, 89, 89);"><br>
</span></font><i><font size="1" color="#7f7f7f" face="Trebuchet MS"><span style="font-size: 9pt; color: rgb(127, 127, 127); 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: 9pt; color: rgb(84, 141, 212); font-style: italic;"><a href="http://sharepoint.bankofamerica.com/sites/tlc/flash/default.aspx" target="_blank"><font color="#548dd4"><span style="color: rgb(84, 141, 212);">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: 9pt; color: rgb(127, 127, 127); font-style: italic;"> </span></font></i></p>

<p><font size="2" color="#595959" face="Calibri"><span style="font-size: 11pt; color: rgb(89, 89, 89);"> </span></font></p>

<p><font size="2" color="#595959" face="Calibri"><span style="font-size: 11pt; color: rgb(89, 89, 89);"> </span></font></p>

<p><font size="2" color="#595959" face="Calibri"><span style="font-size: 11pt; color: rgb(89, 89, 89);"> </span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);"> </span></font></p>

<div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;">

<p><b><font size="2" face="Tahoma"><span style="font-size: 10pt; font-weight: bold;">From:</span></font></b><font size="2" face="Tahoma"><span style="font-size: 10pt;"> <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></p>

</div>

<p><font size="3" face="Times New Roman"><span style="font-size: 12pt;"> </span></font></p>

<p style="margin-bottom: 12pt;"><font size="3" face="Times New Roman"><span style="font-size: 12pt;">Try this out
instead, it seems that you are using a cube and aren&#39;t loading the material
list correctly.<br>
<br>
<i><span style="font-style: italic;">       
    wireframeMaterial = new WireframeMaterial(0x333333);<br>
           
wireframeMaterial.doubleSided = true;<br>
            ///<br>
            //BitmapFileMaterial,
doubleSided draws the color on both sides of the geometry normals<br>
            bitmapFileMaterial =
new BitmapFileMaterial(&quot;AJ.png&quot;);<br>
           
bitmapFileMaterial.doubleSided = true;<br>
            ///<br>
            var
materialsList:MaterialsList = new MaterialsList(); <br>
           
materialsList.addMaterial(wireframeMaterial, &quot;front&quot;); <br>
            materialsList.addMaterial(wireframeMaterial,
&quot;back&quot;); <br>
           
materialsList.addMaterial(bitmapFileMaterial, &quot;left&quot;); <br>
           
materialsList.addMaterial(wireframeMaterial, &quot;right&quot;); <br>
           
materialsList.addMaterial(wireframeMaterial, &quot;top&quot;); <br>
            materialsList.addMaterial(wireframeMaterial,
&quot;bottom&quot;); <br>
            ///<br>
            //cube = new
Cube(MaterialList applied to object, width, depth, height, wSegments,
dSegments, hSegments);<br>
            cube = new
Cube(materialsList, 200, 200, 200, 3, 3, 3);<br>
            scene.addChild(cube);</span></i><br>
<br>
That&#39;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</span></font></p>

<div>

<p><font size="3" face="Times New Roman"><span style="font-size: 12pt;">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:</span></font></p>

<div>

<div>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);">Hey all,</span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);"> </span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);">I’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.  Now I am trying to create a box with texture, but having
problems.  Here is the relevant part of my code:</span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);"> </span></font></p>

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

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);"> </span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);">var bitmap:Bitmap
= new Bitmap(new CubeTexture(0,0));</span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);">material = new
MaterialObject3D();</span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);">material.bitmap =
bitmap.bitmapData;</span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);"> </span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);">materials = new
MaterialsList();</span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);">materials.addMaterial(material);</span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);"> </span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);">primitive = new
Cube(materials, 200, 200, 200);</span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);">scene.addChild(primitive);</span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);"> </span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);">I get this error:</span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);"> </span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);">“WARNING:
Required material not found in given materials list. Supported materials are:
front, back, right, left, top, bottom &amp; all.”</span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);"> </span></font></p>

<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);">Any ideas what
I’m doing wrong?  Thanks.</span></font></p>

<div>

<p><b><font size="1" color="#76923c" face="Trebuchet MS"><span style="font-size: 9pt; color: rgb(118, 146, 60); font-weight: bold;"> </span></font></b></p>

<p><b><font size="1" color="#76923c" face="Trebuchet MS"><span style="font-size: 9pt; color: rgb(118, 146, 60); font-weight: bold;"> </span></font></b></p>

<p style="margin-bottom: 12pt;"><b><font size="1" color="#76923c" face="Trebuchet MS"><span style="font-size: 9pt; color: rgb(118, 146, 60); font-weight: bold;">Jason Merrill</span></font></b><font size="1" color="#365f91" face="Trebuchet MS"><span style="font-size: 8pt; color: rgb(54, 95, 145);"> </span></font></p>



<p><b><font size="1" color="#0052c2" face="Arial"><span style="font-size: 8pt; color: rgb(0, 82, 194); font-weight: bold;">Bank of 
America</span></font></b><font size="1" color="#365f91" face="Trebuchet MS"><span style="font-size: 8pt; color: rgb(54, 95, 145);"> </span></font><font size="1" color="#d1001d" face="Tahoma"><span style="font-size: 8pt; color: rgb(209, 0, 29);">Error! Filename not specified.</span></font><font size="1" color="#595959" face="Trebuchet MS"><span style="font-size: 8pt; color: rgb(89, 89, 89);">  Global
Learning </span></font></p>

<p><font size="1" color="#595959" face="Trebuchet MS"><span style="font-size: 8pt; color: rgb(89, 89, 89);">Shared Services
Solutions Development </span></font></p>

<p><font size="1" color="#595959" face="Trebuchet MS"><span style="font-size: 8pt; color: rgb(89, 89, 89);"><br>
</span></font><i><font size="1" color="#7f7f7f" face="Trebuchet MS"><span style="font-size: 9pt; color: rgb(127, 127, 127); 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: 9pt; color: rgb(84, 141, 212); font-style: italic;"><a href="http://sharepoint.bankofamerica.com/sites/tlc/flash/default.aspx" target="_blank"><font color="#548dd4"><span style="color: rgb(84, 141, 212);">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: 9pt; color: rgb(127, 127, 127); font-style: italic;"> </span></font></i></p>



<p><font size="2" color="#595959" face="Calibri"><span style="font-size: 11pt; color: rgb(89, 89, 89);"> </span></font></p>

</div>

</div>

</div>

<p style="margin-bottom: 12pt;"><font size="3" face="Times New Roman"><span style="font-size: 12pt;"><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></span></font></p>

</div>

<p><font size="3" face="Times New Roman"><span style="font-size: 12pt;"> </span></font></p>

</div>

</div>

</blockquote>

<blockquote style="margin-top: 5pt; margin-bottom: 5pt;">

<div>

<p><font size="3" face="Times New Roman"><span style="font-size: 12pt;">_______________________________________________<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></span></font></p>

</div>

</blockquote>

<p><font size="3" face="Times New Roman"><span style="font-size: 12pt;"> </span></font></p>

</div></div></div>

</div>


<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><br>
<br></blockquote></div><br>