« Return to Thread: ESPYS.tv done with PV3D

Simple Cube w/Texture

by jmerrill_2001 :: Rate this Message:

Reply to Author | View in Thread

Some parts of this message have been removed. Learn more about Nabble's security policy.

Hey all,

 

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:

 

(CubeTexture is a bitmap in Flash CS3 with linkage exported as class: CubeTexture and base class: flash.display.BitmapData)

 

var bitmap:Bitmap = new Bitmap(new CubeTexture(0,0));

material = new MaterialObject3D();

material.bitmap = bitmap.bitmapData;

 

materials = new MaterialsList();

materials.addMaterial(material);

 

primitive = new Cube(materials, 200, 200, 200);

scene.addChild(primitive);

 

I get this error:

 

“WARNING: Required material not found in given materials list. Supported materials are: front, back, right, left, top, bottom & all.”

 

Any ideas what I’m doing wrong?  Thanks.

 

 

Jason Merrill

Bank of  America smallLogo  Global Learning

Shared Services Solutions Development


Monthly meetings on the Adobe Flash platform for rich media experiences - join the Bank of America Flash Platform Community

 



_______________________________________________
Papervision3D mailing list
Papervision3D@...
http://osflash.org/mailman/listinfo/papervision3d_osflash.org

 « Return to Thread: ESPYS.tv done with PV3D