This demo illustrates some possibilities to add textures to geometries within Javaview. We will start with a blank icosahedron and add a texture in two different ways.
To translate the view, keep the t-key pressed then press the left mouse button and move the mouse in the desired direction. By pressing the s-key, you can zoom the view by holding the left mouse button pressed and moving the mouse vertically. To rotate, press the left mouse button and move the mouse in the desired direction. The orbit rotate mode is preselected, so that you don't have to press any key simultanously. You can preselect a different navigation mode in the context menu of the viewer, which you can reach by pressing the right mouse button within the viewer. In this case you can use the orbit rotate mode by holding the o-key pressed.
You can open a new display in the context menu. On top of the new display you now have the main menu, which you can use to open the individual info panels and other options and functions of Javaview.
Perform the following steps:
If you take a look at the texture now, you will notice that the texture is strongly contorted on some faces. This is caused by the projection on the XY-plane. The faces close to perpendicular to the plane will be strongly contorted, which carries on to the texture.
In the texture panel you can take a look at the texture mapping by enabling the Texture Image checkbox. There you can see how the geometry is mapped onto the texture. You can change that mapping by dragging vertices by holding the p-key pressed and clicking on a vertex.
Perform the following steps:
First unfold the geometry completly (i.e the Time textfield has a value of 100). Now, without closing the Unfold dialog, add a texture just like before. Since now the texture is already flat on the XY-plane, there will be no more contortions. Finally, you can refold the geometry with the Refold button in the Unfold dialog and you will have a texture on the geometry that is not contorted.
I | Attachment | Action | Size | Date | Who | Comment |
---|---|---|---|---|---|---|
![]() |
icosahedron.jpg | manage | 16 K | 21 May 2015 - 16:41 | MskrodzkiUserTopic | Icosahedron to put a texture on. |
![]() |
textured_icosahedron1.jpg | manage | 57 K | 21 May 2015 - 16:43 | MskrodzkiUserTopic | First method to put texture on the icosahedron. |
![]() |
textured_icosahedron2.jpg | manage | 44 K | 21 May 2015 - 16:44 | MskrodzkiUserTopic | Second method to put texture on the icosahedron. |