Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with .obj import #4

Open
tadaskrisciunas opened this issue Jul 20, 2011 · 0 comments
Open

Problems with .obj import #4

tadaskrisciunas opened this issue Jul 20, 2011 · 0 comments

Comments

@tadaskrisciunas
Copy link

I have tried all the methods I have found to load an .obj file, and I've tried to load various different .obj files, one of which was working in an example on the net (http://www.charglerode.com/blog/?p=164). However, none of them seem to be working for me. When the parser gets to the .mtl it seems that it freezes. The message "Loading material file... X of 0 bytes loaded" stays frozen on the screen. For example: http://tadas.asmeninis.com/teravil/flash/example/. A snippet of the code of the example:

try {
    var loader3D:Loader3D = Obj.load( "models/be_sienos.obj", { bothsides:true } );
    loader3D.addOnSuccess( onModelLoadSuccess );
    view.scene.addChild( loader3D );
} catch( err:Error ) {
    errorHandle( err );
}

...

protected function onModelLoadSuccess( event:Loader3DEvent ):void {
    mesh = event.loader.handle;
    view.scene.addChild( mesh );
}

What's wrong?

EDIT: Sorry for closing and reopening the issue. I am new to GitHub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant