JDK 1.3, Java3D v1.2.1Beta1
In my code, I use the same Alpha for doing a simple 2 second up-ramp (0
to 1)...
Alpha a = new Alpha(1, 2000);
This works fine.
... then later use the same object to do a simple 1.5sec down ramp (1 to
0)
a.setDecreasingAlphaDuration(1500);
a.setMode(Alpha.DECREASING_ENABLE);
a.setStartTime(System.currentTimeMillis());
This should disable the "increasing" parameters, but it doesn't. The
alpha lasts for 3.5 seconds, going from 1 to 0 every 1.5 seconds and
jumping to 0 after 3.5 seconds. I've included a snapshot of a graph
showing the trend, and the code used to generate the bug data.
WORKAROUND:
a.setIncreasingAlphaDuration(0);
<<graph.jpg>> <<AlphaTest.java>>
J. Lee Dixon
SAIC - Celebration, FL
407-566-1438
[EMAIL PROTECTED] AOL: LeeOrlando
graph.jpg
AlphaTest.java