Blender x exporter is not working!

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
niezdrowywglowe
Posts: 8
Joined: Fri Oct 13, 2006 9:31 pm

Blender x exporter is not working!

Post by niezdrowywglowe »

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

Post by Frank Dodd »

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.
niezdrowywglowe
Posts: 8
Joined: Fri Oct 13, 2006 9:31 pm

Post by niezdrowywglowe »

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.
Andreas
Posts: 166
Joined: Sun Oct 31, 2004 7:15 am
Location: Münster / Germany
Contact:

Post by Andreas »

I never got Blender .x exporters to work with Irrlicht under linux. :(
The best i could do was a static model without animations.

My suggestion ist: use WinXP in a VMWare and try Milkshape3D for example.
niezdrowywglowe
Posts: 8
Joined: Fri Oct 13, 2006 9:31 pm

Post by niezdrowywglowe »

Yes, static meshes that is maximum, what I get. But I think, that must be a way, to get the script to work.
niezdrowywglowe
Posts: 8
Joined: Fri Oct 13, 2006 9:31 pm

Post by niezdrowywglowe »

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?
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Post by bitplane »

cool, thanks for the tips :)

can you send me your mesh again please (with tcoords) and i'll look at the material problem
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
finger007

Post by finger007 »

Great to hear it worked out for you.
It's about time to get Blender back into a cooperation-state with Irr :)

cya on irc!
niezdrowywglowe
Posts: 8
Joined: Fri Oct 13, 2006 9:31 pm

Post by niezdrowywglowe »

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 :/
Post Reply