peanutpig
peanutpig

Reputation: 1

Calculate model BoundingBox in osgEarth

I want draw a model BoundingBox in osgEarth, but position is not suitable.

osg::ComputeBoundsVisitor boundVisitor;

node->accept(boundVisitor);

osg::BoundingBox boundingBox = boundVisitor.getBoundingBox();

osg::Matrixd localToWorld = osg::computeLocalToWorld(paath);

Now the bounding box model is perpendicular to the ground, but the direction is wrong.

Upvotes: 0

Views: 118

Answers (1)

Glenn Waldron
Glenn Waldron

Reputation: 165

It will be helpful if you:

  • Post the rest of the code used to position your box
  • Include a screenshot of the problem
  • Explain what you are expecting to see

Thanks!

Upvotes: 0

Related Questions