Le 13/03/2010 13:06, Tim Moore a écrit : > > > On Sat, Mar 13, 2010 at 10:35 AM, Frederic Bouvier <fredfgf...@free.fr > <mailto:fredfgf...@free.fr>> wrote: > > Hi Tim, > > Le 07/03/2010 18:53, Tim Moore a écrit : > > On Sun, Mar 7, 2010 at 6:37 PM, Frederic Bouvier wrote: > > > > Hi Tim, > > > > is there a way to have the value of an uniform updated every > frame by > > the value of a live property ? > > > > I've been promising this to AndersG for some time now. I have code > > that basically makes this (the animation) work in my development > tree, > > but haven't checked it in yet. I'll check it in for uniforms > tonight, > > then start changing the code to support animations in the other > > effects parameters too. > > I see your code rely on property listener. Does it work on tied > property > like /sim/time/sun-angle-rad ? It seems it doesn't. > > Regards, > -Fred > > No, it doesn't. I has hoping to avoid iterating over all the effects > that use property values every frame, but maybe there's no > alternative. Urk.
Maybe a flag in the uniform element that tells the property needs to be polled -Fred ------------------------------------------------------------------------------ Download Intel® 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 _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel