Forums WoW Modding Support Archives WoWModding Support Archives [DiscordArchive] like that one?

[DiscordArchive] like that one?

[DiscordArchive] like that one?

rektbyfaith
Administrator
0
08-11-2024, 01:31 PM
#1
Archived author: Supora • Posted: 2024-08-11T13:31:50.671000+00:00
Original source

like that one?
OBJ_to_ADT.jar
rektbyfaith
08-11-2024, 01:31 PM #1

Archived author: Supora • Posted: 2024-08-11T13:31:50.671000+00:00
Original source

like that one?
OBJ_to_ADT.jar

rektbyfaith
Administrator
0
08-11-2024, 01:33 PM
#2
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;
}
}
```
rektbyfaith
08-11-2024, 01:33 PM #2

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;
}
}
```

rektbyfaith
Administrator
0
08-11-2024, 01:34 PM
#3
Archived author: Supora • Posted: 2024-08-11T13:34:08.989000+00:00
Original source

with your template applied ofc
rektbyfaith
08-11-2024, 01:34 PM #3

Archived author: Supora • Posted: 2024-08-11T13:34:08.989000+00:00
Original source

with your template applied ofc

rektbyfaith
Administrator
0
08-11-2024, 01:34 PM
#4
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
rektbyfaith
08-11-2024, 01:34 PM #4

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

rektbyfaith
Administrator
0
08-11-2024, 01:35 PM
#5
Archived author: Supora • Posted: 2024-08-11T13:35:05.198000+00:00
Original source

rektbyfaith
08-11-2024, 01:35 PM #5

Archived author: Supora • Posted: 2024-08-11T13:35:05.198000+00:00
Original source

rektbyfaith
Administrator
0
08-11-2024, 01:35 PM
#6
Archived author: Supora • Posted: 2024-08-11T13:35:15.410000+00:00
Original source

then it'll fuck it up
rektbyfaith
08-11-2024, 01:35 PM #6

Archived author: Supora • Posted: 2024-08-11T13:35:15.410000+00:00
Original source

then it'll fuck it up

Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)