Skip to content
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

Investigate possible link between binary search trees in scenario BMSCD and scenario BMSNAV #244

Open
steven11sjf opened this issue Nov 28, 2024 · 3 comments
Assignees

Comments

@steven11sjf
Copy link
Contributor

Seem like very similar structures:

  • both have a rectangle to check if a point is in
  • the second value in the tree seems to have 0x8000 in it sometimes, which I think is pointing at polys similar to how navmesh with the inverse flag point at areas
  • the bmscd contains a bunch of room borders, which i think could be the "source" for the map? (both the bmsnav and the bmmap).
  • unsure what the material_attribute is but it changes along w/ points, could be something extrapolated to create the contained geometry?
@duncathan
Copy link
Contributor

btw these "binary search trees" you're talking about are probably octrees, which is a more specific and more concise name

@steven11sjf
Copy link
Contributor Author

btw these "binary search trees" you're talking about are probably octrees, which is a more specific and more concise name

Octrees are 8 square cubes right? These are closer to quadtrees, but I think they're generated based on subdividing the area of the areas or something. Unless I misunderstood how octrees work in Wikipedia. (Also I renamed it based on the bmscd files using bst instead of quadtree).

@duncathan
Copy link
Contributor

ah yeah if they're ignoring the Z axis they'd be quadtrees

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants