当前位置:编程学习 > 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 © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,