[DiscordArchive] like that one?
[DiscordArchive] like that one?
Archived author: Supora • Posted: 2024-08-11T13:31:50.671000+00:00
Original source
like that one?
OBJ_to_ADT.jar
Archived author: Supora • Posted: 2024-08-11T13:33:51.260000+00:00
Original source
so a script like that should do the trick I guess
yet it might give not a perfect result
```
byte SumWeights, WeightDiff;
int i;
for(i = 0; i < M2_file.nVertices; i++)
{
CheckSum();
FileSave();
FileClose();
}
void CheckSum()
{
SumWeights = M2_file._Vertices[i].BoneWeight.Bone1 + M2_file._Vertices[i].BoneWeight.Bone2 + M2_file._Vertices[i].BoneWeight.Bone3 + M2_file._Vertices[i].BoneWeight.Bone4;
if( SumWeights < 255 )
{
WeightDiff = 255 - SumWeights;
M2_file._Vertices[i].BoneWeight.Bone1 += WeightDiff;
}
}
```
Archived author: Supora • Posted: 2024-08-11T13:34:08.989000+00:00
Original source
with your template applied ofc
Archived author: Supora • Posted: 2024-08-11T13:34:59.285000+00:00
Original source
oh, wait
could it be that some vertices have 0 weights on the model intentionally
Archived author: Supora • Posted: 2024-08-11T13:35:05.198000+00:00
Original source
Archived author: Supora • Posted: 2024-08-11T13:35:15.410000+00:00
Original source
then it'll fuck it up