Game Development Community

Blender 2.5 fixes for T3D

by Tod · in Torque 3D Professional · 05/25/2010 (6:44 am) · 18 replies

After too many headaches trying to get models from Blender to export properly in Collada and directly into T3D without modifications, I decided to grab the latest blender SVN and fix the issues myself. With a little T3D spec guidance and some words of encouragement from Chris, I was able to hunt down and many of the collada issues for T3D.

1. Fixed multiple mesh object exports. For example, if you had a model with 2 mesh objects linked to an animation, only 1 mesh would show up in T3D. solved.

2. Fixed UV mapping disappearing. This was caused by the blender exporting X and Y for UV coords. T3D expects S and T, which is proper naming conventions per the collada spec.

3. Double sided textures. fixed.

4. Transparency added. Only works with T3D 1.1

5. Specular and Emmissive export fixed.

6. Updated to the latest SVN (5/28/2010)

7. Fixed export for animations with non keyed frames. This was accomplished by resampling all channels of the entire animation then exporting a fully keyed animation. (6/4/2010)


binary: Win32 Version
binary: Mac OSX 10.6 Version
source changes: DocumentExporter.cpp





#1
05/25/2010 (6:48 am)
Thank you for doing this - getting artwork through the entire workflow into torque is often a challenge and making these tools better makes torque better. I have a hard time expressing the frustration we have had since we started using TEGA getting our models from various 3d applications we have licensed over the years all the way into torque without problems.

Are you using Blender as a middle man to translate stuff into torque or is it your primary modeling application?
#2
05/25/2010 (7:05 am)
Well, as this is jut a hobby for me, I started a lot of years ago using just Milkshape and UVMapper Pro. I've since moved to Blender for most of my modeling. I really disliked blender 2.4x's interface. 2.5 has made a world of difference to me for usability. I have not tried Max (and probably wont), and have used Maya only briefly. The learning curve with those high end modelers is often pretty high (as is the cost).
#3
05/26/2010 (1:56 pm)
This is great news. I'm glad I checked the forums today. Thank you very much for investigating and fixing these issues!
#4
05/26/2010 (4:42 pm)
Well done. Tod. :)
#5
05/26/2010 (6:54 pm)
Oooo... very nice, thank you!
#6
05/26/2010 (7:12 pm)
Thanks Guys :-)

If anyone has issues downloading, let me know. Its on a 100mbps connection so there shouldn't be any issues at all.

I have a Mac version ready to roll too if there are any mac users out there.
#7
05/28/2010 (8:10 am)
I've updated blender to the latest SVN, also added/fixed some more exporter issues. Also added a Mac version. Top post contains new links.

Enjoy
#8
06/01/2010 (5:03 am)
Thank you so very much for this. Was starting to get tired of hand editing Collada files to make them work in either direction.
#9
06/06/2010 (8:35 am)
I've posted both a PC and Mac build with some more fixes. Resampled all channels of an animation before exporting to provide support for non keyed animations. Also updated to latest SVN. Links are in the first post.
#10
06/10/2010 (6:00 am)
Hi,

maybe it's because I'm not a Blender expert, but when I assign an image texture to the "initial Blender cube" and switch to textured rendering, the cube turns from grey to plain white. Switching to solid rendering, I can change the colour I assign, but also no image (which is clear).

How can I make the image texture visible?

Thanks!
#11
06/10/2010 (6:50 pm)
You need to assign a Texture to a Material, and assign that Material to the cube. Also, in the texture properties, under Mapping, switch the coordinates from 'generated' to 'UV'
#12
06/11/2010 (2:29 am)
Hmm... I see the material in the object tree, assinged to the cube, but the cube remains bright white.... strange!
#13
06/11/2010 (7:34 am)
Ok, I have made a quick video of UV mapping the cube and getting it into T3D. It is in its simplest form. If you want to add specular and stuff like that, then it is a little more involved because you need to setup the materials.

Very Simple UV Demo
#14
06/11/2010 (9:15 am)
I put together a much better demo of how to UV texture and apply properties like transparency and put the model into T3D. This should explain everything fairly good.

UV Demo
#15
06/14/2010 (8:16 am)
Thanks a lot!
#16
05/23/2011 (6:19 pm)
Would you mind reposting the videos? thanks
#17
08/28/2012 (8:33 am)
this work with 1.2 version?
#18
09/04/2012 (3:09 pm)
Yes it should. Links and video should all be online as well. Let me know if you have any issues