Blender x exporter is not working!
-
niezdrowywglowe
- Posts: 8
- Joined: Fri Oct 13, 2006 9:31 pm
Blender x exporter is not working!
Hi, I'm using Irrlicht 1.1 on Linux machine. I'm modeling in Blender, and I don't know why the exporter don't work. When I'm using the original exporter from Blender, results are terrible! But the same mesh exported from Blender in mesh viewer from DirectX SDK is realy nice. I think, that Irrlicht not good understand x files. What else meight be? With exporter from Irrlicht: DirectX8ExporterMod.py (here another thing: to work, I have deleted lines from 1522 to 1529, else I get python script error :/ ) the mesh looks o.k. but I can't export animation. I use Armature to deform the mesh. Has enybody the same problem?
-
Frank Dodd
- Posts: 208
- Joined: Sun Apr 02, 2006 9:20 pm
Yes, I also had this problem and had to manually edit the python script just to get it running under the latest version of blender as it was obviously written for an older version.
I have only just picked this problem up again as I have been playing with static meshes mainly and using an exporter I wrote for another 3D package however I don't fancy implementing animation support and will have to look into the alternatives again.
I have only just picked this problem up again as I have been playing with static meshes mainly and using an exporter I wrote for another 3D package however I don't fancy implementing animation support and will have to look into the alternatives again.
-
niezdrowywglowe
- Posts: 8
- Joined: Fri Oct 13, 2006 9:31 pm
So is there any way to use Irrlich on Linux? Witch modeler I should use? Is there any alternative? I know there is Wingd3D and exporter for it, but without animations I think. I will not install Windows only for Max3D or other 3D package. I have search on this forum and figured out, that many people have problems with x files. It's very strange. The list of supported types of Irrlicht says, that the x file format is the best supported :/ !! I don't know what to do.
-
niezdrowywglowe
- Posts: 8
- Joined: Fri Oct 13, 2006 9:31 pm
-
niezdrowywglowe
- Posts: 8
- Joined: Fri Oct 13, 2006 9:31 pm
Heh
With help of finger007, bitplane and rooly i have working script. Thanks.
So, I have Irrlicht from SVN, Blender 2.42 (linux precompiled binaries) and script from here: http://blenderartists.org/forum/showthread.php?t=73602
Before exporting, it is good to make these Alt+G Alt+R, Alt+S, Alt+O, or Ctrl+Alt+A. This topic might be found in many tutorials about Armature in Blender.
In the script GUI (after Alt+P) I switched ON: Anim, Swap zy, Speed, Scene (it may be OFF, but the mesh and the armature must be both selected), BI.normals and Go!
The mesh is moving!
One thing that I'm wondering: why the colour of the mesh is pink, when i selected green in material colour settings?
So, I have Irrlicht from SVN, Blender 2.42 (linux precompiled binaries) and script from here: http://blenderartists.org/forum/showthread.php?t=73602
Before exporting, it is good to make these Alt+G Alt+R, Alt+S, Alt+O, or Ctrl+Alt+A. This topic might be found in many tutorials about Armature in Blender.
In the script GUI (after Alt+P) I switched ON: Anim, Swap zy, Speed, Scene (it may be OFF, but the mesh and the armature must be both selected), BI.normals and Go!
The mesh is moving!
One thing that I'm wondering: why the colour of the mesh is pink, when i selected green in material colour settings?
-
finger007
-
niezdrowywglowe
- Posts: 8
- Joined: Fri Oct 13, 2006 9:31 pm
Oh, i will crazy someday :/
It works with my simple mesh (cylinder extruded up once and two bones), but with more complicated mesh i get this:
,,,
.x File Export (DirectX) for V2.42 version 0.1 (beta) Envoked.
Exporting Scene...
Diag: Writing Animation Keys - Method 1
Diag: Current Action: aa
Diag: Exporting Bone: R foot
Diag: Extracting Keyframe Points IP Bone Name: ActIpo.703
Traceback (most recent call last):
File "xFileExporter242.", line 205, in draw
File "xFileExporter242.", line 115, in my_callback_sel
File "xFileExporter242.", line 527, in ExportScene
File "xFileExporter242.", line 551, in ExportAnimation
File "xFileExporter242.", line 1231, in writeAnimation
File "xFileExporter242.", line 1354, in getKeyFramePoints
IndexError: list index out of range
I don't know what is wrong :/
It works with my simple mesh (cylinder extruded up once and two bones), but with more complicated mesh i get this:
,,,
.x File Export (DirectX) for V2.42 version 0.1 (beta) Envoked.
Exporting Scene...
Diag: Writing Animation Keys - Method 1
Diag: Current Action: aa
Diag: Exporting Bone: R foot
Diag: Extracting Keyframe Points IP Bone Name: ActIpo.703
Traceback (most recent call last):
File "xFileExporter242.", line 205, in draw
File "xFileExporter242.", line 115, in my_callback_sel
File "xFileExporter242.", line 527, in ExportScene
File "xFileExporter242.", line 551, in ExportAnimation
File "xFileExporter242.", line 1231, in writeAnimation
File "xFileExporter242.", line 1354, in getKeyFramePoints
IndexError: list index out of range
I don't know what is wrong :/