NeoSpark314 / blenderNel3dImport

Importing Nel3d (Ryzom) art assets into blender
GNU General Public License v3.0
5 stars 2 forks source link

Importing not functionning with Blender 2.63 #2

Closed yannK2 closed 11 years ago

yannK2 commented 11 years ago

Hi, I have tried to import some asets from Ryzom game and the script doesn't succeed. Here is the output of my Blender I have tried to import a .shape file from Ryzom Game, from a decompressed .bnp of the official game : ca_ship.shape, in characters_shapes folder

-------

Traceback (most recent call last): File "~/.blender/2.63/scripts/addons/import_nel3d.py", line 2340, in execute bMeshObj = convert_NelMesh_to_BlenderObject(nelMesh, fileRootPath); File "~/.blender/2.63/scripts/addons/import_nel3d.py", line 1800, in convert_NelMesh_to_BlenderObject convert_CMeshMRMSkinnedGeom_to_BlenderMesh(bobj, bmesh, meshdata['_MeshMRMGeom']); File "~/.blender/2.63/scripts/addons/import_nel3d.py", line 1715, in convert_CMeshMRMSkinnedGeom_to_BlenderMesh b_texFace.image = bmesh.materials[temp_AllFace_MatIds[i]].texture_slots[0].texture.image; AttributeError: 'NoneType' object has no attribute 'texture'

location::-1

-------

As I have not found any other feedback about this sort of problem, I thought you would be interested. All the best,

NeoSpark314 commented 11 years ago

Thanks for reporting. I created a new branch (called blender2.66) that contains adjustments and fixes for blender 2.66 and also should fix your reported issue (but probably has some other issues I haven't yet found). Below is a test import of the file you describe. If you like you could also test the updated script from the branch (in blender 2.66) to see if the issue is really fixed.

testimport_ca_ship shape

yannK2 commented 11 years ago

The 2.66 import worked with no problem. I have the mesh. How do you do to have the mesh texturized ? If you agree, I will add a link to your scriptin our wiki to let people know how to import Ryzom meshes Thanks a lot for your help

NeoSpark314 commented 11 years ago

Sure; you can add a link but you probably want to add a note that this importer is in a very rough state and has many known issues (and probably a lot more of unknown issues).

The textures should get loaded when they are unpacked into the same directory where the .shape file is. There is currently a problem with the per-face texture settings but the materials should work correctly so when you render the mesh using the blender internal render it should appear as in the image above.