I am porting a large application from Alternativa to Away3D because the lack of documentation over there has become problematic. So far everything has gone well and my code is running okay in Away3d except for the fact that my models show serious z-sorting problems with faces fighting for a view.
I know that my code needs to generate BSP trees and I am trying to figure out how to use the BSPBuilder interface. My application generates non-trivial 3d models on the fly based upon user inputs so there is no way that I can use the prefab3d utility. For anyone that is interested my application manages 2d floorplans and creates 3d models of a building interactively. So far so good.
I have a set of Mesh objects. I go into the geometry of each Mesh and get the faces vector. I then put every Face into an array and pass that into the IBSPBuilder build() method. When I get the complete event I take the tree property of the IBSPBuilder and attempt to do an addChild of the tree to my scene. So far this doesn’t work. I get nothing in my scene.
Does anyone have a sample of some code that uses the BSPBuilder interface that can provide some assistance?
thanks very much in advance,
...bob klein…