Google

Blender importer [WIP]

The place for artists, modellers, level designers et al to discuss their approaches for creating content for OGRE.

Moderators: Moderators, OGRE Team

Postby haffax » Sun Feb 05, 2006 10:12 pm

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
haffax
OGRE Moderator
OGRE Moderator
 
Posts: 5069
Joined: Fri Jun 18, 2004 1:40 pm
Location: Berlin, Germany

Postby jacmoe » Sun Feb 05, 2006 10:16 pm

Perfect! Thank you very much! :D

Right into Blender with materials and all! :P
User avatar
jacmoe
OGRE Moderator
OGRE Moderator
 
Posts: 17493
Joined: Thu Jan 22, 2004 10:13 am
Location: Denmark

Postby dfacchin » Sun Feb 12, 2006 1:44 pm

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
dfacchin
Regular
 
Posts: 105
Joined: Fri May 13, 2005 10:11 am

Postby haffax » Sun Feb 12, 2006 3:01 pm

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
User avatar
haffax
OGRE Moderator
OGRE Moderator
 
Posts: 5069
Joined: Fri Jun 18, 2004 1:40 pm
Location: Berlin, Germany

Postby hike1 » Sat Mar 11, 2006 5:27 pm

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.
hike1
Regular
 
Posts: 121
Joined: Sun Mar 30, 2003 3:46 am

Postby haffax » Sat Mar 11, 2006 6:24 pm

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
User avatar
haffax
OGRE Moderator
OGRE Moderator
 
Posts: 5069
Joined: Fri Jun 18, 2004 1:40 pm
Location: Berlin, Germany

Postby tgraupmann » Sat Mar 11, 2006 6:39 pm

Or just download and install the Python setup and it will do it for ya:
http://www.python.org/download/
tgraupmann
Veteran
 
Posts: 696
Joined: Sun Feb 20, 2005 5:28 am

Error

Postby gotelin » Sat Apr 22, 2006 3:17 pm

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
gotelin
Newcomer
 
Posts: 6
Joined: Tue Sep 14, 2004 4:55 pm

Postby haffax » Sat Apr 22, 2006 3:44 pm

Read the question three posts above yours and my answer under it. ;)
team-pantheon programmer
creators of Rastullahs Lockenpracht
User avatar
haffax
OGRE Moderator
OGRE Moderator
 
Posts: 5069
Joined: Fri Jun 18, 2004 1:40 pm
Location: Berlin, Germany

Postby tgraupmann » Sat Apr 22, 2006 6:23 pm

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.
tgraupmann
Veteran
 
Posts: 696
Joined: Sun Feb 20, 2005 5:28 am

Postby haffax » Sat Apr 22, 2006 6:36 pm

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
User avatar
haffax
OGRE Moderator
OGRE Moderator
 
Posts: 5069
Joined: Fri Jun 18, 2004 1:40 pm
Location: Berlin, Germany

Postby tgraupmann » Sat Apr 22, 2006 6:41 pm

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

http://www.gamedev.net/columns/spotlight/sector13/
tgraupmann
Veteran
 
Posts: 696
Joined: Sun Feb 20, 2005 5:28 am

Postby gotelin » Mon Apr 24, 2006 7:13 am

Thanks,
I have this pronlem and message.

No mesh.xml file. Trying to convert it from binary mesh format
gotelin
Newcomer
 
Posts: 6
Joined: Tue Sep 14, 2004 4:55 pm

Postby tgraupmann » Mon Apr 24, 2006 4:09 pm

Use:

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

Use the script to import mymesh.mesh.xml
tgraupmann
Veteran
 
Posts: 696
Joined: Sun Feb 20, 2005 5:28 am

Postby gotelin » Tue Apr 25, 2006 6:07 am

Thanks. It fixed the problem.

Is possible import the skeleton?
Thanks
gotelin
Newcomer
 
Posts: 6
Joined: Tue Sep 14, 2004 4:55 pm

Postby haffax » Tue Apr 25, 2006 6:12 am

Not yet, but I'm working on it.
team-pantheon programmer
creators of Rastullahs Lockenpracht
User avatar
haffax
OGRE Moderator
OGRE Moderator
 
Posts: 5069
Joined: Fri Jun 18, 2004 1:40 pm
Location: Berlin, Germany

Postby Timme » Wed Apr 26, 2006 4:11 pm

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/
Timme
Regular
 
Posts: 122
Joined: Sun Mar 13, 2005 8:23 pm
Location: Germany

Postby 3dmanzone » Sun Apr 30, 2006 10:11 am

Here is the last file.

http://people.freenet.de/3-D-Man-Zone/downloads/OGRE3D-Mesh-importer.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/
3dmanzone
Newcomer
 
Posts: 2
Joined: Sun Apr 30, 2006 9:59 am

Postby tgraupmann » Mon May 01, 2006 10:57 pm

Is this different than Haffax's version?
tgraupmann
Veteran
 
Posts: 696
Joined: Sun Feb 20, 2005 5:28 am

Postby haffax » Mon May 01, 2006 11:18 pm

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
haffax
OGRE Moderator
OGRE Moderator
 
Posts: 5069
Joined: Fri Jun 18, 2004 1:40 pm
Location: Berlin, Germany

Postby jacmoe » Mon May 01, 2006 11:24 pm

The only importer I can get, is version 0.4 05/11/05, which doesn't import skeletons - do you have any newer, Haffax?
/* when invited to a free lunch, you should not complain about the quality of the caviar */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, Fueled by Passion.
Ogre AppWizards - project wizards for Visual Studio and Code::Blocks.
User avatar
jacmoe
OGRE Moderator
OGRE Moderator
 
Posts: 17493
Joined: Thu Jan 22, 2004 10:13 am
Location: Denmark

Postby haffax » Tue May 02, 2006 12:36 am

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
haffax
OGRE Moderator
OGRE Moderator
 
Posts: 5069
Joined: Fri Jun 18, 2004 1:40 pm
Location: Berlin, Germany

Postby jacmoe » Tue May 02, 2006 12:44 am

Fair enough, didn't mean to rush you! :)
/* when invited to a free lunch, you should not complain about the quality of the caviar */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, Fueled by Passion.
Ogre AppWizards - project wizards for Visual Studio and Code::Blocks.
User avatar
jacmoe
OGRE Moderator
OGRE Moderator
 
Posts: 17493
Joined: Thu Jan 22, 2004 10:13 am
Location: Denmark

Postby lf3thn4d » Fri Jul 21, 2006 5:59 pm

*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
lf3thn4d
Veteran
 
Posts: 417
Joined: Mon Apr 10, 2006 9:12 pm

Postby haffax » Fri Jul 21, 2006 7:21 pm

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
User avatar
haffax
OGRE Moderator
OGRE Moderator
 
Posts: 5069
Joined: Fri Jun 18, 2004 1:40 pm
Location: Berlin, Germany

PreviousNext

Return to Artists & Content Creators

Who is online

Users browsing this forum: No registered users and 0 guests