niacdoial / blemd

BMD importer for blender (BDL format also partially supported)
GNU General Public License v3.0
32 stars 12 forks source link

Super Mario Galaxy 2 Tico.bmd (from Tico.arc): mesh couldn't be built (bpy.ops.paint.add_simple_uvs.poll() failed, context is incorrect) #73

Open edbefee3-3888-462a-9411-741b7e9eb54e opened 1 year ago

edbefee3-3888-462a-9411-741b7e9eb54e commented 1 year ago

Trying to import said file results in a flat-shaded mesh with no armature, vertex weights, custom normals, Color attributes or UVs.

edbefee3-3888-462a-9411-741b7e9eb54e commented 1 year ago

line 222, replacing it with TexH.newUVLayer(modelMesh, self.model, uv) makes everyhting but the UVs load correctly, although some of the animations have near-360 degree twist for some of the bones, so something's up with that.

edbefee3-3888-462a-9411-741b7e9eb54e commented 1 year ago

checking in J3Dview, there's definitely something wrong with how this imports animations, seems to be an issue where scale and transform are also interpreted as rotation data, but that's a different issue.