Blog

Viewing posts for the category Python

Python Script to build a Texture Page or Sprite Sheet

Why pack textures/images?

If you're making a game then it's more efficient to tell the hardware:

Using Python and Tkinter to capture script output

In order to build the assets for my games I have a series of python scripts that know how to take files TexturePacker, Tiled, and Blender and build them for use within the engine. My main platform is OS X and it has good terminal support and more importantly I am comfortable working with the terminal. The artist I work with is not so comfortable and he works on Windows where cmd.exe is painfully outdated and basically useless.

NvStrip and Blender – Stripifying Models for the iPhone/iPad.

What Is Stripification?

Stripification is the process of turning lists of triangles in an arbitrary order into as many lists of triangles that contain adjacent edges. There is a great explanation of a triangle strip of wikipedia.

A Pythonic "Center New" in Blender

Part of my Art pipeline for Tentacles is to import a directory of 3DS files. Each of these files is a map piece and the map pieces are instanced to create a map. That way I can store the geometry for a shack once but instance it across the level many times with a unique transform (scale, translation and rotation).

Replaying an Apache Logfile with Python

NOTE: This is an old article I wrote in October 2008, it's still relevant today. It was originally posted on luckydonkey.com which I am in the process of retiring.