oct / quad tree quick Q

Started by
0 comments, last by Dwiel 22 years, 2 months ago
I have an octree sort of thing, but I can''t figure out how to keep my engine from drawing an object over again if it finds it in many nodes, a very large wall would do this for ex. Would you just have a draw tag on EVERY object, cycle throught each object and if it has a true value in the draw var then draw it? I just can''t think of any other way to do it. Is the previously mentioned example really how you do it? Thanx ahead! Zach Dwiel ~ Tazzeld
Advertisement
thats pretty much what you need to do...

at the start of each frame, set all your tags to false. Then, as you traverse the tree, set the tag of any nodes/objects found to be visible to be true (NOTE: i don''t render as i go, only check visibility). Finally, gather up all your visible objects/nodes and render them as a big fat batch

This topic is closed to new replies.

Advertisement