This utilises code by Avan Madisen posted in the follwing thread for generating 3d textures. Thanks matey.
http://forum.thegamecreators.com/?m=forum_view&t=68590&b=6
In the above, a texture is generated for a sphere.
In this, it uses an arbitrary mesh, rendering the texture for each triangle in the mesh onto the uv map loaded with the object. The texture is saved out as a bitmap at the end.
You can give it whatever mesh and it will generate the appropriate texture. You need to do the uv map first- i used lithunwrap. You should make sure that parts of the object do not overlap in uv space.
A nice thing with using a specified uv map is that you can add this effect as a layer over another texture in photoshop etc.
You can watch the object get textured as the uv map is drawn. It takes a while to do- perhaps i can speed it up with the "pointer" bitmap stuff rather than "dot"
Also, i'm pretty sure that software must already exist to do what this does and much better. If someone can sort me out with a link to something that's be nice.
You'll be able to click on this someday.