LOADING 3DS BUG IN AWAY3D FP11

Software: Away3D 4.x

Jack, Newbie
Posted: 10 October 2011 02:09 AM   Total Posts: 3

I think it is a bug[Maybe]. I exported a 3ds file contained a model without any texture(a teapot)  from 3ds max. When I load it with loader3D at runtime, it cant be loaded into scene. its property “numChildren” is always zero. I think it should be not like this. so I modify the function named “buildMaterials” in Max3DSParser class as below:
——————————————————————————————-
var assetLoaderContext:AssetLoaderContext = new AssetLoaderContext(false);
  _loader.loadData(data, new Max3DSParser(), assetLoaderContext);
 
——————————————————————————————-
private function buildMaterials():void
  {
  var md:MaterialDefinition;
  var m:Mesh;
  var matLength:uint = _materialList.length;
  var i:uint;
  var j:uint;
  var matref:MaterialRef;
  var bmMaterial:BitmapMaterial;
  for(i = 0;i> 0){
    for(j = 0;j

 

   

empend, Member
Posted: 10 October 2011 05:59 AM   Total Posts: 77   [ # 1 ]

Too bad that didn’t fix all of the parsers bugs :/

   

bart_the_13th, Newbie
Posted: 10 October 2011 07:43 AM   Total Posts: 14   [ # 2 ]

I found that reducing the frameLimit in the parseByteAsync (in ParserBase.as) can solve the parser problem, try to reducing it from 30 to something below 5.

   

texnl, Newbie
Posted: 10 October 2011 03:40 PM   Total Posts: 6   [ # 3 ]

Worked for me thx.
Mistake in the code:

matref _meshList

to

matref _meshList[i]
   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X