BitmapMaterial not working

Software: Away3D 4.x

Andy, Newbie
Posted: 09 July 2011 07:24 PM   Total Posts: 1

Hi

I have just started using version 4.0 (Broomstick) for Molehill.

I am adding a cube to my scene with a ColorMaterial

var cube : Cube = new Cube(new ColorMaterial(0xFF0000));
_view.scene.addChild(cube);

This works fine, I see a red cube and in my Stats say Poly 12 as expected.

If I try and use a BitmapMaterial the swf seems to freeze and not display anything.  The AwayStats box is there but doesnt display any data.

I have tried this with several different bitmapDatas and can not get it to work.

Im using FDT and have set the project up as described in http://www.disturbmedia.com/wiki/How_to_get_started_with_the_Molehill_API_and_Away3D_40.html#Setting_up_the_.28FDT.29_IDE

Any help would be greatly appreciated, thanks!

   

Avatar
theMightyAtom, Sr. Member
Posted: 10 July 2011 07:20 AM   Total Posts: 669   [ # 1 ]

Make sure your bitmap is a mipmap, i.e 256x256, 512 x 512, etc.

   

Richard Olsson, Administrator
Posted: 10 July 2011 11:54 AM   Total Posts: 1192   [ # 2 ]

Are you not getting any errors? If your SWF “freezes” then it sounds like an error is being thrown, and it could for example be related to the dimensions of the bitmap data (has to be power of two and square) or to your model missing UV coordinates.

   

Andy, Newbie
Posted: 11 July 2011 07:25 PM   Total Posts: 1   [ # 3 ]

Thanks, that worked.  Cheers.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X