lod_group nodes now have a reference point attribute, enabling use of lod_groups containing objects with a centre that is not at the pivot point of the lod_group node.

Numerous small bug fixes.
This commit is contained in:
2013-04-04 16:09:29 -07:00
parent 16c8523a40
commit 4a4eac57a4
11 changed files with 126 additions and 29 deletions

View File

@@ -28,10 +28,16 @@ public:
void setMinDistance(float min_distance);
void setMaxDistance(float max_distance);
const KRVector3 getReferencePoint();
void setReferencePoint(const KRVector3 &referencePoint);
const KRVector3 getWorldReferencePoint();
private:
bool getLODVisibility(const KRViewport &viewport);
float m_min_distance;
float m_max_distance;
KRVector3 m_referencePoint; // Point of reference, used for distance calculation. Usually set to the bounding box center
};