Veiwer API - slider controled transparency

Hi All,

I’m trying to control material opacity with a slider (min/max value 0.00-1.00) by substituting the slider value into the material opacity function from the Veiwer API documentation. It works fine… except when the slider reaches “1” again, the material goes solid black and mostly “disappears”. If I use a “button” to set the opacity back to “1”, it works fine. In other words, opacity works fine as long as the slider value is 0 - 0.99. It’s when it hits 1.0 again (and engages shadows and AO) that things stumble. Has anyone else experienced this?