mosra / magnum-examples

Examples for the Magnum C++11 graphics engine
https://magnum.graphics/
The Unlicense
282 stars 95 forks source link

Octree #86

Closed ttnghia closed 4 years ago

ttnghia commented 4 years ago

Here is our new octree example 😈 @mosra, feel free to edit it. I could not think of a nicer teaser image. The simulation scene can be changed, such as the number of spheres, sphere size, sphere color etc.

octree

ttnghia commented 4 years ago

@mosra The code looks much better now 😃

ttnghia commented 4 years ago

I am curious to see this works in WebGL 😄

mosra commented 4 years ago

Thank you! The last unresolved comment is https://github.com/mosra/magnum-examples/pull/86/files#r441446247, about making it possible to switch and benchmark the bruteforce method at runtime -- just want to know your opinion on that, and I'm fine with doing that myself post-merge :)

ttnghia commented 4 years ago

Done. Frame profiling is kind of new to me :)

mosra commented 4 years ago

Merged in 5ff5175d9d5d820374108aa52355a7b65d0cf967, thank you! :)