This is a project I worked on my freetime.
Consists of three stuff:
HLSL Shader, MEL Script and MLL Plugin
What it does is this:
Calculate amount of pixels needed, build an array that will hold the colors.
Calcualte delta vectors and weight colors and send it off to a plugin I wrote for maya in c++, the plugin saves out a targa instantly.
Once the texture is saved by the plugin, the computer starts off to calculate a second UV coordinate for the mesh that will match the colors outputted in the same order. It also offsets the UVs so texels allign in DX9 by a half pixel. The texture is 60x60 pixels after photoshop resize to fix missmatching of UV to Pixel. The shader is very simple and very efficent and 90% of the work is at production time.
Thanks for watching
Link to this comment:
All Comments (0)