[DiscordArchive] Maybe modifying the bounding box of the model (either the global one or animations ones) would chang
[DiscordArchive] Maybe modifying the bounding box of the model (either the global one or animations ones) would chang
Archived author: Lyswh • Posted: 2024-04-05T15:57:06.105000+00:00
Original source
Maybe modifying the bounding box of the model (either the global one or animations ones) would change the behaviour?
![[Image: image.png?ex=690c1e0d&is=690acc8d&hm=89f...c868f41a8&]](https://cdn.discordapp.com/attachments/415944535718494208/1225838215899119667/image.png?ex=690c1e0d&is=690acc8d&hm=89fd31a617a027624f82b3350c1f6767bf8c834eb3abb5932a5525fc868f41a8&)
Archived author: intra • Posted: 2024-04-05T16:03:25.677000+00:00
Original source
That's a great idea. I just tried creating to extra vertices to scale up the bounding box and that did fix it in-game. Now it doesn't seem to ever fade out.
I wish I understood why it sometimes happens to some m2s and not others. Maybe <@250706991515828224>, <@285139092516372480> or someone who has looked into the rendering code knows what's responsible for small m2s fading out so quickly (sorry for ping btw, just very curious to understand what's going on here )
![[Image: image.png?ex=690c1e0d&is=690acc8d&hm=89f...c868f41a8&]](https://cdn.discordapp.com/attachments/415944535718494208/1225838215899119667/image.png?ex=690c1e0d&is=690acc8d&hm=89fd31a617a027624f82b3350c1f6767bf8c834eb3abb5932a5525fc868f41a8&)
Archived author: Lyswh • Posted: 2024-04-05T16:04:47.590000+00:00
Original source
What i know is that wbs only exports the global one right now and exporta that one for the animations too, (it has the UI for importing "preset bounding boxes" (the original boundings per animations) but it's not implemented (it's not hard to implement tho)
Archived author: Deamon • Posted: 2024-04-05T16:07:18.341000+00:00
Original source
If it's Wrath client, it depends on bounding box indeed. Client has tricky system of buckets, m2 falls into bucket depending on it's size.
And the total amount of m2s rendered from each bucket is limited by bucket size, which is hardcoded iirc.
The variation though, I don't know if it's just bounding box or height of bounding box. And if it's bounding box from M2 header or bounding box of current animation playing (there is bounding box in M2Sequence)
Archived author: Deamon • Posted: 2024-04-05T16:07:59.266000+00:00
Original source
In later clients, I suspect this fade also is controlled by `NERF` chunk
Archived author: intra • Posted: 2024-04-05T16:08:23.357000+00:00
Original source
Thank you for clarifying!
Archived author: intra • Posted: 2024-04-05T16:12:27.305000+00:00
Original source
I went on to test by just increasing the bounding box height and that did increase render distance by some, but when I change width of the box as well the rendering distance seems to be much bigger (I guess that's an example of the different buckets you mentioned)