Small utility to add color information to .x model files

Hi all,

Many of the meshes I work with contain only material information (maybe in combination with normal data). When you load these meshes in XNA and want to display them using a custom effect, this will not work because the vertices of the model don't contain any color information, and you would have to manually keep track of the materials to get things working.

I have created a very small utility that reads the color information from the material, and injects the color information into the vertices. For each subset of the model, the correct colors are retrieved from the corresponding material.

You can find it at the bottom of the download page of my site:

http://www.riemers.net/eng/downloads.php

[872 byte] By [riemerg] at [2007-12-27]