Thanks Darcey, However it did not help. It just shows white. For the
record, however, if I use a color material (red) I do, in fact, see
red. So, this shows that the Molehill APIs (Away3D) are there.. Please
remember, I'm trying to do this in Away 4.0 (Molehill -GPU) not Away3D
3.6.0

package {
        import away3d.containers.View3D;
        import away3d.materials.BitmapFileMaterial;
        import away3d.materials.BitmapMaterial;
        import away3d.materials.ColorMaterial;
        import away3d.primitives.Sphere;

        import flash.display.Sprite;
        import flash.events.Event;
        import flash.geom.Vector3D;

        public class molehill extends Sprite {

                private var view:View3D;
                private var sphere:Sphere;
                private var material:BitmapMaterial;

                [Embed(source='image.jpg')] private var assetSphere:Class;

                public function molehill() {
                        view = new View3D(); addChild(view)
                        view.camera.position = new Vector3D(0,0,0)
                        material = new BitmapMaterial( new 
assetSphere().bitmapData );
                        material.bothSides = true;
                        sphere = new Sphere(material,2000,30,30);
                        view.scene.addChild(sphere)
                        addEventListener(Event.ENTER_FRAME, frame)      }

                private function frame(e:Event):void{view.render()}
        }
}

Reply via email to