如何使用 java3d 加载简单的 3D 图像
我想知道如何加载图像并将其移动到屏幕上。我知道我可以使用 textureloader()
加载图像,但我不知道如何在屏幕上显示它。
任何人都可以提供一些可以在屏幕上显示纹理的代码或链接吗?
I want know how to load an image and move it on screen. I know that I can use textureloader()
to load an image, but I don't know how to display it on the screen.
Can anyone provide some code or a link that can display a texture on the screen?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Mehdi,看看这些文章,它们将向您展示您需要做什么。
具体来说: http://java.sun.com/developer/onlineTraining/java3d/
这将为您提供 Java3d 所需的所有教程。
要加载基本纹理并将其放入场景中,请查看本教程:
http://java.sun.com/developer/onlineTraining/java3d/j3d_tutorial_ch7.pdf
具体来说,请转到第 7.2 节,它应该解释如何执行所有这些操作。
祝你好运,
Mehdi, take a look at these articles as they will show you what you need to do.
Specifically: http://java.sun.com/developer/onlineTraining/java3d/
This will give you all the tutorials you will need for Java3d
For loading a basic texture and putting it in a scene, look at this tutorial:
http://java.sun.com/developer/onlineTraining/java3d/j3d_tutorial_ch7.pdf
Specifically, go to section 7.2 and it should explain how to do all of that.
Good luck,