Preview of the next Blender exporter

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

Preview of the next Blender exporter

Postby reimpell » Tue Sep 19, 2006 8:39 pm

Good news, everyone!
Instead of having to install a single Python file, you will soon have to deal with several files, that also need more space on your hard disk. Furthermore, I probably added tons of new and old bugs to the exporter. In other words: The preview-exporter contains all basic features now, most notably shape and armature animation export. :D

Image

Download: :arrow: preview-latest.tar.gz

Please test this exporter and report any problems here in the forum.

Some remarks on the current version:
  • Save before export, especially if you export several actions. Blender 2.42 seems to have a problem to restore to a given pose via Python.
  • All meshes are exported in the mesh object's coordinate system, the unnecessary additional export transformation is no longer available. Apply your object transformation before exporting, if necessary.
  • Keyframes are not yet optimized, so the resulting files tend to get large.
  • The exporter code is not yet optimized, so the export process may take a while.
  • All animations are sampled keyframe by keyframe. You don't need to bake any constraints.
Last edited by reimpell on Wed Sep 20, 2006 9:05 pm, edited 2 times in total.
reimpell
OGRE Contributor
OGRE Contributor
 
Posts: 570
Kudos: 0
Joined: 01 Mar 2004
Location: Hamburg, Germany

Postby Rackle » Tue Sep 19, 2006 10:33 pm

Some things are not said enough. So here: thank you for your continued work on this exporter.
Rackle
Gnome
 
Posts: 374
Kudos: 0
Joined: 16 Jul 2005
Location: Montréal

Postby reimpell » Wed Sep 20, 2006 1:02 pm

Many thanks for the kind words! Also many thanks to nfz, who did a fantastic job maintaining and implementing pose sampling for the old exporter!
reimpell
OGRE Contributor
OGRE Contributor
 
Posts: 570
Kudos: 0
Joined: 01 Mar 2004
Location: Hamburg, Germany

Postby RCRuiz » Wed Sep 20, 2006 3:30 pm

thanks for the script and sorry for repeat my requiest to you but tell me . . is there a way to include a second uvm info in there? I know that the oficial version of blender do not have multiple uvm but there I only need the format for the xml for a second uvm , I know pyton and the insides of blender so if I have to do a modification it will not be a big problem. . . I want this for light maps generated from blender

Un Saludo
RCRuiz
Kobold
 
Posts: 27
Kudos: 0
Joined: 11 Apr 2005

Postby reimpell » Wed Sep 20, 2006 3:37 pm

RCRuiz wrote:I only need the format for the xml for a second uvm
Have a look at the correspondig dtd.
reimpell
OGRE Contributor
OGRE Contributor
 
Posts: 570
Kudos: 0
Joined: 01 Mar 2004
Location: Hamburg, Germany

Postby RCRuiz » Wed Sep 20, 2006 3:44 pm

That's it! Thanks a lot !

Un Saludo
RCRuiz
Kobold
 
Posts: 27
Kudos: 0
Joined: 11 Apr 2005

Postby reimpell » Mon Sep 25, 2006 10:39 am

I included a manual into the download. Also, the main script was renamed. Be sure to delete the old preview.py file in your Blender script directory if you install a newer version.
reimpell
OGRE Contributor
OGRE Contributor
 
Posts: 570
Kudos: 0
Joined: 01 Mar 2004
Location: Hamburg, Germany

Postby scardario » Mon Sep 25, 2006 5:34 pm

thanks for the great job!
I have a 64 bit linux distro and the script runs fairly well altought it is not easy to configure in such a machine.
the only issues are the ones reimpell had metioned before regarding to the file size and the exporting time

thanks again, it's a really great tool for all the blenderheads working with Ogre
scardario
Kobold
 
Posts: 25
Kudos: 0
Joined: 13 May 2006

Postby jacmoe » Sat Sep 30, 2006 5:30 pm

OK. This exporter is probably great. And probably the official one now?

I have a couple of questions, though:

What is the difference between this one and the other?

Are you the sole author of this exporter?
I am answering this because the Mesh and Armature Exporter is written by Jens Hoffmann, Michael Reimpell, Jeff Doyle, et al..

So, you didn't incorporate the changes/updates/improvements provided by nfz?

I am baffled, but grateful nonetheless. :wink:

<edit>
I am also wondering why the former official exporter isn't purged from the Wiki.
Makes no sense in having it there, because the CVS link points to the new exporter now.
</edit>
/* Less noise. More signal. */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.
User avatar
jacmoe
OGRE Retired Moderator
OGRE Retired Moderator
 
