hi, i’m just getting started in away, and i am trying to make a cube and it won’t show up. here is my related code.
private function createMap():void {
mapMaterial = new ColorMaterial(0x888888);
mapMaterial.lightPicker = lightPicker;
var cgeom:CubeGeometry = new CubeGeometry();
map = new Mesh(cgeom, mapMaterial);
scene.addChild(map);
map.position = camera.position
map.z += 100
camera.lookAt(map.position);
}
mapMaterial, lightPicker, map, scene, and camera are all class variables. it seems to be a pretty straightforward thing i’m trying to do here, but the screen just comes out black. no errors or anything