Packagetwaver.threed.util
Classpublic class Style3D
InheritanceStyle3D Inheritance Object

Style3D class is used to define the 3D styles for the twaver.Element objects. Network3D renders the releated 3D objects according to the appropriate style values.



Public Constants
 ConstantDefined By
  ALARMATTACHMENT_ENABLEDYE : String = alarm.attachment.enabledye.t3d
[static]
Style3D
  ALARMATTACHMENT_LINE_SHAPE_WIDTH : String = alarm.attachment.line.width.t3d
[static]
Style3D
  ALARMATTACHMENT_LOCATION : String = attachment.location.t3d
[static]
Style3D
  ALARMATTACHMENT_MAPPING_COMMON_PATH : String = alarm.attachment.common.path.t3d
[static]
Style3D
  ALARMATTACHMENT_MAPPINGTYPE : String = alarm.attachment.mappingtype.t3d
[static]
Style3D
  ALARMATTACHMENT_MATERIAL_COLOR : String = alarm.attachment.material.color.t3d
[static]
Style3D
  ALARMATTACHMENT_SHAPE_TYPE : String = alarm.attachment.shape.type.t3d
[static]
Style3D
  ALARMATTACHMENT_SIZE : String = alarm.attachment.size.t3d
[static]
Style3D
  ALARM_BUBBLE_ENABLE : String = alarm.bubble.enable.t3d
[static]
Style3D
  ALARM_ELEMENTDYE_ENABLE : String = alarm.elementdye.enable.t3d
[static]
Style3D
  ALARM_RENDER_ENABLE : String = alarm.render.enable.t3d
[static]
Style3D
  ALPHA_THRESHOLD : String = alpha.threshold
[static] Defines the alpha threshold of a 3D object.
Style3D
  ASSETS_LOWERCASE : String = lowercase_path.t3d
[static] This parameter is a global setting.
Style3D
  BOTH_SIDES_VISIBLE : String = both.sides.visible.t3d
[static] Defines whether both sides of a 3D object are visible.
Style3D
  CYLINDER_OPEN : String = cyl.open.t3d
[static] Decides if a cylinder object's bottoms are open.
Style3D
  DEFAULT_BITMAPIMAGE : String = default.bitmap.t3d
[static] Defines a default image in the system.
Style3D
  EFFECT_SCALE_VALUE : String = effect.scale.value.t3d
[static] Defines the scale of a selected 3D object.
Style3D
  ENABLE_ALPHA_BLENDING : String = alpha.blending
[static] Decides whether a user can look through the transparent 3D object
Style3D
  EXTERNAL_MODEL_SOURCE : String = external.model.source.t3d
[static] Defines the source of an external model.
Style3D
  EXTERNAL_MODEL_TYPE : String = external.model.type.t3d
[static] Defines what format model files should be used as a model source.
Style3D
  EXTRUSION_AXIS : String = extrusion.rotation.axis.t3d
[static] Defines the axis for a lathe extrusion object or the axis for a linear extrusion object to rotate around.
Style3D
  EXTRUSION_DIVISIONS : String = extrusion.divisions.t3d
[static] Defines how many segments are used to compose a lathe extrusion object.
Style3D
  EXTRUSION_OFFSET : String = extrusion.offset.t3d
[static] Defines the elevation offset of a linear extrusion along the specified axis.
Style3D
  EXTRUSION_PROFILE : String = extrusion.profile.t3d
[static] Defines the profile of a extrusion object.
Style3D
  EXTRUSION_RECENTER : String = extrusion.recenter.t3d
[static] Decides if the extrusion object is recentered in its own space.
Style3D
  EXTRUSION_ROTATIONS : String = extrusion.rotations.t3d
[static] Defines the rotation of a lathe extrusion.
Style3D
  EXTRUSION_THICKNESS : String = extrusion.thickness.t3d
[static] Defines the thickness of an extrusion object.
Style3D
  LINE_SHAPE_POINTS : String = line.shape.points.t3d
[static] Defines the shape of a 3D line.
Style3D
  LINE_SHAPE_WIDTH : String = line.shape.width.t3d
[static] Defines the thickness of a 3D line.
Style3D
  MAPPING_BACK_TYPE : String = m.back.t.t3d
[static]
Style3D
  MAPPING_BOTTOM_TYPE : String = m.bottom.t.t3d
[static]
Style3D
  MAPPING_COMMON_PATH : String = mapping.common.path.t3d
[static] Defines the path of a 3D object's texture map.
Style3D
  MAPPING_CUBE_BACK : String = mapping.cube.back.t3d
[static]
Style3D
  MAPPING_CUBE_BACK_ALPHA : String = m.c.back.a.t3d
[static]
Style3D
  MAPPING_CUBE_BACK_COLOR : String = m.c.back.c.t3d
