Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Dynamic QuadTree

Author
Message
janbo
15
Years of Service
User Offline
Joined: 10th Nov 2008
Location: Germany
Posted: 5th Aug 2018 12:42 Edited at: 5th Aug 2018 12:44
I'm trying me on octrees, They are very usefull for Minecraft type of games or culling algorithms and used for all sort of performance gaining because an Octree is a binary tree with eight nodes and therefore fast to traverse.
You can apply recursion on it, never the less I'm stuck on combining the nodes back together.
If you already have some code for octrees or quadtrees or if you know a good tutorial I'm happy to learn from it.
There is one requirement, I want dynamically add and remove nodes from the tree and I cant wrap my head around adding them back together and removing the unnecessary nodes right now.

Thanks in advance and any comment is welcome



Move the camera with W,A,S,D, there is a sphere inside the cube which you can control with the arrow keys and remove/add a cube.
puzzler2018
User Banned
Posted: 5th Aug 2018 17:21 Edited at: 5th Aug 2018 17:23
Hi Janbo,

Thanks for this, I can see roughly what its trying to acheive and here is a little more on

Octree (2D) https://www.gamedev.net/articles/programming/general-and-gameplay-programming/introduction-to-octrees-r3529/

Wiki https://en.wikipedia.org/wiki/Octree

and

https://www.omicsonline.org/rendering-for-3d-animation-based-on-octree-jcsb.10000117.php?aid=1289

and

https://castle-engine.io/vrml_engine_doc/output/xsl/html/chapter.octree.html
Hope these help get you started, its a worth while shot at this for the Minecraft one we are doing

Login to post a reply

Server time is: 2024-09-30 19:18:48
Your offset time is: 2024-09-30 19:18:48