mrozmanith / awd

Automatically exported from code.google.com/p/awd
Apache License 2.0
0 stars 0 forks source link

blender export: AttributeError: 'Mesh' object has no attribute 'faces' #52

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
adw_export.py uses the old interface "faces". 
Should be "tessfaces" now.

http://www.blender.org/documentation/blender_python_api_2_62_2/info_gotcha.html#
ngons-and-tessellation-faces

@awd_export.py line 343:

      # Generate expanded list of vertices
-        for f in geom.faces:
+        for f in geom.tessfaces:
            inds_in_face = [0,2,1]

Detailed error:

{'embed_textures': True, 'include_attr': True, 'include_materials': True, 
'filepath': '/untitled.awd'}
Creating mesh Cube
Traceback (most recent call last):
  File "/opt/blender-2.64a-linux-glibc27-x86_64/2.64/scripts/addons/io_awd/__init__.py", line 62, in execute
    exporter.export(context, **kwds)
  File "/opt/blender-2.64a-linux-glibc27-x86_64/2.64/scripts/addons/io_awd/awd_export.py", line 75, in export
    self.export_mesh(o)
  File "/opt/blender-2.64a-linux-glibc27-x86_64/2.64/scripts/addons/io_awd/awd_export.py", line 216, in export_mesh
    md = self.build_mesh_data(o.data)
  File "/opt/blender-2.64a-linux-glibc27-x86_64/2.64/scripts/addons/io_awd/awd_export.py", line 343, in build_mesh_data
    for f in geom.faces:
AttributeError: 'Mesh' object has no attribute 'faces'

Original issue reported on code.google.com by Schindle...@gmail.com on 3 Dec 2012 at 7:08

GoogleCodeExporter commented 8 years ago
The blender exporter is in a work-in-progress state and is not intended for use 
at this time.

Original comment by bengtric...@gmail.com on 3 Dec 2012 at 9:30

GoogleCodeExporter commented 8 years ago
i changed the blender exporter, so it exports our files again. 

It exports all objects. 
It exports materials if they have a texture. 
Bitmaps must be linked in a material to export.
UV-Mapping works fine, but could be optimized for a better awd-file-size.

Not working: 
everything else :) 
There is a matrix converter, that is broken. 
i don't know what this is for, but i didn't need it, or it just worked good 
enough for our files.

Original comment by Schindle...@gmail.com on 6 Dec 2012 at 3:38

GoogleCodeExporter commented 8 years ago
BugFix: UV-Mapping is mirrored

Original comment by Schindle...@gmail.com on 6 Dec 2012 at 5:02

Attachments:

GoogleCodeExporter commented 8 years ago
... 8 weeks later :) ... now i know the problem was not a inverted UV-Map. It 
was a inverted x coordinates. 

So the UV-mapping and the VertexIndex (0,2,1) was right.
Here is the new dif, with correct "x" and "UV-Mapping" .

Original comment by Schindle...@gmail.com on 15 Feb 2013 at 2:04

Attachments: