Importing files

Started by sickfar, April 20, 2012, 02:14:24 PM

Previous topic - Next topic

sickfar

Hi! I've created some models in Blender and 3DS Max end exported them to .3ds and .obj formats. But I could not load any of this files : ( what's the matter? I'm beguuner in this, I can't import even simle cube in obj! : ( Please help!

EgonOlsen

That's a very vague question, because you aren't saying what happens if you try to load that models. I bet it's a problem with the path to the files. Just look at the examples and copy what they do. If that doesn't help, post the actual log output.

sickfar

I haven't the log now, but I remember : ) It's simple - "Failed to load model. Wrong 3ds format" or something like this without any additional infomation. I'm trying to load model from my D:/ drive: "Loader.load3DS("D:/cube.3ds", 1);" With OBJ - the same : (

EgonOlsen

It says "not a valid 3ds file"...but that's only the consequence of the former message, which should read "Couldn't read file..."...which is nothing else then a simple file not found problem. Make sure that the path to your files is correct and they'll load fine. Keep in mind that the backslash (in case you are using that) has to be escaped by \\ when used in Strings. Or simply use the / as you do in your post.