It is my understanding that when the volume of a NodeCore changes that core
needs to tell all parent nodes that it's volume has changed using
invalidateVolume.

So when you want the parent Nodes of a NodeCore to update their volumes use
something like this:

void DerivedFromMaterialDrawable::handleVolumeChanged(void)
{
    for(UInt32 i(0); i < getParents().size(); ++i)
    {
        getParents()[i]->invalidateVolume();
    }
}

On Fri, Nov 19, 2010 at 5:53 AM, Pablo Carneiro Elias
<pablo.c...@gmail.com>wrote:

> Hi all,
>
> I have a custom opensg component that inherits from MaterialDrawable and
> I've implemented adjustVolume for this component but its only called once at
> the beggining, and never further... I want to update the volume
> and I'm calling updateVolume for that node but nothing happens (I've put
> printf messages and they never print again except when the scene builds)..
>
> Any clue? How to force a volume update? I've also tried setStatic( false )
> but nothing has happened...
>
>
> Thanks.
>
> Pablo
>
>
> ------------------------------------------------------------------------------
> Beautiful is writing same markup. Internet Explorer 9 supports
> standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
> Spend less time writing and  rewriting code and more time creating great
> experiences on the web. Be a part of the beta today
> http://p.sf.net/sfu/msIE9-sfdev2dev
> _______________________________________________
> Opensg-users mailing list
> Opensg-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/opensg-users
>
>
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
Opensg-users mailing list
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to