ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   Wish List (https://www.esoui.com/forums/forumdisplay.php?f=177)
-   -   [outdated] Housing API Request or Question re: HousingEditorGetFurnitureWorldBounds (https://www.esoui.com/forums/showthread.php?t=8038)

Cardinal05 08/30/18 01:38 PM

[outdated] Housing API Request or Question re: HousingEditorGetFurnitureWorldBounds
 
It would be super useful for measuring, placing and aligning items if there were a version of the existing HousingEditorGetFurnitureWorldBounds function that could return the World Bounds for a furnitureId that is axis-aligned (pitch, yaw and roll of 0 radians). That way we could calculate the [near] perfect fit for adjacent of items regardless of their current orientation.

Also, if there is an existing way to do this, please let me know - I'd hugely appreciate it! At the moment, I have a batch job that runs prior to certain operations that literally cannot work without knowing the proper bounding box for items (such as Builds that aim to place items seamlessly for the player).

Unfortunately, my batch process is bulky, time consuming and requires aligning each unique item type to 0,0,0 pitch/yaw/roll, waiting for the move operation to finish, measuring the bounding box (with the aforementioned function) and then orienting the items back to their original positions.

Thank you so much!
@Cardinal05

sirinsidiator 08/30/18 03:01 PM

Isn't that what HousingEditorGetFurnitureLocalBounds should return? It should tell you how big the item is in it's local frame of reference.
What seems to be missing is a function GetFurnitureDataLocalBounds(furnitureDataId) to get the bounds of a furniture before it is placed. Otherwise you cannot position it perfectly right from the inventory. Or maybe I just didn't see it?

ZOS_ChipHilseberg 08/31/18 03:52 PM

Quote:

Originally Posted by sirinsidiator (Post 35916)
Isn't that what HousingEditorGetFurnitureLocalBounds should return? It should tell you how big the item is in it's local frame of reference.
What seems to be missing is a function GetFurnitureDataLocalBounds(furnitureDataId) to get the bounds of a furniture before it is placed. Otherwise you cannot position it perfectly right from the inventory. Or maybe I just didn't see it?

Unfortunately we don't know the model bounds without loading it.

Cardinal05 09/05/18 03:52 AM

Quote:

Originally Posted by ZOS_ChipHilseberg (Post 35926)
Unfortunately we don't know the model bounds without loading it.

Oh ok, no worries then. I wasn't sure if, from the client's code, there was the same limitation as I had or not in that regard. Thanks for the response! :)

Cardinal05 09/05/18 04:51 AM

Quote:

Originally Posted by sirinsidiator (Post 35916)
Isn't that what HousingEditorGetFurnitureLocalBounds should return? It should tell you how big the item is in it's local frame of reference.
What seems to be missing is a function GetFurnitureDataLocalBounds(furnitureDataId) to get the bounds of a furniture before it is placed. Otherwise you cannot position it perfectly right from the inventory. Or maybe I just didn't see it?

I just reread your original message and realized that I had misinterpreted it. I actually had no idea that's what this function did - I thought that it returned the bounding box's coordinates in a different unit measure relative to the current map location. Yay, then this is exactly what I needed - thank you Siri! <3


All times are GMT -6. The time now is 10:47 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI