Blender importer [WIP]

The place for artists, modellers, level designers et al to discuss their approaches for creating content for OGRE.
User avatar
haffax
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 4823
Joined: Fri Jun 18, 2004 1:40 pm
Location: Berlin, Germany
x 7
Contact:

Post by haffax »

Ok, next try.
If this doesn't work, I'll have to make a test case first: http://www.rafb.net/paste/results/f66BxT33.txt
team-pantheon programmer
creators of Rastullahs Lockenpracht
User avatar
jacmoe
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 20570
Joined: Thu Jan 22, 2004 10:13 am
Location: Denmark
x 179
Contact:

Post by jacmoe »

Perfect! Thank you very much! :D

Right into Blender with materials and all! :P
User avatar
dfacchin
Greenskin
Posts: 105
Joined: Fri May 13, 2005 10:11 am

Post by dfacchin »

I have the same error as jacmoe (the 1st one,no more than 16. mat), did u fix it? the link u give is broken.
User avatar
haffax
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 4823
Joined: Fri Jun 18, 2004 1:40 pm
Location: Berlin, Germany
x 7
Contact:

Post by haffax »

Fixed in CVS now.
Till anon CVS gets synchronised here is the script again: http://www.rafb.net/paste/results/Lh90gd31.txt
team-pantheon programmer
creators of Rastullahs Lockenpracht
hike1
Greenskin
Posts: 118
Joined: Sun Mar 30, 2003 3:46 am
Contact:

Post by hike1 »

I get using python version 2.4
file "<string>", line 113, in ?
ImportError: No module named glob

This is when I just click on the import.py
choice, don't even get to the mesh.xml choice.
User avatar
haffax
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 4823
Joined: Fri Jun 18, 2004 1:40 pm
Location: Berlin, Germany
x 7
Contact:

Post by haffax »

This usually means your external python is not setup in a way, that it is recognised by Blender. The glob module is part of the stand-alone python installation. Make sure you setup your PYTHONPATH environment variable as described in the Blender documentation.
team-pantheon programmer
creators of Rastullahs Lockenpracht
tgraupmann
Gnoll
Posts: 696
Joined: Sun Feb 20, 2005 5:28 am
Contact:

Post by tgraupmann »

Or just download and install the Python setup and it will do it for ya:
http://www.python.org/download/
gotelin
Gnoblar
Posts: 5
Joined: Tue Sep 14, 2004 4:55 pm

Error

Post by gotelin »

I have a problem with the Import of Blender.

Error:

Python script error: Check console

Import Error: No module named glob

Can you help me, please?

Thanks in advance
User avatar
haffax
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 4823
Joined: Fri Jun 18, 2004 1:40 pm
Location: Berlin, Germany
x 7
Contact:

Post by haffax »

Read the question three posts above yours and my answer under it. ;)
team-pantheon programmer
creators of Rastullahs Lockenpracht
tgraupmann
Gnoll
Posts: 696
Joined: Sun Feb 20, 2005 5:28 am
Contact:

Post by tgraupmann »

Just reinstall Python 2.4 and that fixed it for me.

When is the python import script going to get upgraded. It would be nice if it could import armatures correctly.
User avatar
haffax
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 4823
Joined: Fri Jun 18, 2004 1:40 pm
Location: Berlin, Germany
x 7
Contact:

Post by haffax »

Soon. I have a bit time again now. But I have to use it on two projects, and Blender Importer doesn't come first here. I can't give you a specific date though. Some of my test skeletons are imported correctly right now, some are not. I still have to figure out why. And then I have to do the vertex group assignmenment, whic is not even started.
team-pantheon programmer
creators of Rastullahs Lockenpracht
tgraupmann
Gnoll
Posts: 696
Joined: Sun Feb 20, 2005 5:28 am
Contact:

Post by tgraupmann »

Ok just so you know, we use your nice importer/exporter a lot for our game.

http://www.gamedev.net/columns/spotlight/sector13/
gotelin
Gnoblar
Posts: 5
Joined: Tue Sep 14, 2004 4:55 pm

