CHAPTER 6 Defining the universe 6.1 Locales and (Java web server)

CHAPTER 6 Defining the universe 6.1 Locales and HiResCoord 6.2 View, ViewPlatform, and Locale 6.3 SimpleUniverse 6.4 Background geometry 6.5 Using multiple views 6.6 Summary One of the fundamental choices you will have to make in your choice of VirtualUniverseconfiguration is whether to use the SimpleUniverseutility classes or to rely upon the lower level VirtualUniverse classes. By the end of this chapter you should understand the elements of the Java 3D scenegraph rendering model. Essential elements of the Java 3D scenegraph are covered: Defining regions within your universe using Locales Attaching the Viewmodel to the VirtualUniversethrough the ViewPlatform Using multiple Viewsfor rendering SimpleUniverseutility classes Creating Views, Geometry, and PlatformGeometryfor Avatars 6.1 Locales and HiResCoord The VirtualUniverseclass contains the virtual world that an application developer populates with Geometry, Behaviors, Lights, and so forth. The VirtualUniverseconsists of a collection of Locales. A Localedefines a geographical area within the VirtualUniverseand is anchored at a given 3D coordinate. A Localeuses 256-bit coordinates to specify the anchored x, y, and z position. The 256-bit coordinates are stored in a HiResCoordobject and allow a Localeto be positioned within a virtual space the size of the known (physical) universe yet also maintain a precision of a Planck length (smaller than the size of a proton). Most applications do not require more than one Locale; hence the SimpleUniverseclass creates a VirtualUniverseinstance with a single Locale. SimpleUniverseis derived from VirtualUniverseand is covered in detail in chapter 3. The default constructor for a Localepositions the Localeat the origin of the VirtualUniverse. Within a Locale, doubles or floats are used to specify the positions of objects. If a double is large enough to represent the positions of all the objects within your scene accurately, then a single Localeshould be sufficient. However, imagine a scenario: your application is to model parts of the galaxy. The model is to contain the planets orbiting the Sun. On the Earth, the model contains a geometry object a few meters across to represent a house. All the objects in the model are to be created to scale. 83
If you are searching for cheap webhost for your web application, please visit MySQL5 Web Hosting services.

Leave a Reply