sidebar features
sidebar content

Go Back   Blender Artists Forums > General Forums > Python & Plugins

Reply
 
Thread Tools
D-Man's Avatar
D-Man D-Man is offline
Member
 
Join Date: Jan 2005
Location: Germany
Posts: 72
I have written an Importer for OGRE3D Mesh files.
It works in most cases and is able to import Mesh Data + Skeleton(if there is one) + Materials with Textures (if he find them).

There is a part that should import animations too but it doesn't work
because there i have trouble with the rotation angles.

If someone can help me to solve this problem ????

Link to the importer:
http://people.freenet.de/3-D-Man-Zon...sh_importer.py

"right MB" and "save as" if direct download doesn't work

Last edited by D-Man; 25-Apr-06 at 12:36.
#1   Old 21-Apr-06, 10:30   
Reply With Quote


D-Man's Avatar
D-Man D-Man is offline
Member
 
Join Date: Jan 2005
Location: Germany
Posts: 72
Something more:

-The script is written for Blender 2.41 with Python 2.4

-The .mesh/.mesh.xml, .skeleton/.skeleton.xml, .material file and the texture files should stay in the same directory

-To leaf the animations comment the lines 1077-1079
#2   Old 21-Apr-06, 10:39   
Reply With Quote
D-Man's Avatar
D-Man D-Man is offline
Member
 
Join Date: Jan 2005
Location: Germany
Posts: 72
Solved the rotation problem and the Translation of the animated Bones!

I have added a additional bone called 'Root', that takes the bonelocation of the original root bone without
rotations because in most cases only the original root is translated in the animations. That solves the
"translation in 'worldspace'" problem.

Have fun with it and please post any problems.

Maybe that somebody make this script more comfortable by using a XML-Parser.

If so please tell me!


Here is the file:

http://people.freenet.de/3-D-Man-Zon...h_importer2.py

"right MB" and "save as" if direct download doesn't work

Last edited by D-Man; 25-Apr-06 at 12:35.
#3   Old 23-Apr-06, 16:49   
Reply With Quote
youngbatcat youngbatcat is offline
Member
 
Join Date: Mar 2002
Posts: 2,037
hrmmm,,, Exporter... intergration,,, = happy... Maybe.. OR Replace blender 3d view with ogre...
#4   Old 26-Apr-06, 14:12   
Reply With Quote
NeOmega's Avatar
NeOmega NeOmega is offline
Donating Member
 
Join Date: Jul 2004
Location: Seattle, Wa
Posts: 1,237
what do you go by onthe OGRE forums?
............................................

#5   Old 26-Apr-06, 14:33   
Reply With Quote
LetterRip LetterRip is offline
Donating Member
 
Join Date: Mar 2004
Posts: 2,016
Hi what license is it? If it is GPL I'll possibly add it for the next release...

LetterRip
#6   Old 27-Apr-06, 09:52   
Reply With Quote
D-Man's Avatar
D-Man D-Man is offline
Member
 
Join Date: Jan 2005
Location: Germany
Posts: 72
Its GPL but not realy finished. I will add a GUI for adjusting the import scale factor and maybe some options for setting the content that will be imported and a routine that allows to set the OgreXMLConverter manualy if its not found.

Last edited by D-Man; 27-Apr-06 at 11:24.
#7   Old 27-Apr-06, 11:21   
Reply With Quote
NeOmega's Avatar
NeOmega NeOmega is offline
Donating Member
 
Join Date: Jul 2004
Location: Seattle, Wa
Posts: 1,237
Are you aware of this thread?

http://www.ogre3d.org/phpBB2/viewtopic.php?t=9135
............................................

#8   Old 27-Apr-06, 21:48   
Reply With Quote
D-Man's Avatar
D-Man D-Man is offline
Member
 
Join Date: Jan 2005
Location: Germany
Posts: 72
@NeOmega:
I know this threat. But i'm not an OGRE3D User or developer so if you like to post this script there feel free to do it.
............................................
My Homepage: http://www.3dmanzone.de.vu

