简体   繁体   English

如何使用Java3D加载简单的3D图像

[英]How to load a simple 3d image with java3d

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. 我知道我可以使用textureloader()加载图像,但是我不知道如何在屏幕上显示它。

Can anyone provide some code or a link that can display a texture on the screen? 谁能提供一些代码或链接来在屏幕上显示纹理?

Mehdi, take a look at these articles as they will show you what you need to do. Mehdi,请看一下这些文章,因为它们将向您展示您需要做什么。

Specifically: http://java.sun.com/developer/onlineTraining/java3d/ 具体来说: http : //java.sun.com/developer/onlineTraining/java3d/

This will give you all the tutorials you will need for Java3d 这将为您提供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 要加载基本纹理并将其放置在场景中,请查看本教程: 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. 具体来说,请转到第7.2节,它应该说明如何执行所有这些操作。

Good luck, 祝好运,

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM