Original Post
Hello
I am trying to implement a "simple" 3D engine. Currently i am using regular octrees (eight child of equal sizes)but I just pass to the renderer all the polys of nodes which intersect and inside the view frustum so my questions is as follows:
¿Is possible to use the Octree to render the polygons in a Front-To-Back order?
By other hand I am trying to implement a code to order the polys inside Octree SECTORS to render only the which are facing to the camera, so maybe someone have tested it.
My method is as follows:
Build a regular Octree to partition the World in sectors of equal sizes.
Then once the Octree is completed, I loop through all Octree SECTORS (nodes), and build a SOLID BSP tree for each sector that contain polys.
Then to render it I use octree to perform SECTOR - VIEW FRUSTUM test and when I need render my SECTOR I loop through the BSP stored in that sector to render only those polys which are facing the camera.
But to get this method rendered in a correct Front-to-back order I need traverse the Octree in FRONT-2-BACK order.
Please tell me if someone have tryied to implement somthing like this?
I really apprefciate any help about this, thx.