Original Post
I have a ROAM implementation. I want to implement a correct far to near visibility ordering. Here is how I am currently doing it:
I start with the root nodes, I simply determine which node I am in. I render the other one first. As I traverse the tree I:
1. Take the current isoscelese right triangle. I treat the imaginary line which runs down the triangle from the apex to the midpoint of left/right vertices as a plane of 2 dimensions. I am assuming Y values should not matter.
2. Now I simply take the imaginary line and determine which side I lie on. If I lie on the side representing the left child of the original triangle, then I render the right child first, otherwise I render the left first.
This is not working. What's the typical method for visibility ordering in ROAM type datastructures?
[edited by - haro on March 29, 2004 4:13:06 AM]