When I grabbed JigLib for Broomstick I ran into similar trouble.  Looking
back at the file, it looks like I got it to work by swapping ResourceManager
for Loader3D.

in Away3DCarDrive.as, starting around line 92, I made this edit:

            //=== ResourceManager is deprecated in Broomstick

//ResourceManager.instance.addEventListener(ResourceEvent.RESOURCE_COMPLETE,
onResourceRetrieved);

//container=ObjectContainer3D(ResourceManager.instance.getResource("res/car.obj"));
            //view.scene.addChild(container);

            container = new Loader3D();
            container.addEventListener(LoaderEvent.RESOURCE_COMPLETE,
onResourceRetrieved);
            container.load(new URLRequest('res/car.obj'), new OBJParser());
            //Add to the scene only after successful loading.
            //view.scene.addChild(container);

            //=== End changes

I updated the corresponding callbacks to handle LoaderEvents instead of
ResourceEvents.  I think that's all I had to do.

HTH,
Ross

On Tue, May 17, 2011 at 8:49 AM, CoreGr <[email protected]> wrote:

> Hi, I'm trying to run the file "ExJigLibAway3DCarDrive.as" located in
> "branches->jiglib" but I'm getting lots of errors. Did someone manage
> to execute it?
>
> By the way I was using the "ResourceManager" class to load a 3d model
> and now I've updated my version of away3D so I'm using the "Loader3D"
> class (like in the "LoaderOBJTest.as" example) instead but I'm having
> errors with the parser (ObjParser MTL LOAD ERROR: unable to load .mtl
> file) that I didn't have before. Someone having this problem too?




-- 
Ross Smith
[email protected]

Reply via email to