Java GWT如何为动画提供3D效果?
我随后使用GWT制作了一个动画。从这个我已经能够动画一个球被投出,然后击中。代码是:Java GWT如何为动画提供3D效果?,java,animation,gwt,Java,Animation,Gwt,我随后使用GWT制作了一个动画。从这个我已经能够动画一个球被投出,然后击中。代码是: protected void play1(){ // Baseball ball animation 1. //"Hit" the ball to left field absolutePanel.add(img, 300, 400); CustomAnimation animation2 = new CustomAnimation(img.getElement());
protected void play1(){
// Baseball ball animation 1.
//"Hit" the ball to left field
absolutePanel.add(img, 300, 400);
CustomAnimation animation2 = new CustomAnimation(img.getElement());
animation2.scrollTo(10, 10, 5000);
//Place the ball with the pitcher and pitch to the batter.
absolutePanel.add(img, 300, 300);
CustomAnimation animation1 = new CustomAnimation(img.getElement());
animation1.scrollTo(300, 450, 1000);
}
这很好地显示了一个滚地球。我想做的是显示一个球在拱门中被打到相同的位置,用3D效果来区分地面球和飞球
你的帮助让我知道如何做这件事会非常感激?你考虑使用CSS动画吗?嗨,JFrimixx,不,我没听说过这个。如果你认为它能实现我的目标,我会查的。谢谢,GlynHi@jdramaix,这看起来很不错,如果我能让它工作的话,它可能会满足我的需要。我将开始一个单独的问题与我的问题与此有关。谢谢,GlynHi@jdramaix,我已经能够在2D中使用它(也就是说,作为我已经拥有的代码的替代品)。非常感谢。然而,根据我的问题,我很难将其转换为3D:你好,格林