我有一篇我们老师和同学写的论文,我不好放上来 不过可以推荐点书 1. 张杰,《JAVA3D交互式三维图形编程》,人民邮电出版社,1999.11 2. 江春华、蔡洪斌,《JAVA程序设计基础与提高》,电子科技大学出版社,1998.6 3. B. Curless, M. Levoy A Volumetric Method for Building Complex Models from Range Images, In: Computer Graphics (Proce SIGGRAPH 96), 1996, p.303-12 4. T. Kanai, H. Suzuki Approximate Shortest Path on a Polyhedral Surface and its Applications, Computer-Aided Design, 2001, Vol.33, p.801-811
sun本身就提供很好的例子可以借鉴。
http://java.sun.com/products/java-media/3D/
不过可以推荐点书
1. 张杰,《JAVA3D交互式三维图形编程》,人民邮电出版社,1999.11
2. 江春华、蔡洪斌,《JAVA程序设计基础与提高》,电子科技大学出版社,1998.6
3. B. Curless, M. Levoy A Volumetric Method for Building Complex Models from Range Images, In: Computer Graphics (Proce SIGGRAPH 96), 1996, p.303-12
4. T. Kanai, H. Suzuki Approximate Shortest Path on a Polyhedral Surface and its Applications, Computer-Aided Design, 2001, Vol.33, p.801-811
我在将问题详细说一下
Java3d中如果存在实体时,可以进行物体的拾取,这时可以得到精确的3D坐标.
但是如果想要捕捉鼠标任意点的坐标,不知道怎么实现,也就是不借助于已有的Shape来定位,得到鼠标的3D坐标。我想能不能给定一个z值,然后对鼠标点击事件的2D坐标进行变换,转化为3D的坐标。
但是不知道要用到什么对象,以及相应的方法。