Last edited by D-Man; 28-Apr-06 at 05:50.
#9   Old 28-Apr-06, 05:38   
Reply With Quote
D-Man's Avatar
D-Man D-Man is offline
Member
 
Join Date: Jan 2005
Location: Germany
Posts: 72
Added an GUI for the importer and you now can setup your path to the
OgreXMLConverter.

http://people.freenet.de/3-D-Man-Zon...sh-importer.py

"right MB" and "save as" if direct download doesn't work
............................................
My Homepage: http://www.3dmanzone.de.vu

Last edited by D-Man; 29-Apr-06 at 08:13.
#10   Old 29-Apr-06, 08:07   
Reply With Quote
NeOmega's Avatar
NeOmega NeOmega is offline
Donating Member
 
Join Date: Jul 2004
Location: Seattle, Wa
Posts: 1,237
Quote:
Originally Posted by D-Man
@NeOmega:
I know this threat. But i'm not an OGRE3D User or developer so if you like to post this script there feel free to do it.
OK, but I am confused, why don't you just register there and post it?
............................................

#11   Old 29-Apr-06, 20:34   
Reply With Quote
D-Man's Avatar
D-Man D-Man is offline
Member
 
Join Date: Jan 2005
Location: Germany
Posts: 72
@NeOmega:

I have posted it at http://www.ogre3d.org/phpBB2/viewtop...=145217#145217
............................................
My Homepage: http://www.3dmanzone.de.vu

Last edited by D-Man; 30-Apr-06 at 08:55.
#12   Old 30-Apr-06, 08:36   
Reply With Quote
LetterRip LetterRip is offline
Donating Member
 
Join Date: Mar 2004
Posts: 2,016
Hey D-Man, just curious if you have updated the script at all or if you feel it is ready for submittal for inclusion.

LetterRip
#13   Old 24-Aug-06, 09:32   
Reply With Quote
D-Man's Avatar
D-Man D-Man is offline
Member
 
Join Date: Jan 2005
Location: Germany
Posts: 72
I'm sorry that there was nothing new so long.

I will fix some problems by using the importer at Blender 2.42a, but for now i have to spend my time on anything different. I hope to bring you the realy finished importer end of september.
............................................
My Homepage: http://www.3dmanzone.de.vu
#14   Old 06-Sep-06, 17:56   
Reply With Quote
puh puh is offline
Member
 
Join Date: Sep 2006
Posts: 38
Hm, can i bump this tread up a bit?

D-Man: thank you so much for your work on importer for Blender.
I have using OGRE3D_Mesh_importer2.py (http://freenet-homepage.de/3-D-Man-Z...h_importer2.py) coz oly this version could import animation for my files (latest couldn't). I use Blender 2.41.
I have incorrect bones rotation though (animation is perfect) - see attached screens.

This is how it looks in Milkshape:


and this is in Blender:


What could cause this?

Last edited by puh; 25-Sep-07 at 08:36.
#15   Old 25-Sep-07, 08:28   
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
MD5 (Doom3 engine) character + animation import script der_ton Python & Plugins 11 31-May-08 13:45
Mirror Modifier Causes Character Mesh Overlap cotejrp Basics & Interface 5 14-Jan-06 22:23
Comprehensive Character Animation Proposal harkyman News & Discussion 37 07-Dec-04 16:57
Single mesh or multiple objects for stylized toon character? atari_man Basics & Interface 1 09-Aug-04 18:57
base mesh for character modelling theresnothi News & Discussion 12 24-Aug-02 13:40


All times are GMT. The time now is 18:33.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Logo and website design copyright © 2006 by froodee design bureau. All rights reserved.
Other Blender Sites
new icon Blender Homepage »
The official Blender homepage
new icon BlenderNation »
Fresh Blender News, Every Day
new icon Blenderart Magazine »
Blender articles, tutorials and images.
Blender Headlines
Featured Artwork
Short animation: Barrel by Phlopper
Woolly mammoth by sebastian_k
Photorealistic classic furniture by eMirage
Social BlenderArtists