I found this bug while writing an engine which requires on the fly loading of resources. If a scenegraph resource is added and Horde3D::addNodes() is called on the resource after it has successfully loaded (but before any attached geometry resources are loaded) then those scene nodes created by addNodes() will have incorrect Bounding Boxes. When the Geometry resources are finally loaded, those incorrect Bounding Boxes will not be updated, meaning that the scene node will continue to be culled incorrectly.
I'm not sure of the best way to fix this. Either isResourceLoaded() should not return true until all geometry resources are loaded or the scene node should have their Bounding Boxes updated upon successful load its respective geometry resource.
|