-
Notifications
You must be signed in to change notification settings - Fork 40
More robust room assignement, gate/room volumes export for navkit #247
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Mods/Editor/Src/EditorServer.cpp
Outdated
| const std::string s_TypePropertyName = "m_eType"; | ||
| const std::string s_GlobalSizePropertyName = "m_vGlobalSize"; | ||
| //Write the BBox info for the gates | ||
| auto* s_Entity0 = p_Entity.QueryInterface<ZGateEntity>(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we could rename this to something like s_Gate to make it easier to keep track of.
dbierek
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like we may want to double check the room logic, as well as the name and tblu values for gates and volume boxes.
The tblu values aren't actually used by NavKit so we could probably just leave those blank.
This should be fixes by the latest commit, missing room names were coming from dynamic entities and the ones outside of the room system (usually in "set pieces"). Naming is now more robust too, relying on the tree hashmap when the previous one retrieving the tblu too failed. |

-The previous FindRoomForEntity logic relied on the position of the entity to determine the room it belongs to. However, as spotted by @Notexe, this is not always reliable:


In the above screenshots, the entity gets assigned to the atrium room despite belonging to the "outside room". The new logic solves that by using the component hierarchy.
-Gates' and rooms' transforms are now exported to json too for further processing by navkit.
-The ZRoom and ZSparseBitArray edits are taken directly from @pavledev's fork, all credits to him for these.