[DiscordArchive] So I'm most of the way done with the _obj1 generator, it almost works, but there's either something
[DiscordArchive] So I'm most of the way done with the _obj1 generator, it almost works, but there's either something
Archived author: Varen • Posted: 2019-04-18T13:55:59.682000+00:00
Original source
So I'm most of the way done with the _obj1 generator, it almost works, but there's either something off with the maths for the bounding boxes, or i'm getting the wrong data.
The position is mostly right, but by the looks of it I'm either getting something off with the rotation, or the starting data I have for the models is actually wrong.
Does anyone have a remote clue of how the bounding boxes of the M2s are formatted? Are they oriented or are they just AABB as the ADT ones?
Archived author: -SeMGa! • Posted: 2019-04-18T14:16:45.877000+00:00
Original source
It's well described on the wiki on the adt page
Archived author: Varen • Posted: 2019-04-18T14:21:39.589000+00:00
Original source
<@270551838766399489> The adt page describes a decent amount of it, however what I'm trying to do is generate proper bounding boxes. The issue is that for Legion I need them for M2s as well, and these aren't as trivial as WMOs.
Archived author: Varen • Posted: 2019-04-18T14:22:07.314000+00:00
Original source
I figured I could just read the bbox from the .m2 file and use that, but it's off in all sorts of ways
Archived author: -SeMGa! • Posted: 2019-04-18T14:22:38.095000+00:00
Original source
You have to read that it's not just bb from m2
Archived author: -SeMGa! • Posted: 2019-04-18T14:24:20.137000+00:00
Original source
Can't link you the right chunk but you have to keep in mind scale, rotation and world pos(not sure about pos). Well. It must be on adt page anyway
Archived author: Varen • Posted: 2019-04-18T14:24:35.951000+00:00
Original source
Oh, I have done that
Archived author: -SeMGa! • Posted: 2019-04-18T14:24:51.303000+00:00
Original source
Well. Strange. It works for me
Archived author: Varen • Posted: 2019-04-18T14:24:53.059000+00:00
Original source
I've even gone and used an implementation of the glmatrix library
Archived author: Varen • Posted: 2019-04-18T14:25:01.617000+00:00
Original source
just to be sure I had the same logic as the adt page