Anim8or Community

Please login or register.

Login with username, password and session length
Advanced search  

News:

Ian Ross has just released a book on Anim8or. It's perect for a beginner and a good reference for experienced users. It contains detailed chapters on every aspect, with many examples. Get your own copy here: "Anim8or Tutorial Book"

Author Topic: Crash when exporting as obj without texture  (Read 11661 times)

R Soul

  • Newbie
  • *
  • Posts: 3
    • View Profile
Crash when exporting as obj without texture
« on: July 19, 2009, 07:33:02 pm »

If I export a model as obj, and there's a material whose texture cannot be found, the program crashes.

To be give an example:
Say I have a model which already has some textures, and I want to export some faces as obj files so I can work on the texture mapping in something like LithUnwrap. I select the faces and detach them, and then copy and paste the new mesh into a new file. The material is also pasted in but it loses the texture.

I can either delete the material or choose an image file for the texture, but if I forget, which is quite common, Anim8or will crash when I try to export the object. Would it be possible to insert some code which throws up an error message if there's no texture found, and prevents the crash?

edit: I'd also like to say a sincere thank you. Anim8or's a great program :D
« Last Edit: July 19, 2009, 09:55:15 pm by R Soul »
Logged

3Dgeek11

  • Sr. Member
  • ****
  • Posts: 541
  • Roll Tide.
    • View Profile
    • My DeviantART
Re: Crash when exporting as obj without texture
« Reply #1 on: July 21, 2009, 03:45:24 am »

I don't have a clue how to fix this error, but I have the same problem.

Now that I've read your post, it's clear to me, that my problem is a model with textures that can't be found. Where as, if I do one without a material at all, it works fine.
Cool, but, unfortunately, I have no fix..
Logged

lynn22

  • Sr. Member
  • ****
  • Posts: 591
    • View Profile
    • 3D Animation
Re: Crash when exporting as obj without texture
« Reply #2 on: July 21, 2009, 04:55:41 am »

You could try inverting your workflow and take care of those faces that need exporting first while your whole object is still a blank canvas that way there will not be any missing textures. Only start texturing the rest of your object when you have imported the faces that are UV mapped.
Logged

R Soul

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Crash when exporting as obj without texture
« Reply #3 on: July 26, 2009, 02:53:16 pm »

Sometimes Anim8or can handle the UV mapping perfectly fine, other times not. There are times when I can only tell once the texture has been applied, so that's why I often run into this problem*. My main reason for posting was so that Mr Glanville would know it's an issue. I imagine it could be fixed with a try-catch block, or the equivalent for the language this is written in.


*Plus it was not an issue for previous versions because they didn't try to make the .mtl file.
« Last Edit: July 26, 2009, 02:55:21 pm by R Soul »
Logged