On Sun, Mar 7, 2010 at 6:37 PM, Frederic Bouvier <fredfgf...@free.fr> 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.

Tim

> I used :
>
>  <parameters>
>    <sun-angle><use>/sim/time/sun-angle-rad</use></sun-angle>
>  </parameters>
>
> and then, in pass
>
>      <uniform>
>        <name>sun_angle</name>
>        <type>float</type>
>        <value><use>sun-angle</use></value>
>      </uniform>
>
> According to README.effect, the value should dynamically change but my
> shader variable stay at 0.0.
> The readme also says [NOT IMPLEMENTED YET], but it is unclear to me what
> in not implemented : the copy of a value from the global property tree
> to a uniform, or the copy from a local property, or both ?
>
Initializing a value from a property works, animating it doesn't.


>
> Regards,
> -Fred
>
>
>
> ------------------------------------------------------------------------------
> 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
> _______________________________________________
> Flightgear-devel mailing list
> Flightgear-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/flightgear-devel
>
------------------------------------------------------------------------------
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
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to