Hello Michael,

On 02/18/2011 02:14 AM, Michael Raab wrote:
> when I call
> shl->setUniformParameter("VDTSystemTime", systemTimeVar);
> the parameter gets updated correctly. Seems to me that updateParameters() is 
> not called when I set the ShaderParameterValue directly. Any ideas?

hmm, yes, that seems to be the problem - it is only called if 
_mfParameters is marked as changed. You either will have to use the 
above or add a dummy

beginEditCP(shl, SHLChunk::ParametersFieldMask);
endEditCP(shl, SHLChunk::ParametersFieldMask);

to let the SHLChunk know one or more of its parameters have changed and 
need to be updated. Unfortunately in 1.x the parameters don't keep track 
of the SHLChunk they are attached to...

        Cheers,
                Carsten

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Opensg-users mailing list
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to