.uvw file format

.uvw file format

Anonymous
Not applicable
235 Views
0 Replies
Message 1 of 1

.uvw file format

Anonymous
Not applicable
Hi
Not sure if this is the right forum but it's my best guess.

I have knocked up a tool that can play with texture coordinates in a similar way to Unwrap UVW but has a few extra functions that I need. It is completely external to Max. I need to be able to write out a .uvw file that Max can then load back to the same model. I've searched hard but am unable to find any reference on the web so I resorted to working it out for myself - I thought I'd got there but if I try to load it into Max there is no complaint but it doesn't do anything, it's as if the load never happened. It's a binary file and this is the format I've worked out so far:


FFFFFFFFh some sort of header, always seem to be the same?
00000004h version number??? Always 4 when I save a file from Max 9

????????h 32 bit total number of uvw vertex

per vertex:
32 bit float U
32 bit float V
32 bit float W
00000000h no idea what this is, always zero
????????h 32 bits unknown, appears random

????????h 32 bit total number of faces

per face:
00000003h - perhaps the number of vertex?
32 bit vertex number 0 texture vertex index
32 bit vertex number 1
32 bit vertex number 2
32 bit facenumber
32 bit Material ID
????????h 32 bits unknown, appears random
32 bit vertex number 0 mesh vertex index
32 bit vertex number 1
32 bit vertex number 2
0 Likes
236 Views
0 Replies
Replies (0)