< Zurück | Inhalt | Weiter >

15.3.3 Using the ObjectFile loader

The following example loads a simple Wavefront format .obj file (the hand1.obj file from the Sun Morphing demo). Note that it is also necessary to create lights for the scene and assign an Appearance and Material to the loaded Wavefront object. Figure 15 .3 shows rendered output.


image

Figure 15.3 A Wavefront OBJ file loaded using the Sun ObjectFile loader


 

From LoaderTest.java