Horde3D http://horde3d.org/forums/ |
|
Delayed loading of scene graph resource causes wrong BB http://horde3d.org/forums/viewtopic.php?f=3&t=579 |
Page 1 of 1 |
Author: | Dark_Kilauea [ 11.12.2008, 00:58 ] |
Post subject: | Delayed loading of scene graph resource causes wrong BB |
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. |
Author: | marciano [ 14.12.2008, 23:06 ] |
Post subject: | Re: Delayed loading of scene graph resource causes wrong BB |
Thanks for reporting this. Yeah we need to think of a nice solution for this problem. One possibility could be that a SceneNode has an onUpdateResource( Resource *res) function and the resource manager a registry with listeners where model nodes could register for receiving geometry update events. But this is also not perfect... |
Author: | Dark_Kilauea [ 21.03.2009, 23:26 ] |
Post subject: | Re: Delayed loading of scene graph resource causes wrong BB |
For those with this problem, you can work around it by checking to see that the .geo file is fully loaded before adding the scenenode to the graph. |
Page 1 of 1 | All times are UTC + 1 hour |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |