[Closed] Paging Textures and Uv's automatically
hi guys… wondering if this can be done with maxscript…
I have 4 models, each using a 256 x 256 texture map… i want to page these 4 textures into one 512 x 512…
ideally i am thinking of creating something that will automatically move the UV’s of the model in the first, second, third and fourth quad of the 512 texture… not only that, but the script should also be able to take the 4 256x maps and create a new 512 texture
any possibilities ?
abhi
This should be possible. You will need to either use the unwrap modifier or the texture vertex commands to modify the data. I personally prefer the unwrap since there are commands to scale and move rather than recalculating the position of every vertex based on scaling it down and moving it.
Basically you will need to take the data scale it to 25% and move it based off its [0.5, 0.5, 0.0] offset (i am guessing you are only dealing with UV space and not W coordinates) to a corresponding offset in one of the quadrants. My “Unwrap Seperate by ID” script may be of some help in the moving of your data.
You should be able to combine the texture maps as well, but I have no experience with building/combining bitmaps in Maxscript.
-Eric