Hi, thanks for the quick reply. 

This is how I'm setting it, do I have to add a 
ComponentTransform::MatrixFieldMask to that?

void GHighlightMatrix::setScale(Vec3f scale) {

    beginEditCP(m_ct, ComponentTransform::ScaleFieldMask);
    {
        m_ct->setScale(scale);
    }
    endEditCP(m_ct, ComponentTransform::ScaleFieldMask);

    cout << m_ct->getMatrix() << endl;
}

Thanks again
Andrew


Gerrit Voß wrote:
> Hi,
>
> On Fri, 2010-03-19 at 01:11 +0000, Andrew Dunk wrote:
>   
>> Hi all,
>>
>> I am a bit confused with my ComponentTransform...
>> Below is a section of my scenegraph, the component transform does not 
>> effect any of my geometry.
>> If I change the componentTransform for a Transform it does what I 
>> expect.  Do ComponentTransforms
>> not effect all children or am I doing something wrong? :(
>>     
>
> they should, the easiest explanation for 1.x is that the beginEdit /
> endEdit calls are missing for the ComponentTransform. Without them
> the internal matrix will not be updated and the component changes won't
> have any effect.
>
> kind regards
>   gerrit
>   

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to