当前位置:编程学习 > JAVA >>

eclipse java 3D 错误

报这个错误,我刚开始学3D不知道这是什么错误。。。 --------------------编程问答-------------------- import com.sun.j3d.utils.geometry.*;


import com.sun.j3d.utils.universe.*;
import javax.media.j3d.*;
import javax.vecmath.*;
public class ROYALAIRMAN2 {


 

public static void main(String[] args){
 SimpleUniverse uni =new SimpleUniverse();
 BranchGroup group=new BranchGroup();
 Sphere ball=new Sphere(0.5f);
 group.addChild(ball);
 uni.addBranchGraph(group);
 
 
 Color3f color =new Color3f(2,2,0);
 BoundingSphere bounds=new BoundingSphere(new Point3d(0,0,0),10000000);
 Vector3f direction =new  Vector3f(5,-6,-10);
 DirectionalLight light =new DirectionalLight(color,direction);
 
 light.setInfluencingBounds(bounds);
 group.addChild(light);
 uni.getViewingPlatform().setNominalViewingTransform();
 
 
 
 
 
 
 }

}
补充:Java ,  Eclipse
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,