Forums WoW Modding Support Archives WoWModding Support Archives [DiscordArchive] So, apparently I have a skin section/sub mesh that I can't link to a batch because it has an unusual

[DiscordArchive] So, apparently I have a skin section/sub mesh that I can't link to a batch because it has an unusual

[DiscordArchive] So, apparently I have a skin section/sub mesh that I can't link to a batch because it has an unusual

rektbyfaith
Administrator
0
01-22-2025, 12:06 AM
#1
Archived author: MeFisto94 • Posted: 2025-01-22T00:06:08.495000+00:00
Original source

So, apparently I have a skin section/sub mesh that I can't link to a batch because it has an unusual id, but it doesn't look like padding data either:
```rust
&m2.name = "HumanMale"
sub_mesh = M2SkinSection {
skinSectionId: 702,
Level: 0,
vertexStart: 1095,
vertexCount: 14,
indexStart: 3726,
indexCount: 42,
boneCount: 60,
boneComboIndex: 60,
boneInfluences: 1,
centerBoneIndex: 16,
centerPosition: C3Vector {
x: 0.034355257,
y: -0.0003659097,
z: 1.8818184,
},
sortCenterPosition: C3Vector {
x: 0.034355257,
y: -0.0003659097,
z: 1.8818184,
},
sortRadius: 0.092365086,
}
```

But then, humans/characters aren't what I can reasonably support at the moment anyway, so maybe just treating this error as non critical?
rektbyfaith
01-22-2025, 12:06 AM #1

Archived author: MeFisto94 • Posted: 2025-01-22T00:06:08.495000+00:00
Original source

So, apparently I have a skin section/sub mesh that I can't link to a batch because it has an unusual id, but it doesn't look like padding data either:
```rust
&m2.name = "HumanMale"
sub_mesh = M2SkinSection {
skinSectionId: 702,
Level: 0,
vertexStart: 1095,
vertexCount: 14,
indexStart: 3726,
indexCount: 42,
boneCount: 60,
boneComboIndex: 60,
boneInfluences: 1,
centerBoneIndex: 16,
centerPosition: C3Vector {
x: 0.034355257,
y: -0.0003659097,
z: 1.8818184,
},
sortCenterPosition: C3Vector {
x: 0.034355257,
y: -0.0003659097,
z: 1.8818184,
},
sortRadius: 0.092365086,
}
```

But then, humans/characters aren't what I can reasonably support at the moment anyway, so maybe just treating this error as non critical?

rektbyfaith
Administrator
0
01-22-2025, 12:12 AM
#2
Archived author: Titi • Posted: 2025-01-22T00:12:30.670000+00:00
Original source

you're not using the right id, also probably stick to the other channels ? this isn't exactly reverse engineering
rektbyfaith
01-22-2025, 12:12 AM #2

Archived author: Titi • Posted: 2025-01-22T00:12:30.670000+00:00
Original source

you're not using the right id, also probably stick to the other channels ? this isn't exactly reverse engineering

rektbyfaith
Administrator
0
01-22-2025, 12:13 AM
#3
Archived author: Titi • Posted: 2025-01-22T00:13:44.151000+00:00
Original source

<#408013572430626817> maybe
rektbyfaith
01-22-2025, 12:13 AM #3

Archived author: Titi • Posted: 2025-01-22T00:13:44.151000+00:00
Original source

<#408013572430626817> maybe

rektbyfaith
Administrator
0
01-22-2025, 12:15 AM
#4
Archived author: Titi • Posted: 2025-01-22T00:15:19.058000+00:00
Original source

the 702 id isn't to link to batches, it's used for DBC stuff to link displays, you'll get to that in the future with character models.
rektbyfaith
01-22-2025, 12:15 AM #4

Archived author: Titi • Posted: 2025-01-22T00:15:19.058000+00:00
Original source

the 702 id isn't to link to batches, it's used for DBC stuff to link displays, you'll get to that in the future with character models.

rektbyfaith
Administrator
0
01-22-2025, 12:21 AM
#5
Archived author: MeFisto94 • Posted: 2025-01-22T00:21:06.288000+00:00
Original source

Yeah, tool development fits a bit better, I guess
rektbyfaith
01-22-2025, 12:21 AM #5

Archived author: MeFisto94 • Posted: 2025-01-22T00:21:06.288000+00:00
Original source

Yeah, tool development fits a bit better, I guess

rektbyfaith
Administrator
0
01-22-2025, 12:21 AM
#6
Archived author: Titi • Posted: 2025-01-22T00:21:13.876000+00:00
Original source

iirc batches are linked to submeshes by the batch's `skinSectionIndex` .
this batch has 61 so it means it goes with submesh #61 in the array
[Image: image.png?ex=690c92b9&is=690b4139&hm=97a...f47b40263&]

[Image: image.png?ex=690c92b9&is=690b4139&hm=c06...5639d02a5&]
rektbyfaith
01-22-2025, 12:21 AM #6

Archived author: Titi • Posted: 2025-01-22T00:21:13.876000+00:00
Original source

iirc batches are linked to submeshes by the batch's `skinSectionIndex` .
this batch has 61 so it means it goes with submesh #61 in the array
[Image: image.png?ex=690c92b9&is=690b4139&hm=97a...f47b40263&]

[Image: image.png?ex=690c92b9&is=690b4139&hm=c06...5639d02a5&]

rektbyfaith
Administrator
0
01-22-2025, 12:22 AM
#7
Archived author: MeFisto94 • Posted: 2025-01-22T00:22:05.287000+00:00
Original source

Oh, so it's about the array position. I tried to compare the skinSectionIndex from both the sub mesh and the batch basically. (And especially iterate over the submeshes and pick the matching batch, which is proibably still wrong)
rektbyfaith
01-22-2025, 12:22 AM #7

Archived author: MeFisto94 • Posted: 2025-01-22T00:22:05.287000+00:00
Original source

Oh, so it's about the array position. I tried to compare the skinSectionIndex from both the sub mesh and the batch basically. (And especially iterate over the submeshes and pick the matching batch, which is proibably still wrong)

rektbyfaith
Administrator
0
01-22-2025, 12:22 AM
#8
Archived author: MeFisto94 • Posted: 2025-01-22T00:22:25.779000+00:00
Original source

alright, that's enough to try out and if I fail, I'll <#408013572430626817> tomorrow evening I guess
rektbyfaith
01-22-2025, 12:22 AM #8

Archived author: MeFisto94 • Posted: 2025-01-22T00:22:25.779000+00:00
Original source

alright, that's enough to try out and if I fail, I'll <#408013572430626817> tomorrow evening I guess

rektbyfaith
Administrator
0
01-22-2025, 12:29 AM
#9
Archived author: Titi • Posted: 2025-01-22T00:29:54.430000+00:00
Original source

you will encounter cases where there are more batches than submeshes. multiple batches can point to the same submesh
[Image: image.png?ex=690c94c2&is=690b4342&hm=53f...d9d820f7d&]
rektbyfaith
01-22-2025, 12:29 AM #9

Archived author: Titi • Posted: 2025-01-22T00:29:54.430000+00:00
Original source

you will encounter cases where there are more batches than submeshes. multiple batches can point to the same submesh
[Image: image.png?ex=690c94c2&is=690b4342&hm=53f...d9d820f7d&]

rektbyfaith
Administrator
0
01-22-2025, 12:30 AM
#10
Archived author: Titi • Posted: 2025-01-22T00:30:09.476000+00:00
Original source

that's how you have multiple materials*(not textures) *per submesh
rektbyfaith
01-22-2025, 12:30 AM #10

Archived author: Titi • Posted: 2025-01-22T00:30:09.476000+00:00
Original source

that's how you have multiple materials*(not textures) *per submesh

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