Hallo folks, for some reason I can’t change the bitmap material on a plane I’ve created in Away3D 3.
It was created like so:
_note = new Plane({width:1014/4, height:480/4, segmentsW:28, segmentsH:12, material:_frontMaterial, back:_backMaterial, bothsides:true});
_note.x = 0;
_note.y = 0;
_note.z = 0;
added like so:
_noteContainer = new ObjectContainer3D();
_noteContainer.addChild(_note);
_view3D.scene.addChild(_noteContainer);
and now I want to change the material to one I’ve just loaded.I’ve tried a bunch of ways: change the material, the bitmapData, no result.
_note.material = new BitmapMaterial(Cast.bitmap(front));
_note.back = new BitmapMaterial(Cast.bitmap(back));
_noteBmpFront.bitmapData = front.bitmapData.clone();
_noteBmpBack.bitmapData = back.bitmapData.clone();
_frontMaterial.bitmap = Cast.bitmap(front);
_backMaterial.bitmap = Cast.bitmap(back);
and it won’t respond. I’ve also tried changing translation values on said note and had no result. It’s almost like the note’s been cloned and I have a reference to some other plane that isn’t visible.
Any ideas?
Thanks guys!