Game Development Community

DTS Quick Export worked for me, but not regular Torque Export

by Steve Lewis · in Artist Corner · 07/09/2006 (3:43 pm) · 2 replies

I've got Win98, Blender 2.41 (default install path), Python 2.4. And I followed Nigel's video after copying the DTSExporter_90 python scripts (first I just tried running that .js script, but then later I manually unzipped and copied the DTSPython + .py files to the Blender script folder myself)

In the Blender File|Export menu, I get both Torque Shape and Torque Shape Quick Exporter.

My child/parent object relationships look right to me (identical to the lines shown in the Outliner window in Nigel's video).

If I pick the regular "Torque Shape", I don't get that Export|Configure context menu like in Nigel's video. All it does is at the bottom of the Blender window, it changes to some "Script" display, and my ico.log file contains the following:

Torque Exporter 0.9
Using blender, version 241
Using unaccelerated math code, performance may be suboptimal
**************************
Processing Scene...
Cleaning Preference Keys



But, if I pick the Torque Shape Quick Export, it seems to work like in Nigel's video (just I don't have to pick Export). The color changes at the top of the Blender window where it shows that export progress bar, and I get an ico.dts file that looks ok in the Torque Showtool. The ico.log looks like this:

Torque Exporter 0.9
Using blender, version 241
Using unaccelerated math code, performance may be suboptimal
**************************
Processing Scene...
Cleaning Preference Keys
Exporting...
Writing shape to 'C:\Program Files\Blender Foundation\Blender\.blender\ico.dts'.
Processing...
> Shape Details
> Nodes
^^ Bone [Exp-Catch-Root] (parent -1)
> Objects
'Sphere' : Standard
> Materials
> Detail Levels
Detail-1 (size : 32)
Smallest : Detail-1 (size : 32)
> Internal Sequences
Writing out DTS...
Done.
Finished.




Any ideas why the regular export script isn't working for me?

#1
07/09/2006 (6:04 pm)
Think I figured it out -- when I do a regular Torque Shape export, it doesn't (for me) do the Export|Configure popup menu. Instead, at the bottom window in Blender, it switches to the Script menu. If I enlarge this bottom window, I can see a set of bottons: Sequences, Armatures, General, About, Export. If I click the Export button, then it does the Export command.



Now I'm having problems with the materials demo. I followed Nigel's video. I created my own test.png image using GIMP. Everything looks correct in Blender (visually), as I setup the child/parent linkages (the Cube linked to Detail32 linked to Shape), did the export. My testcube.log file looks ok, it says:

Torque Exporter 0.9
Using blender, version 241
Using unaccelerated math code, performance may be suboptimal
**************************
Processing Scene...
Cleaning Preference Keys
Exporting...
Writing shape to 'C:\Program Files\Blender Foundation\Blender\.blender\testcube.dts'.
Processing...
> Shape Details
> Nodes
^^ Bone [Exp-Catch-Root] (parent -1)
> Objects
'Cube' : Standard
> Materials
test
> Detail Levels
Detail-1 (size : 32)
Smallest : Detail-1 (size : 32)
> Internal Sequences
Writing out DTS...
Done.
Finished.
Exporting...
Writing shape to 'C:\Program Files\Blender Foundation\Blender\.blender\testcube.dts'.
Processing...
> Shape Details
> Nodes
^^ Bone [Exp-Catch-Root] (parent -1)
> Objects
'Cube' : Standard
> Materials
test
> Detail Levels
Detail-1 (size : 32)
Smallest : Detail-1 (size : 32)
> Internal Sequences
Writing out DTS...
Done.
Finished.



But when I load my testcube.dts into the Torque Showtool, I see the cube, but no materials on the cube faces. I just get a blank white cube. I have the Showtool in the "texture Shaded Solid" mode.

Anyone have any ideas about this one? Maybe I'll try a jpeg or gif instead of a PNG file...
#2
07/09/2006 (8:08 pm)
Hmm, I tried changing my image to be size 128x128 instead of 80x80 (i.e. change its size to being a power of 2). That didn't seem to help. Then I found a version 0.91 of the Blender DTS Exporter at

http://projects.blender.org/projects/torqueexporter

Closed Blender and installed this version, re-exported, etc. Now the Torque Showtool is showing my material image on the faces of the cube. So far so good :)