Embedded bitmap not visible

Software: Away3D 3.x

mstaebler, Newbie
Posted: 29 December 2011 02:18 PM   Total Posts: 4

Hi,
some of the embedded bitmap textures of my 3d objects (away3d 3.6 classes exported from Prefab) are visible only sometimes, others don’t show at all when compiled to an swf.

My project: http://www.perfectblue.de/away3d/
With the select boxes to the left you can configure the different sizes
and roof forms.

In Prefab the texture shows right and there is no error in Flash CS4 during the compilation process. What am I doing wrong? Is it a timeout problem because the scene is to complex? All the different parts are created right at the beginning and hidden, if not needed.

I tried to apply a new bitmap material to the mesh of one part:

public function loadNewMaterial(matURL:String):void {
  
  loader 
= new Loader();
  var 
urlRequest:URLRequest = new URLRequest(matURL);
  
loader.load(urlRequest);
  
loader.contentLoaderInfo.addEventListener(Event.COMPLETEapplyNewMaterial);
 
}
   
 
private function applyNewMaterial(e:Event):void {
  loader
.contentLoaderInfo.removeEventListener(Event.COMPLETEapplyNewMaterial);

  for(var 
i:int;i<meshes.length;++i){
   
if(meshes[i].name == "pfosten"){
    meshes[i]
.material = new BitmapMaterial((e.target.content as Bitmap).bitmapData);
   
}
  }
 } 


Firebug shows that it is loaded. But it doesn’t show, too.

Thanks for your help in advance.

Martin

   

mstaebler, Newbie
Posted: 30 December 2011 04:59 PM   Total Posts: 4   [ # 1 ]

Solution:
It has to be a timeout problem.
I’m developping my project in Flash CS4 on an older quadcore AMD running with Windows XP 64 Bit. After trying several hours to solve the problem with changes in the code, I took the whole project to my new notebook with Windows 7 and Flash CS 5.5 with 64 bit support.

And voilĂ  - all the textures are visible.
Why doesn’t Flash wait for all the bitmaps to be included in the process of compilation?

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X