Users browsing this thread: 1 Guest(s)
Older model uploads and newer Blender versions
#1
I've been hearing around for a bit now that people are having problems importing .dae files into newer versions of Blender that were originally exported by older versions of Blender. It's not much trouble to do the import into an old Blender and bring the result file forward to the newer version, but this isn't exactly intuitive or a good user experience.

Here's an example error that someone PM'd me:
Code:
Schema validation (Error): Error: ERROR_REQUIRED_ATTRIBUTE_MISSING Element: texture, Attribute: texcoord, Line: 110, Column: 31, Additional:
The Collada import has been forced to stop.
Please fix the reported error and then try again.+----------------------------------
| Collada Import : FAIL

I can't imagine it's too serious an error given that the older Blenders can import it just fine. Maybe someone who knows more about the .dae format than me can write a tool to auto-fix such files, and have it hosted it on the site like the model checker tool? Then, we can say "try this tool if a newer Blender gives you trouble with an older submission", and newer submissions can be run through the tool before uploading (by submitters ideally, by mods if necessary).
Reply
Thanked by:
#2
It's this bug in Blender: https://developer.blender.org/T58093

It's easy to fix. Open the .dae in a text editor and search for lines like

Code:
<texture texture="something"/>

and replace them with

Code:
<texture texcoord="uv" texture="something"/>

You can do it automatically with find-replace <texture ⇒ <texture texcoord="uv".

Technically this fix is still wrong, you're supposed to also insert something in the <bind_material> element. But Blender doesn't care, it will work anyway Rolleyes It doesn't even care what name you put in the texcoord, you can use texcoord="whatever" and it will still work. If you're making new .daes to upload you should still export from an up-to-date Blender though.
Reply
Thanked by:


Forum Jump: