Blender BZW Export Plugin

General talk about the map making process.
Post Reply
User avatar
TD-Linux
Sergeant
Sergeant
Posts: 724
Joined: Wed Apr 27, 2005 8:26 pm
Location: Mountain View, CA

Blender BZW Export Plugin

Post by TD-Linux »

I wrote a plugin for Blender 2.69+ for exporting maps. It is similar to modeltool, but is a bit more convenient.

Installation
  • Download the bzw_export.py file and save it anywhere.
  • Open up Blender, and choose File > User Preferences.
  • Choose Addons > Install from File... and open the file you saved previously.
  • Choose Save User Preferences to load the addon every time you open blender.
Textures

Textures work but need to be UV mapped. Any BZFlag builtin texture will work as long as it is named after the file. For textures on images.bzflag.org, you can set the URL. On the Textures panel, scroll down to Custom Properties and click Add. Then click Edit, and set the property name to bz_url. Set the property value to your URL.

Image

Bugs
  • Parenting will currently generate an incorrect transform.
  • Non-manifold objects will have problems with physics. Ctrl-alt-shift-M will find nonmanifold vertices in a mesh.
  • Flat surfaces will display "sealed" sometimes due to precision errors. Try applying rotation & scale via Ctrl-A to any objects that exhibit this problem. BZFlag requires drivable surfaces to be *exactly* flat, to the single bit.
Changelog

0.3 - Fix exporting without UV maps, again.
0.2 - Fix exporting files without UV maps. Export only active texture slots. Don't export non-image textures. Round vertices to 5 decimal places, and spin angles to 3 decimal places.
0.1 - Initial release.

Download

Always latest version (right click, save as)

https://raw.githubusercontent.com/tdaed ... _export.py
Last edited by TD-Linux on Fri Jul 04, 2014 8:05 pm, edited 4 times in total.
User avatar
blast
General
General
Posts: 4931
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Re: Blender BZW Export Plugin

Post by blast »

Since the linked file lacks any reference to what license it is released under:
https://raw.githubusercontent.com/tdaed ... er/LICENSE
"In addition to knowing the secrets of the Universe, I can assure you that I am also quite potty trained." -Koenma (Yu Yu Hakusho)

Image
Post Reply