[static]
Style3D
  MAPPING_CUBE_BACK_TILED : String = mapping.cube.back.tiled.t3d
[static]
Style3D
  MAPPING_CUBE_BOTTOM : String = mapping.cube.bottom.t3d
[static]
Style3D
  MAPPING_CUBE_BOTTOM_ALPHA : String = m.c.bottom.a.t3d
[static]
Style3D
  MAPPING_CUBE_BOTTOM_COLOR : String = m.c.bottom.c.t3d
[static]
Style3D
  MAPPING_CUBE_BOTTOM_TILED : String = mapping.cube.bottom.tiled.t3d
[static]
Style3D
  MAPPING_CUBE_FRONT : String = mapping.cube.front.t3d
[static]
Style3D
  MAPPING_CUBE_FRONT_ALPHA : String = m.c.front.a.t3d
[static]
Style3D
  MAPPING_CUBE_FRONT_COLOR : String = m.c.front.c.t3d
[static]
Style3D
  MAPPING_CUBE_FRONT_TILED : String = mapping.cube.front.tiled.t3d
[static]
Style3D
  MAPPING_CUBE_LEFT : String = mapping.cube.left.t3d
[static]
Style3D
  MAPPING_CUBE_LEFT_ALPHA : String = m.c.left.a.t3d
[static]
Style3D
  MAPPING_CUBE_LEFT_COLOR : String = m.c.left.c.t3d
[static]
Style3D
  MAPPING_CUBE_LEFT_TILED : String = mapping.cube.left.tiled.t3d
[static]
Style3D
  MAPPING_CUBE_RIGHT : String = mapping.cube.right.t3d
[static]
Style3D
  MAPPING_CUBE_RIGHT_ALPHA : String = m.c.right.a.t3d
[static]
Style3D
  MAPPING_CUBE_RIGHT_COLOR : String = m.c.right.c.t3d
[static]
Style3D
  MAPPING_CUBE_RIGHT_TILED : String = mapping.cube.right.tiled.t3d
[static]
Style3D
  MAPPING_CUBE_TOP : String = mapping.cube.top.t3d
[static]
Style3D
  MAPPING_CUBE_TOP_ALPHA : String = m.c.l.top.t3d
[static]
Style3D
  MAPPING_CUBE_TOP_COLOR : String = m.c.top.c.t3d
[static]
Style3D
  MAPPING_CUBE_TOP_TILED : String = mapping.cube.top.tiled.t3d
[static]
Style3D
  MAPPING_FRONT_TYPE : String = m.front.t.t3d
[static]
Style3D
  MAPPING_HEIGHTMAP : String = height.map.t3d
[static] Defines the source of the heightmap for a terrain object.
Style3D
  MAPPING_LEFT_TYPE : String = m.left.t.t3d
[static]
Style3D
  MAPPING_NORMAL_PATH : String = mapping.normal.path.t3d
[static] Defines the normal map of a 3D object's texture material.
Style3D
  MAPPING_RIGHT_TYPE : String = m.right.t.t3d
[static]
Style3D
  MAPPING_SPECULAR_PATH : String = specular.texture.t3d
[static] Defines the specular map of a 3D object's texture material.
Style3D
  MAPPING_TOP_TYPE : String = m.top.t.t3d
[static]
Style3D
  MAPPINGTYPE : String = mapping.type.t3d
[static] Defines the material type of a 3D object.
Style3D
  MATERIAL_ALPHA : String = material.alpha.t3d
[static] Defines the alpha of a 3D object.
Style3D
  MATERIAL_AMBIENT : String = material.ambient.t3d
[static] Defines the ambient value of a 3D object's material.
Style3D
  MATERIAL_AMBIENTCOLOR : String = material.ambient.color.t3d
[static] Defines the ambient color of a 3D object's material.
Style3D
  MATERIAL_COLOR : String = material.color.t3d
[static] Defines the color of the material.
Style3D
  MATERIAL_GLOSS : String = material.gloss.t3d
[static] Defines the gloss value of a 3D object's texture material.
Style3D
  MATERIAL_MOVIECLIP : String = material.movieclip.t3d
[static]
Style3D
  MATERIAL_SPECULAR : String = material.specular.t3d
[static] Defines the specular value of a 3D object's materail.
Style3D
  MATERIAL_SPECULAR_EFFECT : String = material.specular.effect.t3d
[static]
Style3D
  MATERIAL_USE_SHADOW : String = material.shadow.t3d
[static] Decides whether a 3D object has shadow effect.
Style3D
  PIVOT_POINT : String = pivot.t3d
[static] Resets the pivot of a 3D object in its local space.
Style3D
  PROPERTY_ROT_ANGLE : String = rot.angle.t3d
[static] Defines the rotation angle of a 3D object in the scene.
Style3D
  PROPERTY_SCALE : String = scene.scale.t3d
