pmartz / jag-3d

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

Bounds computation: incorrect bound center #27

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Bounds computation currently does a simple "expandBy" around each sub-volume. 
The resulting bound has the center of the first subvolume bound. This is 
incorrect.

Using OSG as a guideline, the average center of all subvolumes should be 
computed first, then a new bound created using that center. Then that volume 
should be expanded by all children. This will result in the correct bound 
center.

Currently, the transparency example reproduces this issue: rotation is not 
around the center of the scene, but it would be if the bound center were 
computed correctly.

Original issue reported on code.google.com by SkewMat...@gmail.com on 9 Jun 2013 at 4:26

GoogleCodeExporter commented 9 years ago

Original comment by abry...@gmail.com on 17 Jun 2013 at 8:46

GoogleCodeExporter commented 9 years ago
Several issues with bounds computation have been addressed in current main 
branch tip.

Note that bounds computation is currently broken in some specific cases due to 
an issue in GMTL. See this ticket: https://sourceforge.net/p/ggt/patches/5/

Original comment by SkewMat...@gmail.com on 26 Jun 2013 at 10:00