ignore the try embed bit ;)   just try a different jpg could be the
compression, max compression from photoshop dont show up in any embeds in
SWFs for me.

D




On 15 April 2011 12:09, Darcey Lloyd <[email protected]> wrote:

> That code was from a molehill project which is work in progress not Away3D
> 3.6.
>
> EG of the work in progress:
>
> http://www.allforthecode.co.uk/development/away3d4alpha/AFTCRecon/index.html
>
> Check your JPG, try different ones and try embed instead of bitmapfile that
> could be the problem.
>
> D
>
>
>
>
>
> On 15 April 2011 10:56, Lucid <[email protected]> wrote:
>
>> 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