Author Topic: Importing files  (Read 1953 times)

Offline sickfar

  • byte
  • *
  • Posts: 2
    • View Profile
Importing files
« on: April 20, 2012, 02:14:24 pm »
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!

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Importing files
« Reply #1 on: April 20, 2012, 08:11:22 pm »
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.

Offline sickfar

  • byte
  • *
  • Posts: 2
    • View Profile
Re: Importing files
« Reply #2 on: April 20, 2012, 08:16:00 pm »
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 : (

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Importing files
« Reply #3 on: April 20, 2012, 08:31:45 pm »
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.