Try the doubleSide option set to true...<br><br><div class="gmail_quote">On Thu, Jul 2, 2009 at 11:31 AM, Merrill, Jason <span dir="ltr"><<a href="mailto:jason.merrill@bankofamerica.com">jason.merrill@bankofamerica.com</a>></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 link="blue" vlink="purple" lang="EN-US">
<div>
<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);">Nermind,
I got it – it was mapped to a side of the cube I couldn’t see until
I rotated it. Got it now. </span></font><font size="2" color="#595959" face="Wingdings"><span style="font-size: 10pt; font-family: Wingdings; color: rgb(89, 89, 89);">J</span></font><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);"> </span></font></p>
<div class="im">
<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>
<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>
<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);"> </span></font></p>
</div><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>Merrill, Jason<br>
<b><span style="font-weight: bold;">Sent:</span></b> Thursday, July 02, 2009
10:01 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>
<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);">Hmmm…
nobody? This is a pretty simple problem, and I’m not sure where to
start troubleshooting next… 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’m only getting the
wireframe and not the texture. Code below. Thanks!</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="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 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" border="0" height="14"></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><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>
<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>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> <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>
</div>
<p><font size="3" face="Times New Roman"><span style="font-size: 12pt;"> </span></font></p>
<p><font size="2" color="#595959" face="Trebuchet MS"><span style="font-size: 10pt; color: rgb(89, 89, 89);">OK
cool – so now I see the cube mesh, and I can rotate it easily, but the
texture is not mapped to it. 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? The .jpg is in the same directory. Thanks!</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="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 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" border="0" height="14"></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><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>
<div>
<div>
<div>
<div>
<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);"> </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("city.jpg");</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, "front"); </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, "back"); </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, "left"); </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, "right"); </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, "top"); </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, "bottom"); </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><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><b><font size="1" color="#d1001d" face="Tahoma"><span style="font-size: 8pt; color: rgb(209, 0, 29); font-weight: bold;"><image001.jpg></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><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>
<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: -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'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("AJ.png");<br>
bitmapFileMaterial.doubleSided = true;<br>
///<br>
var
materialsList:MaterialsList = new MaterialsList(); <br>
materialsList.addMaterial(wireframeMaterial, "front"); <br>
materialsList.addMaterial(wireframeMaterial, "back"); <br>
materialsList.addMaterial(bitmapFileMaterial, "left"); <br>
materialsList.addMaterial(wireframeMaterial, "right"); <br>
materialsList.addMaterial(wireframeMaterial, "top"); <br>
materialsList.addMaterial(wireframeMaterial, "bottom"); <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'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 <<a href="mailto:jason.merrill@bankofamerica.com" target="_blank">jason.merrill@bankofamerica.com</a>>
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 & 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>
<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></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>