The Appearance object defines rendering state information that must be applied to the rendering pipeline before the raw geometry within the Shape3D is rendered. Compared with learning the plethora of separate OpenGL methods to specify appearance, the OO nature of the Java 3D design pays dividends.Īn instance of an Appearance object is associated with each Shape3D geometric object in the scenegraph. This is one of the best-designed areas of Java 3D with a little experience you can quickly learn to navigate the various classes that, when combined, specify object appearance. For example, an Appearance has a Material class, a PolygonAttributes class, a RenderingAttributes class, and so on. Java 3D defines “has-a” relationships between the classes that control overall rendering appearance. Java 3D contains a host of classes to specify the rendering attributes for geometric primitives, such as color, texture, back-face removal, and so on. After reading this chapter, you should be able to dynamically modify the appearance of the geometry within your scenegraph. The Java 3D Appearance class enables you to set rendering attributes for the geometric primitives in your scene-at startup, during scenegraph creation, or dynamically at runtime. Java 3D Programming.Chapter 9 CHAPTER 9 Setting geometry appearances
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |