Aviatrix3D
2.1.0

Package org.j3d.renderer.aviatrix3d.loader

Implementations of file loaders that produce an Aviatrix3D scene graph.

See:
          Description

Interface Summary
AVLoader The definition of a class that is capable of parsing a file format and turning it into an Aviatrix3D scene graph.
AVModel Representation of a loaded model that came from a AVLoader implementation.
AVRuntimeComponent A piece of code that will execute runtime component parts of the loaded model format.
 

Package org.j3d.renderer.aviatrix3d.loader Description

Implementations of file loaders that produce an Aviatrix3D scene graph.

File loaders are built over the top of the basic parsing framework defined in the org.j3d.loaders package and subpackages.

Limitations

Loaders are generally designed for static model loading and, as such don't behave quite so well with model formats that also include a runtime component (eg X3D/VRML97). Even for formats that do include runtime capabilities, a lot of the time only the non-runtime part is required. The basic AVLoader interface represents this desire for a loader's functionality to explicitly exclude some parts of the model capability by the use of a set of load flags.

Using Loaders

The loaders are abstracted into a common interface that allows and application to load models without needing to know about specific class names. A loader is used to parse input in the form of a stream, file pointer or URL. In return, you are given an instance of AVModel to fetch the loaded contents from.

Layers

The behaviour of the loader is is dependent on whether or not a fileformat and particular file contain layers. Most formats do not contain any concept of composited scenes, but a few do. Aviatrix3D also has the capability to render composited scenes, so we allow model loaders to expose this capability as well.

When the user requests that layers are loaded, and some are found in the requested file, then no root model is defined and AVModel.getModelRoot() will return null. All content is accessed through the AVModel.getLayers() method. Layers are returned in the order of front-most to rear-most. Layers that are defined, but contain no content will still have valid layer object instances. With all layers, unless the file format contains a specific size, the Viewport will have zero size. It is up to the calling application to ensure that viewports are correctly sized before adding them to the scene.

When no layer loading is requested, or the loaded file does not contain any layers, then the AVModel.getLayers() method will return an empty list and AVModel.getModelRoot() will return a valid object representing the root of the loaded model.


Aviatrix3D
2.1.0

Latest Info from http://aviatrix3d.j3d.org/
Copyright © 2003 - 2009 j3d.org