[static] Defines the scale of a 3D object.
Style3D
  PROPERTY_SIZE : String = physical.size.t3d
[static] Defines the size of a 3D object.
Style3D
  PROPERTY_SMOOTH_LEVEL : String = smooth.level.t3d
[static] A 3D object is made up of many segments along the axes.
Style3D
  PROPERTY_SPACE_LOCATION : String = scene.location.t3d
[static] Defines the location of a 3D object in the scene.
Style3D
  SEGMENTS_DEPTH : String = seg.d.t3d
[static] Defines how many segments are used to make up a 3D object along the z-axis.
Style3D
  SEGMENTS_HEIGHT : String = seg.h.t3d
[static] Defines how many segments are used to make up a 3D object along the y-axis.
Style3D
  SEGMENTS_LENGTH : String = seg.w.t3d
[static] Defines how many segments are used to make up a 3D object along the x-axis.
Style3D
  SELECTED_EFFECT_COLOR : String = selected.effect.color.t3d
[static] Defines the color of the selected element's framework.
Style3D
  SELECTED_EFFECT_TYPE : String = selected.effect.type.t3d
[static] Defines the effect when a 3D object is selected.
Style3D
  SELECTED_FRAMEWORK_WIDTH : String = selected.framework.width.t3d
[static] Defines the thickness of the selected element's framework.
Style3D
  SHAODW_LIGHT_TAG : String = shadow.light.t3d
[static] Defines which light will create the shadow for a 3D object.
Style3D
  TERRAIN_BLEND_1 : String = terrain.blend.1.t3d
[static] Defines the source of the first layer used to blend with the terrain in a 3D scene.
Style3D
  TERRAIN_BLEND_2 : String = terrain.blend.2.t3d
[static] Defines the source of the second layer used to blend with the terrain in a 3D scene.
Style3D
  TERRAIN_BLEND_3 : String = terrain.blend.3.t3d
[static] Defines the source of the third layer used to blend with the terrain in a 3D scene.
Style3D
  TERRAIN_BLEND_MAP : String = terrain.blend.map.t3d
[static] Defines the source of the blend rule.
Style3D
  TERRAIN_BLEND_TILEDRULE : String = terrain.blend.tiledrule.t3d
[static] Decides whether the blending terrain textures are tiled.
Style3D
  TERRAIN_MAXELEVATION : String = terrain.max.t3d
[static] Defines the elevation factor above this color reading level.
Style3D
  TERRAIN_MINELEVATION : String = terrain.min.t3d
[static] Defines the elevation factor beneath this color reading level.
Style3D
  TERRAIN_SMOOTH : String = terrain.smooth.t3d
[static] Decides if the terrain is smooth.
Style3D
  THREED_SHAPE_TYPE : String = 3d.shape.type.t3d
[static] Defines the shape type of a 3D object.
Style3D
  TILED_HORIZONTAL_NUM : String = tiled.h.num.t3d
[static] Specifies how many tiles are layed in the horizotal direction when the WITH_TILED_MATERIAL style is true.
Style3D
  TILED_VERTICAL_NUM : String = tiled.v.num.t3d
[static] Specifies how many tiles are layed in the vertical direction when the WITH_TILED_MATERIAL style is true.
Style3D
  USEENVIROMENTMAP : String = use.envmap.t3d
[static]
Style3D
  USEFOGEFFECT : String = use.fog.t3d
[static]
Style3D
  VISIBLE : String = visible
[static] Decides whether a 3D object is visible in a 3D scene.
Style3D
  WITH_MIPMAP_MATERIAL : String = mipmap.t3d
[static] Decides whether the texture is used as mip map.
Style3D
  WITH_TILED_MATERIAL : String = with.tiled.material.t3d
[static] Decides whether tile the texture image in a texture material.
Style3D
Constant Detail
ALARM_BUBBLE_ENABLEConstant
public static const ALARM_BUBBLE_ENABLE:String = alarm.bubble.enable.t3d

ALARM_ELEMENTDYE_ENABLEConstant 
public static const ALARM_ELEMENTDYE_ENABLE:String = alarm.elementdye.enable.t3d

ALARM_RENDER_ENABLEConstant 
public static const ALARM_RENDER_ENABLE:String = alarm.render.enable.t3d

ALARMATTACHMENT_ENABLEDYEConstant 
public static const ALARMATTACHMENT_ENABLEDYE:String = alarm.attachment.enabledye.t3d

ALARMATTACHMENT_LINE_SHAPE_WIDTHConstant 
public static const ALARMATTACHMENT_LINE_SHAPE_WIDTH:String = alarm.attachment.line.width.t3d

ALARMATTACHMENT_LOCATIONConstant 
public static const ALARMATTACHMENT_LOCATION:String = attachment.location.t3d

