Index: trunk/VUT/Ogre/include/OgreVisibilityTerrainSceneManager.h
===================================================================
--- trunk/VUT/Ogre/include/OgreVisibilityTerrainSceneManager.h	(revision 155)
+++ trunk/VUT/Ogre/include/OgreVisibilityTerrainSceneManager.h	(revision 156)
@@ -11,4 +11,6 @@
 #include "OgrePlatformQueryManager.h"
 #include "VisibilityManager.h"
+#include <OgreSolidBoundingBox.h>
+
 
 namespace Ogre {
@@ -123,5 +125,7 @@
 	ShadowTechnique mSavedShadowTechnique;
 
-	bool mRenderOnlyBoundingBoxes;
+	bool mRenderHierarchyNodes;
+
+	std::vector<SolidBoundingBox *> mSolidBoxes;
 };
 
Index: trunk/VUT/Ogre/include/OgrePlatformHierarchyInterface.h
===================================================================
--- trunk/VUT/Ogre/include/OgrePlatformHierarchyInterface.h	(revision 155)
+++ trunk/VUT/Ogre/include/OgrePlatformHierarchyInterface.h	(revision 156)
@@ -106,12 +106,5 @@
     bool IsBoundingBoxQuery();
 
-	/** Finds visible objects of hierarchy node using occlusion queries
-	@param node the current scene node
-	@param objs the visible objects
-	@param includeChildren if the children of current scene nodes should also be traversed
-	*/
-	/*virtual bool FindVisibleObjects(GtpVisibility::HierarchyNode *node,	
-									InfoContainer<GtpVisibility::MeshInfo> *visibleGeometry, 
-									bool includeChildren = false) = 0;*/
+
 protected:
 	/** Renders geometry 
@@ -126,9 +119,4 @@
 	*/
 	void DeleteQueries();
-	
-	/** Renders bounding box of specified node.
-		@param box the bounding box of the scene node to be rendered 
-	*/
-	void RenderBoundingBox(AxisAlignedBox *box);
 
 	/** Returns pointer to current renderable bounding box geometry.
@@ -138,10 +126,11 @@
 	/** A pass that prepares an occlusion query.
 		@remark disables depth write, colour write, lighting,
-		vertex and fragment program.
-	*/
+		vertex and fragment program.*/
 	//void SetOcclusionPass();
 
-	/** Returns pointer to current renderable half bounding box geometry.*/
-	//SolidHalfBoundingBox *GetSolidHalfBoundingBox();
+	/** Renders given bounding box.
+		@param box the bounding box of the scene node to be rendered 
+	*/
+	void RenderBoundingBox(AxisAlignedBox *box);
 
 	/** Renderable of an aabb.
Index: trunk/VUT/Ogre/include/OgreSolidBoundingBox.h
===================================================================
--- trunk/VUT/Ogre/include/OgreSolidBoundingBox.h	(revision 117)
+++ trunk/VUT/Ogre/include/OgreSolidBoundingBox.h	(revision 156)
@@ -9,5 +9,5 @@
 	no colors, and no lighting.
 */
-class SolidBoundingBox : public SimpleRenderable
+class __declspec(dllexport) SolidBoundingBox : public SimpleRenderable
 {
 public:
@@ -30,23 +30,24 @@
 
 protected:
-		/** 
-			Sets the material used for occlusion queries. 
-			@remark the material is called "Visibility/QueryMaterial" and
-			uses no lighting, no depth write, and no colours
-		*/
-		void SetOcclusionQueryMaterial();
-        /** Override this method to prevent parent transforms (rotation,translation,scale)
-        */
-		void getWorldTransforms( Matrix4* xform ) const;
-        /** @copydoc Renderable::getWorldOrientation */
-        const Quaternion& getWorldOrientation(void) const;
-        /** @copydoc Renderable::getWorldPosition */
-        const Vector3& getWorldPosition(void) const;
+	/** 
+		Sets the material used for occlusion queries. 
+		@remark the material is called "Visibility/QueryMaterial" and
+		uses no lighting, no depth write, and no colours
+	*/
+	void SetOcclusionQueryMaterial();
+
+	/** Override this method to prevent parent transforms (rotation,translation,scale)
+    */
+	void getWorldTransforms( Matrix4* xform ) const;
+    /** @copydoc Renderable::getWorldOrientation */
+    const Quaternion& getWorldOrientation(void) const;
+    /** @copydoc Renderable::getWorldPosition */
+    const Vector3& getWorldPosition(void) const;
 		
-        /** Builds the wireframe line list.
-        */
-		void setupBoundingBoxVertices(const AxisAlignedBox& aab);
+    /** Builds the wireframe line list.
+    */
+	void setupBoundingBoxVertices(const AxisAlignedBox& aab);
 
-        Real mRadius;
+    Real mRadius;
 };
 