Posts: 20570
Kudos: 181
Joined: 22 Jan 2004
Location: Denmark

Postby nfz » Sat Sep 30, 2006 7:54 pm

jacmoe: reimpell's newest exporter is his own code and yes the wiki needs to be updated since the newest exporter is in cvs now.

The old exporter did not support Ogre pose and vertex animation and was extremely buggy in the skeletal animation export due to my adhoc additions.
nfz
OGRE Retired Team Member
OGRE Retired Team Member
 
Posts: 1263
Kudos: 0
Joined: 24 Sep 2003
Location: Halifax, Nova Scotia, Canada

Postby jacmoe » Sat Sep 30, 2006 8:02 pm

I am baffled no more. :)
/* Less noise. More signal. */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.
User avatar
jacmoe
OGRE Retired Moderator
OGRE Retired Moderator
 
Posts: 20570
Kudos: 181
Joined: 22 Jan 2004
Location: Denmark

Postby reimpell » Sat Sep 30, 2006 8:22 pm

jacmoe wrote:OK. This exporter is probably great. And probably the official one now?
Yes, it is the basis of all feature enhancements.
jacmoe wrote:What is the difference between this one and the other?
The old exporter code was a script that evolved over the years. Therefore, its design had several limitations. I decided to do a complete rewrite, and I think the design and code quality is greatly enhanced now. From the users perspective, the new exporter allows you to additionally export pose and morph animations.
jacmoe wrote:Are you the sole author of this exporter?
Yes, but it's released under the same open source license as OGRE itself. So everyone is invited to improve it! For example, the exporter could use a variable knot piecewise Catmull-Rom spline fitting algorithm to optimize the animation sampling keyframes.
jacmoe wrote:So, you didn't incorporate the changes/updates/improvements provided by nfz?
Are you missing a particular feature?
jacmoe wrote:I am also wondering why the former official exporter isn't purged from the Wiki.
It is still part of OGRE 1.2.x.
reimpell
OGRE Contributor
OGRE Contributor
 
Posts: 570
Kudos: 0
Joined: 01 Mar 2004
Location: Hamburg, Germany

Postby jacmoe » Sat Sep 30, 2006 8:30 pm

Thank you for the clarifications/explanations, reimpell! :)

I am truly grateful for your splendid work. Kudos for making sure that Ogre has excellent Blender support. 8)
/* Less noise. More signal. */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.
User avatar
jacmoe
OGRE Retired Moderator
OGRE Retired Moderator
 
Posts: 20570
Kudos: 181
Joined: 22 Jan 2004
Location: Denmark

Postby big_o » Sun Oct 01, 2006 1:37 am

Three chears to Reimpell and everyone else who has helped out with the script over the years :D .
big_o
Goblin
 
Posts: 279
Kudos: 0
Joined: 19 Feb 2006

Postby Stach » Mon Nov 06, 2006 2:00 am

reimpell wrote:All meshes are exported in the mesh object's coordinate system, the unnecessary additional export transformation is no longer available. Apply your object transformation before exporting, if necessary.


I'm wondering why did you remove RotX.

It was really useful : OGRE and Blender y and z axes are inverted, and rotate meshes using the exporter was a good way to avoid a pitch(Degree(-90)) in code.

And rotating a mesh animated with skeleton is really tricky in Blender : Ctrl-A messes up everything.

Well, I'm grumbling :) You're work is great, also.
Stach
Gnoblar
 
Posts: 5
Kudos: 0
Joined: 09 Jun 2005
Location: Belfort (France)

Postby reimpell » Mon Nov 06, 2006 11:01 am

Stach wrote:I'm wondering why did you remove RotX.
It caused a lot of unnecessary confusion for people trying to export scenes.
Stach wrote:It was really useful : OGRE and Blender y and z axes are inverted, and rotate meshes using the exporter was a good way to avoid a pitch(Degree(-90)) in code.
The best way to avoid any additional rotation is still to align in Blender whatever axis is parallel to your up-vector of your object coordinate system (F7, Draw Extra, Axis) to whatever axis is parallel to Blender's up-vector before starting to model your mesh. This way, Blender's notion of front, top, and side view still applies.
reimpell
OGRE Contributor
OGRE Contributor
 
Posts: 570
Kudos: 0
Joined: 01 Mar 2004
Location: Hamburg, Germany

Postby Stach » Mon Nov 06, 2006 6:12 pm

Ok, i see.
It seems that Ctrl-A is no longer necessary to apply transformations on object, they are taken in charge directly.

Thanks for your answer !
Stach
Gnoblar
 
Posts: 5
Kudos: 0
Joined: 09 Jun 2005
Location: Belfort (France)

Postby nikki » Mon Nov 06, 2006 8:25 pm

Thanks for the work on the exporter, reimpell. I just love blender. I used to use 3ds max before, but now I use blender because it simply works better and faster.

And, python is the best (second only to C++)! :)
User avatar
nikki
Old One
 
Posts: 2730
Kudos: 13
Joined: 17 Sep 2005
Location: Princeton, New Jersey, USA

Postby jacmoe » Wed Nov 08, 2006 10:01 pm

nikki wrote:Thanks for the work on the exporter, reimpell.

I second that! :)

nikki wrote:I just love blender. I used to use 3ds max before, but now I use blender because it simply works better and faster.

I agree totally! :)
/* Less noise. More signal. */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.
User avatar
jacmoe
OGRE Retired Moderator
OGRE Retired Moderator
 
Posts: 20570
Kudos: 181
Joined: 22 Jan 2004
Location: Denmark

Postby boost » Thu Nov 09, 2006 5:17 am

Hi,

I dunno what I am missing but I can't get OgreXMLConverter to be executed. It's path has been added to system PATH variable (checked opening a dos box) and I have choosen Auto in the exporter preferences (and checked XMLConverter button of course). The Manual setting didn't worked, I get a line in log saying the converter is being executed but it doesn't occurs. BTW the old exporter doesn't call it either, having updated the path in the source code of the script.

Another thing I would like to ask, is if I'm right expecting to get two textures copyed when the Copy Textures option is selected, and the mesh material' has two textures assigned... currently only the second texture is copyed.

Thanks :)
User avatar
boost
Greenskin
 
Posts: 112
Kudos: 0
Joined: 09 Jan 2006
Location: Barcelona; New Earth; Degova System

Postby reimpell » Thu Nov 09, 2006 10:52 am

boost wrote:It's path has been added to system PATH variable (checked opening a dos box) and I have choosen Auto in the exporter preferences (and checked XMLConverter button of course).
Many thanks for the trouble report! I haven't tested this on Windows, maybe I need to add the ".exe" extension to the call.
boost wrote:The Manual setting didn't worked, I get a line in log saying the converter is being executed but it doesn't occurs.
Do you call it with or without ".exe" extension?
boost wrote:Another thing I would like to ask, is if I'm right expecting to get two textures copyed when the Copy Textures option is selected
The script tries to copy every texture mentioned in the exported .material file. However, Blender's way of storing the external texture location is, at least in my opinion, suboptimal and the exporter fails unpredictable. If it fails, you should get a warning in the export log.

I will test all operating system dependent code on Windows next week and post an update on these issues.
reimpell
OGRE Contributor
OGRE Contributor
 
Posts: 570
Kudos: 0
Joined: 01 Mar 2004
Location: Hamburg, Germany

Postby boost » Fri Nov 10, 2006 3:53 am

thanks for your fast reply :)

I call the converter including the .exe extension.

About the texture copying issue, after looking at the .material file I realised the exporter didn't include the second texture in the file, I guess that's why it doesn't gets copyed.

Both textures have 'map to' set to UV, dunno if this may be a problem.

Just in case it may help the blender file can be found here.
User avatar
boost
Greenskin
 
Posts: 112
Kudos: 0
Joined: 09 Jan 2006
Location: Barcelona; New Earth; Degova System

Postby reimpell » Fri Nov 10, 2006 10:59 pm

boost wrote:Both textures have 'map to' set to UV, dunno if this may be a problem.
Many thanks for the file. I'll add support for multiple image textures per material as soon as possible. Please edit your material file by hand in the meanwhile.
reimpell
OGRE Contributor
OGRE Contributor
 
Posts: 570
Kudos: 0
Joined: 01 Mar 2004
Location: Hamburg, Germany

Postby boost » Sat Nov 11, 2006 1:27 am

ok, thanks a lot for your support Reimpell :)
User avatar
boost
Greenskin
 
Posts: 112
Kudos: 0
Joined: 09 Jan 2006
Location: Barcelona; New Earth; Degova System

Postby Stach » Sun Nov 12, 2006 1:22 pm

Hi again.

I got another issue : my model has a parent armature used for animation. The exporter seems to still use the old global system coordinates for the animation. For example, when I want my model to jump (bttom to top), it is going front and back...

My model and my armature local coordinates are oriented the same way, so it's not a synchrony problem.

Any idea ?
Stach
Gnoblar
 
Posts: 5
Kudos: 0
Joined: 09 Jun 2005
Location: Belfort (France)

Next

Return to Artists & Content Creators

Who is online

Users browsing this forum: No registered users and 0 guests