pmartz / jag-3d

Automatically exported from code.google.com/p/jag-3d
0 stars 1 forks source link

Bad bounding volumes after BufferAggregationVisitor #34

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The jagmodel example runs the BufferAggregationVisitor and also computes a 
default view from the bounding volume. The default view for some models is 
incorrect, but if the BAV is commented out, the default view is correct.

Original issue reported on code.google.com by SkewMat...@gmail.com on 16 Aug 2013 at 3:33

GoogleCodeExporter commented 9 years ago
After aggregating buffers, the BAV marks all bounding volumes as dirty. This 
boils down to a setEmpty() call on every BoundOwner in the scene graph. 
setEmpty() was setting the empty flag, but this was inadequate. It also needed 
to clear the min/max/center/radius values. After correcting this, BAV no longer 
corrupts the bounding volumes.

Original comment by SkewMat...@gmail.com on 27 Aug 2013 at 3:26