Hey Pawel,
Just looked at your obj

1: I've imported them into prefab (are displayed properly) and export.
well the file you posted doesn't load either in Prefab for me, it loads but do 
not display the texture

2: Why does it fail
your file has no mtl tag, yet it says further dowm use mtl settings. Prefab is 
gentle and holds more costly checks, away expect its correct.
makes me think here, that Prefab should have an extra warning to warn you that 
the obj file holds tags that should not be into it if no mtl file is set.
Tho as it seems to be an offical exporter, I'll try to catch this into the 
parser asap.

3: your loading code is also probably not optimal:
the demo LoaderObjTest name is a bit misleading, it should be called 
EmbbedObjTest. But It was made before loaders were even able to load own 
resources.
take a look at "Loader3DSTest.as" instead and simply replace the url with your 
obj url.

Fabrice


On Mar 30, 2011, at 7:56 AM, Paweł Stanisławczuk wrote:

> Hi
> 
> I'm trying to load my obj files into new Away3d 4.0 but with no luck.
> I've imported them into prefab (are displayed properly) and export.
> 
> Even then they fail to load.
> 
> I'm using LoaderOBJTest as base for testing.
> It stops at: ResourceManager line 194 with: "Unespected parser error";
> 
> I also tried:
> _container =
> ObjectContainer3D(ResourceManager.instance.getResource("head/
> head.obj"));
> 
> But even the LoaderOBJTest wont compile leaving me with "parsing
> error".
> 
> In Away3D 3.x my obj worked OK.
> 
> My files:
> http://www.todesign.pl/obj10.zip
> 
> P.

Reply via email to