Axiom.Core.SceneManager.FindVisibleObjects C# (CSharp) Method

FindVisibleObjects() public method

Internal method which parses the scene to find visible objects to render.
If you're implementing a custom scene manager, this is the most important method to override since it's here you can apply your custom world partitioning scheme. Once you have added the appropriate objects to the render queue, you can let the default SceneManager objects RenderVisibleObjects handle the actual rendering of the objects you pick.

Any visible objects will be added to a rendering queue, which is indexed by material in order to ensure objects with the same material are rendered together to minimise render state changes.

public FindVisibleObjects ( Camera camera, bool onlyShadowCasters ) : void
camera Camera
onlyShadowCasters bool
return void
		public virtual void FindVisibleObjects( Camera camera, bool onlyShadowCasters )
		{
			// ask the root node to iterate through and find visible objects in the scene
			this.rootSceneNode.FindVisibleObjects( camera,
												   this.GetRenderQueue(),
												   true,
												   this.displayNodes,
												   onlyShadowCasters );
		}
SceneManager