ALARMATTACHMENT_MAPPING_COMMON_PATHConstant 
public static const ALARMATTACHMENT_MAPPING_COMMON_PATH:String = alarm.attachment.common.path.t3d

ALARMATTACHMENT_MAPPINGTYPEConstant 
public static const ALARMATTACHMENT_MAPPINGTYPE:String = alarm.attachment.mappingtype.t3d

ALARMATTACHMENT_MATERIAL_COLORConstant 
public static const ALARMATTACHMENT_MATERIAL_COLOR:String = alarm.attachment.material.color.t3d

ALARMATTACHMENT_SHAPE_TYPEConstant 
public static const ALARMATTACHMENT_SHAPE_TYPE:String = alarm.attachment.shape.type.t3d

ALARMATTACHMENT_SIZEConstant 
public static const ALARMATTACHMENT_SIZE:String = alarm.attachment.size.t3d

ALPHA_THRESHOLDConstant 
public static const ALPHA_THRESHOLD:String = alpha.threshold

Defines the alpha threshold of a 3D object.

ASSETS_LOWERCASEConstant 
public static const ASSETS_LOWERCASE:String = lowercase_path.t3d

This parameter is a global setting. If it is set as true, the 3ds parser will be able to access those relative files whose filenames are in lowercase letters.

BOTH_SIDES_VISIBLEConstant 
public static const BOTH_SIDES_VISIBLE:String = both.sides.visible.t3d

Defines whether both sides of a 3D object are visible. The value type is Boolean. Default value is false.

CYLINDER_OPENConstant 
public static const CYLINDER_OPEN:String = cyl.open.t3d

Decides if a cylinder object's bottoms are open.

DEFAULT_BITMAPIMAGEConstant 
public static const DEFAULT_BITMAPIMAGE:String = default.bitmap.t3d

Defines a default image in the system. It is a global variable. If the spercified image resource can not be accessed, Network3D will use this default image as a replacement.

EFFECT_SCALE_VALUEConstant 
public static const EFFECT_SCALE_VALUE:String = effect.scale.value.t3d

Defines the scale of a selected 3D object. The value type is Number. Defualt value is 1.1.

ENABLE_ALPHA_BLENDINGConstant 
public static const ENABLE_ALPHA_BLENDING:String = alpha.blending

Decides whether a user can look through the transparent 3D object

EXTERNAL_MODEL_SOURCEConstant 
public static const EXTERNAL_MODEL_SOURCE:String = external.model.source.t3d

Defines the source of an external model. The value may be a path string or an embeded model instance.

         For example:
         
         
         
         

EXTERNAL_MODEL_TYPEConstant 
public static const EXTERNAL_MODEL_TYPE:String = external.model.type.t3d

Defines what format model files should be used as a model source. Optional values are

		 Consts3D.EXTERNAL_MODEL_TYPE_3DS, Consts3D.EXTERNAL_MODEL_TYPE_OBJ,
		  Consts3D.EXTERNAL_MODEL_TYPE_MD2, Consts3D.EXTERNAL_MODEL_TYPE_DAE.
		 

EXTRUSION_AXISConstant 
public static const EXTRUSION_AXIS:String = extrusion.rotation.axis.t3d

Defines the axis for a lathe extrusion object or the axis for a linear extrusion object to rotate around. Optional values are Consts3D.X_AXIS, Consts3D.Y_AXIS, and Consts3D.Z_AXIS.

EXTRUSION_DIVISIONSConstant 
public static const EXTRUSION_DIVISIONS:String = extrusion.divisions.t3d

Defines how many segments are used to compose a lathe extrusion object. The value type is uint. Default value is 12.

EXTRUSION_OFFSETConstant 
public static const EXTRUSION_OFFSET:String = extrusion.offset.t3d

Defines the elevation offset of a linear extrusion along the specified axis. The value type is Number.

EXTRUSION_PROFILEConstant 
public static const EXTRUSION_PROFILE:String = extrusion.profile.t3d

Defines the profile of a extrusion object.

         For example:
         
         
         
         

EXTRUSION_RECENTERConstant 
public static const EXTRUSION_RECENTER:String = extrusion.recenter.t3d

Decides if the extrusion object is recentered in its own space.

EXTRUSION_ROTATIONSConstant 
public static const EXTRUSION_ROTATIONS:String = extrusion.rotations.t3d

Defines the rotation of a lathe extrusion.

EXTRUSION_THICKNESSConstant 
public static const EXTRUSION_THICKNESS:String = extrusion.thickness.t3d

Defines the thickness of an extrusion object. The value type is Number.

LINE_SHAPE_POINTSConstant 
public static const LINE_SHAPE_POINTS:String = line.shape.points.t3d

