Original Post
I create a hierarchical scene graph, and bind a IDirect3DQuery9 object to each node 0 |---------| 1 4 |------| |------| 2 3 5 6 I use g_pDevice9->CreateQuery( D3DQUERYTYPE_OCCLUSION, &pquery ); to create each IDirect3DQuery9 object before rendering. In rendering, first block z-buffer and color-buffer writting, then issue query for boundig box of each node, according to the queried result, to draw this node or not. If I query individual node's occlusion information, I can get correct result, but if I query one more node, the query result of some node is zero ( sure it should not be zero!). If there is a maximum number restriction on occlusion query in D3D? thanks!