Hello,
Marcus Lindblom wrote:
> Pablo Carneiro Elias wrote:
>> Hi there, I've verified that OpenSG is building the bounding box of my
>> whole scene even if all objects are set to invisible (setActive( false )).
>
> Not being a core developer, SetActive()'s implementation is IMHO a bit
> of a hack as it alters the travmask, which can be used to selectively
> render pars of the scene graph.
yes, it is a backwards compatibility hack, originally there was only a
one bit travmask (i.e. active).
> It is correct that the volume calcs
> should not depend on the travmask, so that explains why you're getting
> this behaviour.
>
>> Is there a way of specifying that inactive nodes should not make part of
>> the bounding box of parent objects?
>
> Not directly AFAIK (but there might be a way).
>
> Another workaround is to call setEmpty(true/false) on a node when you
> change it's active status. That might do the trick.
yes, setting the volume of the nodes to empty and probably static too,
to prevent it from being modified, should work.
Hope it helps,
Carsten
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users