0
$\begingroup$

Bablylon.js has a exporter plug-in for Blender. Works great, but some of the models that I get from turbosquid have TGA based textures. Since WebGL needs textures in JPG, PNG, or other web friendly formats, I am forced to convert hunderds of TGA or BMP textures by hand to JPG or PNG.

Does anyone have a batch way of doing this?

(also I am specifically looking for suburban scenes such as: http://www.turbosquid.com/3d-models/housing-development-rt-3d-model/760773

But they do their trees as two-intersecting planes (great for Max 3DS). But WebGL engines like sprites. So I also need a way to convert those artifacts..

(see below for the tree meshes that will not work in WebGL):

enter image description here

$\endgroup$
  • 1
    $\begingroup$ you can batch convert stuff with photoshp. i assume gimp has a similar feature. $\endgroup$ – blackdot Sep 21 '15 at 22:14
  • $\begingroup$ Yes, I have photoshop, but this would not handle all the references in the x.blend file to the .tga files. $\endgroup$ – Dr.YSG Sep 22 '15 at 0:29
1
$\begingroup$

There is an addon to batch convert image files with blender.

After installing the addon, the usage is simple:

  1. Tell the addon where the folder of images is (must contain only the images to convert)
  2. Give it a output folder
  3. Set the render settings correctly (you will want PNG)
  4. Click the Batch convert button.

To keep the original file sizes, check the Keep Original Resolution check box in the Batch Converter settings in the tool shelf.
batch convert settings

$\endgroup$
  • $\begingroup$ That looks good. I hope it also handles the texture references. But it asks that all the file outputs have the same dimension. However my input texture files are all different sizes. $\endgroup$ – Dr.YSG Sep 22 '15 at 0:31
  • $\begingroup$ @Dr.YSG see my edit. As to the file path for each model's textures. Nope, this addon will not. It is possible to write a script to do that, but out of the scope of the batch image converter. $\endgroup$ – David Sep 22 '15 at 1:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.