hi..
i finally was able to create simples primitives and render them on stage.
but when i try to add a custom jpg texture it fails..
my code is:
[Embed("assets/texturaCaja2.jpg")]
private static const myPic : Class;
public function away3dBasico_v001()
{
addChild(view);
var sphere:SphereGeometry = new SphereGeometry(100);
var texture_sphere:BitmapMaterial = new (new myPic().bitmapData);
var mesh:Mesh = new Mesh(sphere,texture_sphere);
view.scene.addChild(mesh);
it tells me:
3604:use texture composition instead of inheritance..
besides it doesnt accept me the rotation instructions
sphere.rotationX=6;
//nither
phere.roll(5) ;
thx in advance for all ur help.