Modcraft - The community dedicated to quality WoW modding!

Content creation => Modelling and Animation => Topic started by: Magnus on February 23, 2015, 06:24:56 pm

Title: BoundingBox in GameObjectDisplayInfo, what is it for ?
Post by: Magnus on February 23, 2015, 06:24:56 pm
Hi

When I add some new display models in GameObjectDisplayInfo.dbc I always copy the bounding box vectors from an existing record.

The models seems to work for me, regardless of the values of this bounding box.

My question:
What is this bounding box for and how does it affect the game ? And if it is important, how do I have to calculate it ?
Title: Re: BoundingBox in GameObjectDisplayInfo, what is it for ?
Post by: schlumpf on February 23, 2015, 07:04:12 pm
probably culling. just take the values from the models themselves.
Title: Re: BoundingBox in GameObjectDisplayInfo, what is it for ?
Post by: Magnus on February 23, 2015, 08:55:20 pm
Ok, if it´s f.ex. for frustum culling, it's also maybe not so critical.

But from where I would get these values? I select a model in Noggit, see the path and modelname and make an new id in GameObjectDisplayInfo.
Title: Re: BoundingBox in GameObjectDisplayInfo, what is it for ?
Post by: Amaroth on February 23, 2015, 08:58:48 pm
As far as I know when you leave 0s there model's base hardcoded values will be used.
Title: Re: BoundingBox in GameObjectDisplayInfo, what is it for ?
Post by: schlumpf on February 23, 2015, 09:36:52 pm
M2: http://pxr.dk/wowdev/wiki/index.php?title=M2/WotLK (http://pxr.dk/wowdev/wiki/index.php?title=M2/WotLK" onclick="window.open(this.href);return false;), VertexBox in header.
WMO: http://pxr.dk/wowdev/wiki/index.php?tit ... MOHD_chunk (http://pxr.dk/wowdev/wiki/index.php?title=WMO#MOHD_chunk" onclick="window.open(this.href);return false;) bounding_box in MOHD
Title: Re: BoundingBox in GameObjectDisplayInfo, what is it for ?
Post by: Magnus on March 30, 2015, 04:45:24 pm
Just wanted to update the info:

The BoundingBox values seems indeed not to be important.  

But if you change on a Trinity Core the type from 13 (Map Object) to 33 (Destructible Building) buildings appears very smooth. There is near no difference between client objects and server side objects.

Didn't tested the effect on other objects like trees.
Title: Re: BoundingBox in GameObjectDisplayInfo, what is it for ?
Post by: Amaroth on March 30, 2015, 08:04:02 pm
By smooth appearing you mean that they don't just instantly "flash" out on your screen? I use client side spawn for every bigger model, but still quite good to know, especially for some other guys.
Title: Re: BoundingBox in GameObjectDisplayInfo, what is it for ?
Post by: Magnus on March 31, 2015, 09:01:23 am
That was what I meant. It doesn't pop up.