http://groups.google.com/group/away3d-dev/browse_thread/thread/3fee584b0de6c83/4bdd2a75d03c7778?hl=en&lnk=gst&q=tween+colormaterial#4bdd2a75d03c7778

On May 4, 3:05 pm, smaira <[email protected]> wrote:
> Hi,
>
> I'm a beginner using Away3D. I'm trying to achieve something simple (I
> guess!). I've made an example in flash to explain what I'm trying to
> do. Basically, I would like that the color of a mesh changes from 0%
> (Yellow) to 100% (Red) based on a slider. The problem is that I am
> applying a ColorMaterial on the faces. I looked at the docs and the
> ColorMaterial doesn't have any "Tint" property or a function to do so.
> Neither can I set the Blend Mode to additive or something. I'm
> guessing that how the tinting would work is that the "Base" color of
> the face would be set to "Yellow" and a Red tint with an alpha value
> (based on the slider) would be added on it. Right ?
>
> I'd really appreciate it, if someone could point me in the right
> direction.
>
> Here's my flash example with a movieclip instead of a mesh 
> :http://dazzlecode.com/downloads/ChangeTint.swf
>
> Thanks a bunch
>
> Cheers!
>
> -Sameer

Reply via email to