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

[Feature Request] Acceleration Data Structure (Kd-tree & Octree) #399

Open
ttnghia opened this issue Nov 19, 2019 · 3 comments
Open

[Feature Request] Acceleration Data Structure (Kd-tree & Octree) #399

ttnghia opened this issue Nov 19, 2019 · 3 comments

Comments

@ttnghia
Copy link
Contributor

ttnghia commented Nov 19, 2019

@mosra, is there any (or plan for adding) acceleration data structure such as Kd-tree and Octree? They are extremely useful.

@ttnghia ttnghia changed the title Acceleration Data Structure (Kd-tree & Octree) [Feature Request]Acceleration Data Structure (Kd-tree & Octree) Nov 19, 2019
@ttnghia ttnghia changed the title [Feature Request]Acceleration Data Structure (Kd-tree & Octree) [Feature Request] Acceleration Data Structure (Kd-tree & Octree) Nov 19, 2019
@Squareys
Copy link
Contributor

Hi @ttnghia !

I started exactly this quite some time ago: mosra/magnum-extras#1
Sadly didn't have time to finish it, and the last iteration required a rewrite of most of the code as performance was not great.

If you have experience with Octree APIs, maybe you want to have a look at that PR and give some feedback on whether it would be usable.

Best,
Jonathan

@mosra
Copy link
Owner

mosra commented Nov 20, 2019

Hi! Plans are (this is something definitely useful), time on my side isn't, because right now, for the immediately next release, I'm putting all my effort into #371 and then Vulkan, as that's what I got funding for. I'm struggling to even find time to merge your examples, sorry.

If you want to contribute (or pick up and continue the work @Squareys started ages ago), I'd be very happy. The extras repo is treated as a playground for new ideas, so this is where it could live and evolve. But even there it needs docs and a good coverage with automatic tests :)

@ttnghia
Copy link
Contributor Author

ttnghia commented Nov 20, 2019

Hi @ttnghia !

I started exactly this quite some time ago: mosra/magnum-extras#1
Sadly didn't have time to finish it, and the last iteration required a rewrite of most of the code as performance was not great.

If you have experience with Octree APIs, maybe you want to have a look at that PR and give some feedback on whether it would be usable.

Best,
Jonathan

@Squareys Sure, I will look into it sometime later. I have implemented octree/kdtree, not very efficient, but quite fast 😃

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

No branches or pull requests

3 participants