Hi Luc,
I think the appropriate way to do this would be to extend the
CenterMode enum to something like:
enum CenterMode
{
USE_BOUNDING_SPHERE_CENTER,
USER_DEFINED_CENTER,
UNION_OF_BOUNDING_SPHERE_AND_USER_DEFINED
};
The actual enum name is a bit of awkward here as it really should be
BoundingVolumeMode or something similar as it's not just the center
that is being updated.
Thoughts?
Robert.
On Fri, Sep 9, 2011 at 11:12 AM, Luc Frauciel
<[email protected]> wrote:
> Hi,
>
> You'll find attached a new option that allow, when using LOD in
> USER_DEFINED_CENTER mode to expand the radius of the node by the radius of
> loaded objets.
> Motivation ;
> When using PagedLODs, you don't always know the real size of loaded
> children,
> If it occurs that they are out of predefined bounds, picking on the parts
> that are out of bound will fail
> They also can be culled out too soon.
> The problem often occurs with long object (roads).
> I've modified LOD and ProxyNode to include this option.
> I've also modified TxpPlugin, which already uses a similar mechanism to use
> this option instead of reimplementing computebounds()
>
> Patched against OSG 3.0 files
>
> Best regards,
>
> Luc
>
>
>
>
>
> _______________________________________________
> osg-submissions mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
>
>
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org