Defines the shape of a 3D line.

         For example:
         
         var from:Vector3D = new Vector3D(-114.79940414428711,0.779963843524456,-24.708154797554016);
         var to :Vector3D = new Vector3D(-37.97508478164673,0.779963843524456,-24.708154797554016);
         node.setStyle(Style3D.LINE_SHAPE_POINTS,[from,to]);
         
         

LINE_SHAPE_WIDTHConstant 
public static const LINE_SHAPE_WIDTH:String = line.shape.width.t3d

Defines the thickness of a 3D line. The value type is Number.

MAPPING_BACK_TYPEConstant 
public static const MAPPING_BACK_TYPE:String = m.back.t.t3d

MAPPING_BOTTOM_TYPEConstant 
public static const MAPPING_BOTTOM_TYPE:String = m.bottom.t.t3d

MAPPING_COMMON_PATHConstant 
public static const MAPPING_COMMON_PATH:String = mapping.common.path.t3d

Defines the path of a 3D object's texture map.

         For example:
         
         //use the embeded image
         [Embed(source="/sdk/images/map/a.jpg")]
         private static const A:Class;
         //register the texture first
         twaver.Utils.registerImageByClass("a",A);
         element.setStyle(Style3D.MAPPING_COMMON_PATH,"a");
         //or
         element.setStyle(Style3D.MAPPING_COMMON_PATH, new A().bitmapData);
         //or use an absolute path
         element.setStyle(Style3D.MAPPING_COMMON_PATH,"http://www.servasoftware.com/resources/textures/a.png");
         //or use a relative path
         element.setStyle(Style3D.MAPPING_COMMON_PATH,"/resources/textures/a.png");
         
         

MAPPING_CUBE_BACKConstant 
public static const MAPPING_CUBE_BACK:String = mapping.cube.back.t3d

MAPPING_CUBE_BACK_ALPHAConstant 
public static const MAPPING_CUBE_BACK_ALPHA:String = m.c.back.a.t3d

MAPPING_CUBE_BACK_COLORConstant 
public static const MAPPING_CUBE_BACK_COLOR:String = m.c.back.c.t3d

MAPPING_CUBE_BACK_TILEDConstant 
public static const MAPPING_CUBE_BACK_TILED:String = mapping.cube.back.tiled.t3d

MAPPING_CUBE_BOTTOMConstant 
public static const MAPPING_CUBE_BOTTOM:String = mapping.cube.bottom.t3d

MAPPING_CUBE_BOTTOM_ALPHAConstant 
public static const MAPPING_CUBE_BOTTOM_ALPHA:String = m.c.bottom.a.t3d

MAPPING_CUBE_BOTTOM_COLORConstant 
public static const MAPPING_CUBE_BOTTOM_COLOR:String = m.c.bottom.c.t3d

MAPPING_CUBE_BOTTOM_TILEDConstant 
public static const MAPPING_CUBE_BOTTOM_TILED:String = mapping.cube.bottom.tiled.t3d

MAPPING_CUBE_FRONTConstant 
public static const MAPPING_CUBE_FRONT:String = mapping.cube.front.t3d

MAPPING_CUBE_FRONT_ALPHAConstant 
public static const MAPPING_CUBE_FRONT_ALPHA:String = m.c.front.a.t3d

MAPPING_CUBE_FRONT_COLORConstant 
public static const MAPPING_CUBE_FRONT_COLOR:String = m.c.front.c.t3d

MAPPING_CUBE_FRONT_TILEDConstant 
public static const MAPPING_CUBE_FRONT_TILED:String = mapping.cube.front.tiled.t3d

MAPPING_CUBE_LEFTConstant 
public static const MAPPING_CUBE_LEFT:String = mapping.cube.left.t3d

MAPPING_CUBE_LEFT_ALPHAConstant 
public static const MAPPING_CUBE_LEFT_ALPHA:String = m.c.left.a.t3d

MAPPING_CUBE_LEFT_COLORConstant 
public static const MAPPING_CUBE_LEFT_COLOR:String = m.c.left.c.t3d

MAPPING_CUBE_LEFT_TILEDConstant 
public static const MAPPING_CUBE_LEFT_TILED:String = mapping.cube.left.tiled.t3d

MAPPING_CUBE_RIGHTConstant 
public static const MAPPING_CUBE_RIGHT:String = mapping.cube.right.t3d

MAPPING_CUBE_RIGHT_ALPHAConstant 
public static const MAPPING_CUBE_RIGHT_ALPHA:String = m.c.right.a.t3d

MAPPING_CUBE_RIGHT_COLORConstant 
public static const MAPPING_CUBE_RIGHT_COLOR:String = m.c.right.c.t3d

MAPPING_CUBE_RIGHT_TILEDConstant 
public static const MAPPING_CUBE_RIGHT_TILED:String = mapping.cube.right.tiled.t3d

MAPPING_CUBE_TOPConstant 
public static const MAPPING_CUBE_TOP:String = mapping.cube.top.t3d

