What are the dimensions of the jpg you're trying to use?

If it's not a power of two, I don't think it'll work. Also, I think
2048 is the largest size that will work.

On Apr 15, 9:11 am, Choons <[email protected]> wrote:
> is the path right? maybe try absolute vs relative path
>
> On Apr 15, 7:18 am, Lucid <[email protected]> wrote:
>
>
>
>
>
>
>
> > Thanks for the tips Darcey. I've tried various jpg files - at various
> > sizes, compression etc. No change. Something is definitely not right
> > about all this. When 'Enable Hardware Acceleration' is turned off (in
> > the Incubator build of Flash Player), the screen is just all white.
> > When it is turned on, however, I just get this jumbled mess. (meaning
> > it shows bits and pieces of old images of my desktop jumbled together
> > - like a collage of pieces that were once on the GPU) Perhaps it's my
> > graphics card? (MacBook Pro with an NVIDIA GeForce 9400M and 2GB or
> > Ram) Either way, this is such a shame. I believe Away3D 4.0 has a long
> > way to go if getting a texture on a sphere yields this kind of
> > problem. Not to mention I'm on a pretty standard (fast) laptop. I
> > shouldn't have to spend this much time trying to get such a
> > rudimentary task accomplished. Flash Builder 4.5 has been properly
> > configured for Molehill (SDK, Broomstick, etc).
>
> > On Apr 15, 1:10 pm, Darcey Lloyd <[email protected]> wrote:
>
> > > 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/ind...
>
> > > > 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