away3d / away3d-core-fp11

Away3D engine for Flash Player 11
http://www.away3d.com
Other
639 stars 275 forks source link

Regression, 3DS and OBJ files load #275

Closed RubenGarcia closed 12 years ago

RubenGarcia commented 12 years ago

Hello. I'm testing the demo at http://active.tutsplus.com/tutorials/actionscript/view-3ds-models-with-away3d-4-0-beta/ (I didn't change anything) and I can't load any models, not even the teapot.3ds coming with the demo. I copied the swf in http://tig01.udg.edu/~rgarcia/Flash/Away/3DViewer.swf The files I've tried are http://tig01.udg.edu/~rgarcia/Flash/Away/teapot.3DS (from the demo) and http://tig01.udg.edu/~rgarcia/Flash/Away/f360.3ds which used to work in away3d 3.6.0 (my old demo is at http://tig01.udg.edu/~rgarcia/Flash/Away/Away3dProject.swf ) http://tig01.udg.edu/~rgarcia/Flash/Away/ has all the files. The demo from active.tutsplus.com gives me the error "Loading Error", i.e, the event LoaderEvent.LOAD_ERROR is being thrown. I'm using away3d 4.0 Beta from the demo, which is the same as the one in www.away3d.com. The source code of the demo (I didn't modify it) can be seen in http://tig01.udg.edu/~rgarcia/Flash/Away/Main.as Can anybody confirm if they have the same problem, or if the 4.0.110915 Alpha is unaffected?

RubenGarcia commented 12 years ago

I also tried using URLRequest, and get the models directly from their url, with the same error.

richardolsson commented 12 years ago

Thanks for reporting. Just to be clear, with "regression" do you mean that this file used to work in the 3.x series of Away3D, or that you have previously gotten it to work in one of the pre-release versions of Away3D 4.0?

RubenGarcia commented 12 years ago

I mean loading 3DS files used to work in Away3D 3.6.0.

RubenGarcia commented 12 years ago

Also, it was my impression, by the comments on the webpage I downloaded the tutorial from, that it was working on June 5 2012 (?!)

richardolsson commented 12 years ago

Yes, loading 3DS files works in general. If it doesn't work with this particular demo then that may or may not be a bug with Away3D. We'll investigate it.

richardolsson commented 12 years ago

I have tried both the teapot from the tutorial and the f360.3ds file and I can successfully load both of them. This does not seem to be a bug with the 3ds parser, but I'm guessing you're making some sort of mistake when you're loading them. Please make sure you're using the latest version, loading from the right URL and that the texture dependencies are in the right place (or that you turn dependency loading off using AssetLoaderContext.) If it still doesn't work, ask for help on the forums at http://away3d.com/forum