MAPPING_CUBE_TOP_ALPHAConstant 
public static const MAPPING_CUBE_TOP_ALPHA:String = m.c.l.top.t3d

MAPPING_CUBE_TOP_COLORConstant 
public static const MAPPING_CUBE_TOP_COLOR:String = m.c.top.c.t3d

MAPPING_CUBE_TOP_TILEDConstant 
public static const MAPPING_CUBE_TOP_TILED:String = mapping.cube.top.tiled.t3d

MAPPING_FRONT_TYPEConstant 
public static const MAPPING_FRONT_TYPE:String = m.front.t.t3d

MAPPING_HEIGHTMAPConstant 
public static const MAPPING_HEIGHTMAP:String = height.map.t3d

Defines the source of the heightmap for a terrain object. The source should be a path or an embeded bitmapdata.

         For example:
         
         
         [Embed(source="/image/terrain/height.jpg")]
            private var HeightMap:Class;
            
            // terrain texture map
            [Embed(source="/image/terrain/terrain.jpg")]
            private var Terrain:Class;
            
            // terrain normal map
            [Embed(source="/image/terrain/normal.jpg")]
            private var NormalMap:Class;
            
            //splat texture maps
            [Embed(source="/image/terrain/grass.jpg")]
            private var Blend1:Class;
            [Embed(source="/image/terrain/rock.jpg")]
            private var Blend2:Class;
            [Embed(source="/image/terrain/beach.jpg")]
            private var Blend3:Class;
            
            //splat blend map
            [Embed(source="/image/terrain/blend.png")]
            private var Blend:Class;
        
             //register the image source
              Utils.registerImageByClass("terrain",Terrain);
               Utils.registerImageByClass("heightmap",HeightMap);
               Utils.registerImageByClass("tn",NormalMap);
               Utils.registerImageByClass("blend1",Blend1);
               Utils.registerImageByClass("blend2",Blend2);
               Utils.registerImageByClass("blend3",Blend3);
              Utils.registerImageByClass("blend",Blend);
         
               
             var n:Node = new Node();
            n.setStyle(Style3D.THREED_SHAPE_TYPE,Consts3D.THREED_SHAPE_TYPE_TERRAIN);
            n.setStyle(Style3D.MAPPINGTYPE,Consts3D.MAPPINGTYPE_COMMON);
            
            n.setStyle(Style3D.MAPPING_HEIGHTMAP,"heightmap");
            n.setStyle(Style3D.MAPPING_NORMAL_PATH,"tn");
            n.setStyle(Style3D.MAPPING_COMMON_PATH,"terrain");
            
            
            
            n.setStyle(Style3D.TERRAIN_BLEND_1,"blend1");
            n.setStyle(Style3D.TERRAIN_BLEND_2,"blend2");
            n.setStyle(Style3D.TERRAIN_BLEND_3,"blend3");
            n.setStyle(Style3D.TERRAIN_BLEND_MAP,"blend");
            n.setStyle(Style3D.TERRAIN_BLEND_TILEDRULE,"1,50,150,100");
            
            n.setStyle(Style3D.MATERIAL_SPECULAR,0.2);
            n.setStyle(Style3D.MATERIAL_AMBIENT,1);
            n.setStyle(Style3D.MATERIAL_AMBIENTCOLOR,0x303040);
            
            n.setStyle(Style3D.PROPERTY_SIZE,new Vector3D(5000,1300,5000));
            n.setStyle(Style3D.SEGMENTS_LENGTH,250);
            n.setStyle(Style3D.SEGMENTS_HEIGHT,250);
         
         

MAPPING_LEFT_TYPEConstant 
public static const MAPPING_LEFT_TYPE:String = m.left.t.t3d

MAPPING_NORMAL_PATHConstant 
public static const MAPPING_NORMAL_PATH:String = mapping.normal.path.t3d

Defines the normal map of a 3D object's texture material.

MAPPING_RIGHT_TYPEConstant 
public static const MAPPING_RIGHT_TYPE:String = m.right.t.t3d

MAPPING_SPECULAR_PATHConstant 
public static const MAPPING_SPECULAR_PATH:String = specular.texture.t3d

Defines the specular map of a 3D object's texture material.

MAPPING_TOP_TYPEConstant 
public static const MAPPING_TOP_TYPE:String = m.top.t.t3d

MAPPINGTYPEConstant 
public static const MAPPINGTYPE:String = mapping.type.t3d

Defines the material type of a 3D object. Optial values are Consts3D.MAPPINGTYPE_COLOR, Consts3D.MAPPINGTYPE_COMMON, Consts3D.MAPPINGTYPE_MAP6

MATERIAL_ALPHAConstant 
public static const MATERIAL_ALPHA:String = material.alpha.t3d

Defines the alpha of a 3D object.

