@unknownuser said:
- default material -> will use the group material with simple planar UV if exists, otherwise default front/back color
It is this case which is a little torublesome, with a default material for the group and no material for the faces in the group. So how do I get these "simple planar UV" coordinates? And do I need to do some conversion to get the UVs which in the end are used for rendering?
What I do now:
for each face in group;
mesh = face.mesh(5) # Get points, normals and UVs for front faces
for each vertex;
uv = mesh.uv_at(index,1)
EDIT:
I think i've got it now. The UVs from PolygonMesh are in the case above not rendering UVs but instead need to be divided by the width and height of the material. Me getting uninitialized values was just an error in the importer-program which read the files I've exported. It's still peculiar that getting UVs with PolygonMesh for ungrouped faces gives actual rendering UVs while with a group material they need to be converted. We end up with some extra (unnecessary?) special cases.