Yes, this file is failing too, when being embedded: # 3ds Max Wavefront OBJ Exporter v0.97b - (c)2007 guruware # File Created: 24.03.2011 16:33:58
# # object Tree_t01_01 # v -5041.4390 412.6709 -5179.2549 v -4313.0371 447.0747 -5179.2549 v -4344.5708 1114.7034 -5201.0654 v -5072.9722 1080.2996 -5201.0654 v -4530.3560 446.4643 -4883.7456 v -4893.5854 408.6882 -5514.9272 v -4925.1187 1076.3169 -5536.7383 v -4561.8896 1114.0930 -4905.5566 v -4871.3809 430.3571 -4883.7456 v -4506.2085 426.9847 -5514.9277 v -4537.7417 1094.6135 -5536.7383 v -4902.9146 1097.9858 -4905.5566 # 12 vertices vn -0.0015 0.0326 0.9995 vn 0.8658 0.0246 -0.4997 vn 0.8643 0.0571 0.4997 vn 0.0015 -0.0326 -0.9995 vn -0.8658 -0.0246 0.4997 vn -0.8643 -0.0571 -0.4997 # 6 vertex normals vt 0.0000 0.0452 0.0000 vt 1.0000 0.0452 0.0000 vt 1.0000 0.9623 0.0000 vt 0.0000 0.9623 0.0000 # 4 texture coords g Tree_t01_01 s 1 f 1/1/1 2/2/1 3/3/1 4/4/1 f 5/1/2 6/2/2 7/3/2 8/4/2 f 9/1/3 10/2/3 11/3/3 12/4/3 f 1/1/4 4/4/4 3/3/4 2/2/4 f 5/1/5 8/4/5 7/3/5 6/2/5 f 9/1/6 12/4/6 11/3/6 10/2/6 # 6 polygons It's simple tree consisting of 6 polygons. On 24 мар, 18:47, Fabrice3D <[email protected]> wrote: > I'll look at this asap for 3ds > > > Most models in .obj format seems to be parsed properly when using > > embedded model, but some models still throws error. > > do you mean here some embedded obj are failing as well? > same error? > > fabrice > > On Mar 24, 2011, at 4:19 PM, MADCATX wrote: > > > > > Hello, I'm trying to load embedded model files, but without success. > > Following code produces error: > > > [Embed(source="model.3ds", mimeType="application/octet-stream")] > > private var modelObj:Class; > > > public function LoadModel() :void > > { > > ResourceManager.instance.parseData(new modelObj(), "model", true, > > Max3DSParser); > > } > > > Error Thrown: > > > Error #1034: Type Coercion failed: cannot convert > > ResourceLoadSession@1f82c151 to away3d.loading.IResource. > > Fault, ResourceManager.as:179 > > > The following code works alright: > > > public function LoadModel() :void > > { > > ResourceManager.instance.getResource("model.3ds", true); > > } > > > Most models in .obj format seems to be parsed properly when using > > embedded model, but some models still throws error. 3ds files always > > throw error when are being parsed from embedded file.