MATERIAL_AMBIENTConstant 
public static const MATERIAL_AMBIENT:String = material.ambient.t3d

Defines the ambient value of a 3D object's material. The style works only for a texture material.

MATERIAL_AMBIENTCOLORConstant 
public static const MATERIAL_AMBIENTCOLOR:String = material.ambient.color.t3d

Defines the ambient color of a 3D object's material. The style works only for a texture material.

MATERIAL_COLORConstant 
public static const MATERIAL_COLOR:String = material.color.t3d

Defines the color of the material. If a 3D object has a texture material, Network3D will dye the texture with the specified color. If a 3D obejct has a color materail, the specified color will be used as the material.

MATERIAL_GLOSSConstant 
public static const MATERIAL_GLOSS:String = material.gloss.t3d

Defines the gloss value of a 3D object's texture material.

MATERIAL_MOVIECLIPConstant 
public static const MATERIAL_MOVIECLIP:String = material.movieclip.t3d

MATERIAL_SPECULARConstant 
public static const MATERIAL_SPECULAR:String = material.specular.t3d

Defines the specular value of a 3D object's materail. The style works only for a texture material.

MATERIAL_SPECULAR_EFFECTConstant 
public static const MATERIAL_SPECULAR_EFFECT:String = material.specular.effect.t3d

MATERIAL_USE_SHADOWConstant 
public static const MATERIAL_USE_SHADOW:String = material.shadow.t3d

Decides whether a 3D object has shadow effect.

PIVOT_POINTConstant 
public static const PIVOT_POINT:String = pivot.t3d

Resets the pivot of a 3D object in its local space.

PROPERTY_ROT_ANGLEConstant 
public static const PROPERTY_ROT_ANGLE:String = rot.angle.t3d

Defines the rotation angle of a 3D object in the scene. The value should be a Vector3D object

         For example:
         
         // the angles is described in degrees.
         var rotx:Number = 0;
         var roty:Number = 90;
         var rotz:Number = 0;
         element.setStyle(Style3D.PROPERTY_ROT_ANGLE, new Vector3D(rotx,roty,rotz));
         
         

PROPERTY_SCALEConstant 
public static const PROPERTY_SCALE:String = scene.scale.t3d

Defines the scale of a 3D object.

         For example:
         
         //use a Vector3D object to provide different scales in 3 dimensions.
         element.setStyle(Style3D.PROPERTY_SCALE,new Vector3D(2,1,2));
         // or use a number 
         element.setStyle(Style3D.PROPERTY_SCALE,2);
         
         

PROPERTY_SIZEConstant 
public static const PROPERTY_SIZE:String = physical.size.t3d

Defines the size of a 3D object. The value of this style should be described by a Vector3D object.

                      _______________
                     /              /|
             depth /               / |
                 /______length ___/  |
                 |               |   |
                 |               |   |
                 |height         |   /
                 |               |  /
                 |               | /
                 |_______________|/
         
         For example:
         
         element.setStyle(Style3D.PROPERTY_SIZE, new Vector3D(length,height,depth));
         
         

PROPERTY_SMOOTH_LEVELConstant 
public static const PROPERTY_SMOOTH_LEVEL:String = smooth.level.t3d

A 3D object is made up of many segments along the axes. Network3D has prefefined the 3 different assemblies of the number of the segments for every kind of 3D object. This style stands for one of these three assemblies. Optional values are Consts3D.SMOOTH_LEVEL_COMMON, Consts3D.SMOOTH_LEVEL_MIDDLE and Consts3D.SMOOTH_LEVEL_GREAT.

PROPERTY_SPACE_LOCATIONConstant 
public static const PROPERTY_SPACE_LOCATION:String = scene.location.t3d

Defines the location of a 3D object in the scene. The value should be a Vector3D object.

         For example:
         
         //to position an element at the point(x=100,y=120,z=-100)
         element.setStyle(Style3D.PROPERTY_SPACE_LOCATION,new Vector3D(100,120,-100));
         
         

SEGMENTS_DEPTHConstant 
public static const SEGMENTS_DEPTH:String = seg.d.t3d

Defines how many segments are used to make up a 3D object along the z-axis.

SEGMENTS_HEIGHTConstant 
public static const SEGMENTS_HEIGHT:String = seg.h.t3d

Defines how many segments are used to make up a 3D object along the y-axis.

SEGMENTS_LENGTHConstant 
public static const SEGMENTS_LENGTH:String = seg.w.t3d

Defines how many segments are used to make up a 3D object along the x-axis.

SELECTED_EFFECT_COLORConstant 
public static const SELECTED_EFFECT_COLOR:String = selected.effect.color.t3d

Defines the color of the selected element's framework. The value type is uint. Default value is 0x00ff00.

SELECTED_EFFECT_TYPEConstant 
public static const SELECTED_EFFECT_TYPE:String = selected.effect.type.t3d