Post by gotelin »

Thanks,
I have this pronlem and message.

No mesh.xml file. Trying to convert it from binary mesh format
tgraupmann
Gnoll
Posts: 696
Joined: Sun Feb 20, 2005 5:28 am
Contact:

Post by tgraupmann »

Use:

OgreXMLConverter.exe -l 0 -e -r mymesh.mesh

Use the script to import mymesh.mesh.xml
gotelin
Gnoblar
Posts: 5
Joined: Tue Sep 14, 2004 4:55 pm

Post by gotelin »

Thanks. It fixed the problem.

Is possible import the skeleton?
Thanks
User avatar
haffax
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 4823
Joined: Fri Jun 18, 2004 1:40 pm
Location: Berlin, Germany
x 7
Contact:

Post by haffax »

Not yet, but I'm working on it.
team-pantheon programmer
creators of Rastullahs Lockenpracht
Timme
Greenskin
Posts: 122
Joined: Sun Mar 13, 2005 8:23 pm
Location: Germany

Post by Timme »

There is another import script for Blender made by D-Man. I haven't tested the script yet.

Here is an article on blendernation: http://www.blendernation.com/2006/04/26 ... -importer/
3dmanzone
Gnoblar
Posts: 2
Joined: Sun Apr 30, 2006 9:59 am

Post by 3dmanzone »

Here is the last file.

http://people.freenet.de/3-D-Man-Zone/d ... mporter.py

I have added an GUI to my importer.

PS: dont wonder about my username here but "D-Man" wasn't allowed because somebody else is using that name right here I think.

But 'D-Man' is my username at http://blenderartists.org/forum/
tgraupmann
Gnoll
Posts: 696
Joined: Sun Feb 20, 2005 5:28 am
Contact:

Post by tgraupmann »

Is this different than Haffax's version?
User avatar
haffax
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 4823
Joined: Fri Jun 18, 2004 1:40 pm
Location: Berlin, Germany
x 7
Contact:

Post by haffax »

Yes, all different. It is not derived from mine. It has skeleton import too. I didn't try it myself, yet.
team-pantheon programmer
creators of Rastullahs Lockenpracht
User avatar
jacmoe
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 20570
Joined: Thu Jan 22, 2004 10:13 am
Location: Denmark
x 179
Contact:

Post by jacmoe »

The only importer I can get, is version 0.4 05/11/05, which doesn't import skeletons - do you have any newer, Haffax?
/* Less noise. More signal. */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.
User avatar
haffax
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 4823
Joined: Fri Jun 18, 2004 1:40 pm
Location: Berlin, Germany
x 7
Contact:

Post by haffax »

Well. replace too with even. Mine hasn't, 3dmanzone's has.

I have an only almost working with skeleton version. I really, really am going to finish it, but not now. My other task takes longer than I thought it would and I want to finish it before doing something different.
team-pantheon programmer
creators of Rastullahs Lockenpracht
User avatar
jacmoe
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 20570
Joined: Thu Jan 22, 2004 10:13 am
Location: Denmark
x 179
Contact:

Post by jacmoe »

Fair enough, didn't mean to rush you! :)
/* Less noise. More signal. */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.
User avatar
lf3thn4d
Orc
Posts: 478
Joined: Mon Apr 10, 2006 9:12 pm
x 12

Post by lf3thn4d »

*bump*

How's this going? Really would love to see skeleton and animation imported. MAX is giving me headache with their lousy vertices weld (Making stencil shadow leak). ;) And I'm lazy to rig and animate my character again. :P
User avatar
haffax
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 4823
Joined: Fri Jun 18, 2004 1:40 pm
Location: Berlin, Germany
x 7
Contact:

Post by haffax »

lf3thn4d, sorry have hands full with getting Rastullahs Lockenpracht techdemo2 out of the door. I haven't touched the importer in a while and I even didn't come around yet to test, whether the script works in Blender 2.42.

Did you try 3dmanzone's script, he posted a few posts above, it supports skeleton import.
team-pantheon programmer
creators of Rastullahs Lockenpracht
Post Reply