Jump to content
  • Advertisement
Sign in to follow this  
EmptyVoid

Am I doing this right?

This topic is 3708 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have a object oriented quadtree where each node has 4 child nodes and a 4x4 matrix that tells where to place a chunk and the size of the chunk. Then when I want to render the terrain I basically say render(root) the render command checks to see if the node is to close to the camera. If it is then it tells all the child nodes to do that command and if it's not it tells it to render to the screen with a (33*33)vertex buffer and a index buffer that is based on the node's adjacent nodes levels but how would I find the level of each adjacent node in a quadtree? Am I doing this right or does the way I'm processing the data make it imposable to get the adjacent's level for each node?

Share this post


Link to post
Share on other sites
Advertisement
What do you call an "adjacent node" ? Do you mean the largest nodes which share an edge with your node, or the smallest nodes which share an edge with your node?

Share this post


Link to post
Share on other sites
Quote:
Original post by ToohrVyk
What do you call an "adjacent node" ? Do you mean the largest nodes which share an edge with your node, or the smallest nodes which share an edge with your node?


I mean the adjacent nodes that are being rendered.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!