Defines the effect when a 3D object is selected. Default value is Consts3D.EFFECT_TYPE_FRAMEWORK, Consts3D.EFFECT_TYPE_SCALE and Consts3D.EFFECT_TYPE_NONE

SELECTED_FRAMEWORK_WIDTHConstant 
public static const SELECTED_FRAMEWORK_WIDTH:String = selected.framework.width.t3d

Defines the thickness of the selected element's framework. The value type is Number.

SHAODW_LIGHT_TAGConstant 
public static const SHAODW_LIGHT_TAG:String = shadow.light.t3d

Defines which light will create the shadow for a 3D object.

TERRAIN_BLEND_1Constant 
public static const TERRAIN_BLEND_1:String = terrain.blend.1.t3d

Defines the source of the first layer used to blend with the terrain in a 3D scene.

TERRAIN_BLEND_2Constant 
public static const TERRAIN_BLEND_2:String = terrain.blend.2.t3d

Defines the source of the second layer used to blend with the terrain in a 3D scene.

TERRAIN_BLEND_3Constant 
public static const TERRAIN_BLEND_3:String = terrain.blend.3.t3d

Defines the source of the third layer used to blend with the terrain in a 3D scene.

TERRAIN_BLEND_MAPConstant 
public static const TERRAIN_BLEND_MAP:String = terrain.blend.map.t3d

Defines the source of the blend rule. Network3D use RGB channels of an image to define the alpha values of the layers used to blend with the terrain map. Network3D supports at most 3 layers. The blend map is used to store the specified RGB information. Please refer to the guide document for more details.

TERRAIN_BLEND_TILEDRULEConstant 
public static const TERRAIN_BLEND_TILEDRULE:String = terrain.blend.tiledrule.t3d

Decides whether the blending terrain textures are tiled. The value type is Boolean.

TERRAIN_MAXELEVATIONConstant 
public static const TERRAIN_MAXELEVATION:String = terrain.max.t3d

Defines the elevation factor above this color reading level. Default is 255.

TERRAIN_MINELEVATIONConstant 
public static const TERRAIN_MINELEVATION:String = terrain.min.t3d

Defines the elevation factor beneath this color reading level. Default is 0.

TERRAIN_SMOOTHConstant 
public static const TERRAIN_SMOOTH:String = terrain.smooth.t3d

Decides if the terrain is smooth.

THREED_SHAPE_TYPEConstant 
public static const THREED_SHAPE_TYPE:String = 3d.shape.type.t3d

Defines the shape type of a 3D object. Optial values are

		 Consts3D.THREED_SHAPE_TYPE_CUBE, Consts3D.THREED_SHAPE_TYPE_COMPLEXCUBE, Consts3D.THREED_SHAPE_TYPE_SPHERE,
		  Consts3D.THREED_SHAPE_TYPE_CONE, Consts3D.THREED_SHAPE_TYPE_CYLINDER, Consts3D.THREED_SHAPE_TYPE_PLANE, 
		 Consts3D.THREED_SHAPE_TYPE_LINE,Consts3D.THREED_SHAPE_TYPE_BILLBOARD, Consts3D.THREED_SHAPE_TYPE_LINEAREXTRUSION, 
		 Consts3D.THREED_SHAPE_TYPE_BOXSCENE,Consts3D.THREED_SHAPE_TYPE_TERRAIN,
		  Consts3D.THREED_SHAPE_TYPE_LATHEEXTRUSION, Consts3D.THREED_SHAPE_TYPE_EXTERNALMODEL.
		 

TILED_HORIZONTAL_NUMConstant 
public static const TILED_HORIZONTAL_NUM:String = tiled.h.num.t3d

Specifies how many tiles are layed in the horizotal direction when the WITH_TILED_MATERIAL style is true.

TILED_VERTICAL_NUMConstant 
public static const TILED_VERTICAL_NUM:String = tiled.v.num.t3d

Specifies how many tiles are layed in the vertical direction when the WITH_TILED_MATERIAL style is true.

USEENVIROMENTMAPConstant 
public static const USEENVIROMENTMAP:String = use.envmap.t3d

USEFOGEFFECTConstant 
public static const USEFOGEFFECT:String = use.fog.t3d

VISIBLEConstant 
public static const VISIBLE:String = visible

Decides whether a 3D object is visible in a 3D scene.

WITH_MIPMAP_MATERIALConstant 
public static const WITH_MIPMAP_MATERIAL:String = mipmap.t3d

Decides whether the texture is used as mip map. The value type is Boolean.

WITH_TILED_MATERIALConstant 
public static const WITH_TILED_MATERIAL:String = with.tiled.material.t3d

Decides whether tile the texture image in a texture material. The value type is Boolean. If it is true, developers should also assign values to TILED_HORIZONTAL_NUM and TILED_VERTICAL_NUM styles.