Main Page | Modules | Namespace List | Class Hierarchy | Class List | Namespace Members | Class Members | Related Pages

MeshInline Class Reference

MeshInline presents 3D mesh geometry, loaded from a mesh description file. More...

Inheritance diagram for MeshInline:

GeometryNode Node IGeometry Object List of all members.

Detailed Description

MeshInline presents 3D mesh geometry, loaded from a mesh description file.

Mesh description file formats currently supported include:

Any internal mesh animations are driven from an attached Timer.

Authoring Interface:

        MeshInline {
            field   SFURL       url                 ""
            field   MFAnimation currentAnimations   [ ]
            field   SFTimerNode timer               NULL
            field   SFBoolean   castShadows         true
            field   MFString    assetURLs           [ ]
            field   SFBoolean   normalizeNormals    false
       
            eventOut    MFAnimationInfo animations  // from LoadStatusNode
            eventOut    SFEnumeration   loadStatus  // not implemented in V0.1
            eventOut    SFTime          loadTime    // not implemented in V0.1
        }

Parameters:
url specifies a mesh filename to be loaded and presented in the scene. Default value: ""
currentAnimations specifies 0 or more MeshAnimation objects, each of which names an animation internal to the loaded mesh file. Any and all mesh animations found will be actively animated simultaneously. See MeshAnimation. Default value: [ ]
timer supplies a Timer node to activate and control mesh animation. Default value: NULL
castShadows specifies whether this mesh will cast a shadow when shadow processing is enabled. Default value: true
assetURLs specifies a list of external assets that this MeshInline uses, and that are not directly referenced from the .mesh file, usually ".material" and ".program" files. Emma needs these explicit references since it does not preload all existing material scripts found in a directory. IMPORTANT : Since .material files reference to programs found in .program files .program files should always be listed BEFORE the .material files. for example [ "robot.program", "robot.material", "robotArm.material", "http://www.emma3d.org/media/ogre/robotLeg.material" ] All these material scripts will be parsed but not loaded/created until they are actually used. Default value: [ ]
normalizeNormals specifies whether hardware should automatically normalize the normals of the model when it is scaled. If this is false, scaling the model can cause dynamic lighting artifacts. You only need to set this if you will be scaling your model extensively. Default value: false
animations lists all animations found within the currently loaded mesh.
loadStatus indicates the status of the mesh file that is loading. Possible values are "NONE", "REQUESTED", "FAILED", "ABORTED", and "LOADED". See LoadStatusNode.
loadTime sends the current time whenever a load succeeds.

Functionality:

XXX To be written


Generated on Sat Apr 1 06:08:09 2006 for Emma Content Development Kit by  doxygen 1.4.3