|
基于LOD的大规模真实感室外场景实时渲染技术的初步研究 part II&III(3) Begin Push the root node to the cur_Queue level = 0 Loop while Not reach the Full resolution { For Each Quad-Tree Node in Cur_Queue { If(Node is not inside the view frustum) { Simple Skip this Node } else if(level = Full Resolution level –1 ) { Draw The Node } else if( NodeCanSubdivid() and NodeNeedActive()) { Sub Divide this Node Set all four sub-node flag to VS_ACTIVE Push the for sub-node to the next_level_Queue } else { Disable The Node Set all four sub-node flag to VS_DISABLE Draw this Node }End if } End for Swap (cur_Queue,Next_level_Queue); level = next level }End Loop End Function
|