Login  Register

Add image to the 3D canvas in Java3d

classic Classic list List threaded Threaded
4 messages Options Options
Embed post
Permalink
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Add image to the 3D canvas in Java3d

gandalf
1 post
I am working on a project where I have to show a visualization of various shapes on the canvas. Is there any way I can directly add .png/.jpg images on the canvas? I wish to see images in the scene.
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Add image to the 3D canvas in Java3d

gouessej
Administrator
6044 posts
This post was updated on Apr 29, 2014; 9:39am.
Hi

Thank you for clarifying your original question. In this case, you have to create a polygon (a quad would be enough), set its texture and vertex coordinates, and use a texture. Look at Texture, TextureAttributes and GeometryArray.setTextureCoordinates().

Edit.: this example seems to be simple enough to show you how to do that:
http://www.vrupl.evl.uic.edu/oldsite/VRLabAcc/about_vrlab/java3d/lesson05/index.html
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Add image to the 3D canvas in Java3d

gandalf
1 post
Hi, the link seems to be broken. Do you have any other example/tutorial like this one. Thanks
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Add image to the 3D canvas in Java3d

gouessej
Administrator
6044 posts