"No one can be told what GeeXLab is, you have to see it for yourself!"

"Stop Playing Games and Start Making Them! With GeeXLab, your are on your way!"


Quick Links
What is GeeXLab
Download GeeXLab
GeeXLab Requirements
Online Help
Articles and Tutorials
Samples Screenshots
Videos

GeeXLab Changelog

XML Ref. Guide
Scripting Ref. Guide
Code Samples

Purchase GeeXLab
GeeXLab SDK

Shader Library

Follow GeeXLab's News
GeeXLab news, articles, tutorials and demos @ Geeks3D.com
GeeXLab @ Twitter GeeXLab RSS Feed

Subscribe to GeeXLab news by email

[ Back to Geeks3D.com ]

GeeXLab

GeeXLab

Laboratory for Real Time 3D Programming (prototyping and demos)
OpenGL, Lua, Python, GLSL,
PhysX and more...

Reference Guide
XML Nodes



Back to homepage
Back to Developer's Guide Index

<mesh> XML Node


XML Node Summary
<mesh
  name=""
  render="TRUE"
  shape_type="SPHERE"
  parent_name=""
  lighting="FALSE"
  texturing="FALSE"
  polygon_mode="SOLID"
  shading_mode="SMOOTH"
  shadow_caster="TRUE"
  vbo="TRUE"
  display_list="FALSE"
  blending="FALSE"
  improve_specular_highlight="TRUE"
  normalize="FALSE"
  two_sides_lighting="FALSE"
  flip_normals="FALSE"
  compute_normals="TRUE"
  compute_tangent_space="FALSE"
  average_normals="FALSE"
  auto_spin="FALSE"
  back_face_culling="FALSE"
  cube_mapping_type="STATIC"
  display_bounding_box="FALSE"
  display_bounding_sphere="FALSE"
  display_tripod="FALSE"
  auto_update_direction="FALSE"
  nx_add_to_physics_engine="FALSE"
  update_shader_mode="READWRITE"
  display_shadow_silhouette="FALSE"
  display_shadow_volume="FALSE"
  depth_test="TRUE"
  display_vertex_normal="FALSE"
  >
  <add_child
    name=""
    >
  </add_child>
  <alpha_test_params
    active="FALSE"
    func="CMP_FUNC_GREATER"
    ref="0.5"
    >
  </alpha_test_params>
  <blending_params
    active="FALSE"
    src_factor="BLENDING_FACTOR_SRC_ALPHA"
    dst_factor="BLENDING_FACTOR_ONE_MINUS_SRC_ALPHA"
    >
  </blending_params>
  <attach_material
    name=""
    >
  </attach_material>
  <orientation
    ang="0.0"
    x="0.0"
    y="0.0"
    z="0.0"
    >
  </orientation>
  <orientation_pitch_yaw_roll
    pitch="0.0"
    yaw="0.0"
    roll="0.0"
    >
  </orientation_pitch_yaw_roll>
  <pivot_orientation
    ang="0.0"
    x="0.0"
    y="0.0"
    z="0.0"
    >
  </pivot_orientation>
  <pivot_position
    x="0.0"
    y="0.0"
    z="0.0"
    >
  </pivot_position>
  <position
    x="0.0"
    y="0.0"
    z="0.0"
    >
  </position>
  <remove_child
    name=""
    >
  </remove_child>
  <scale_vertices
    x="1.0"
    y="1.0"
    z="1.0"
    >
  </scale_vertices>
  <spin_values
    x="0.0"
    y="0.0"
    z="0.0"
    >
  </spin_values>
  <texture
    texture_unit="0"
    texture_name=""
    material_name=""
    mirror="FALSE"
    u_tile="1.0"
    v_tile="1.0"
    u_offset="0.0"
    v_offset="0.0"
    u_move="0.0"
    v_move="0.0"
    >
  </texture>
  <translate_vertices
    x="0.0"
    y="0.0"
    z="0.0"
    >
  </translate_vertices>
  <vertices_color
    r="1.0"
    g="1.0"
    b="1.0"
    a="1.0"
    >
  </vertices_color>
  <vertices_uv_tiling
    texture_unit="0"
    u_tile="1.0"
    v_tile="1.0"
    >
  </vertices_uv_tiling>
  <plane
    x_size="400.0"
    z_size="400.0"
    num_segs_x="32"
    num_segs_z="32"
    >
  </plane>
  <torus
    radius="60.0"
    vertex_density="15.0"
    section_radius="32"
    >
  </torus>
  <box
    width="100.0"
    height="100.0"
    depth="100.0"
    w_segs="5"
    d_segs="5"
    h_segs="5"
    material_face_posx=""
    material_face_negx=""
    material_face_posy=""
    material_face_negx=""
    material_face_posz=""
    material_face_negx=""
    >
  </box>
  <disc
    radius="20.0"
    radius_density="3"
    opening_angle="360.0"
    slices="20"
    >
  </disc>
  <cylinder
    radius="20.0"
    stacks="10"
    slices="10"
    height="100"
    >
  </cylinder>
  <ring
    radius="50.0"
    thickness="10.0"
    sides="10"
    >
  </ring>
  <sphere
    radius="20.0"
    stacks="10"
    slices="10"
    >
  </sphere>
  <terrain
    heightmap=""
    patch_num_segs="32"
    vertical_scale="50.0"
    patch_size="400.0"
    >
  </terrain>
  <vb_quad
    num_vb_quad="1"
    >
  </vb_quad>
  <nx_linear_velocity
    x="0.0"
    y="-9.81"
    z="0.0"
    damping="0.5"
    sleep_threshold="0.14*0.14"
    >
  </nx_linear_velocity>
  <nx_angular_velocity
    x="0.0"
    y="-9.81"
    z="0.0"
    damping="0.5"
    sleep_threshold="0.15*0.15"
    >
  </nx_angular_velocity>
  <nx_misc_data 
    mass="0.0"
    density="0.0"
    actor_type="DYNAMIC"
    >
  </nx_misc_data >
</mesh>


<mesh>

Description
A mesh is a set of triangular faces that allows to represent any type of 3d shape: starting from the basic built-in shapes (plane, torus, sphere) to complex shapes created with modeling softwares such as 3D Studio MAX or Blender.

mesh element has 32 attributes and 28 sub-element(s)

Attributes
  • name [STRING]: Name of mesh
  • render [BOOLEAN]: Activates (TRUE) or desactivates (FALSE) the rendering of the mesh. - Default value = TRUE
  • shape_type [ENUM]: Sets the type of the mesh shype. - Default value = SPHERE - Values = PLANE, TORUS, SPHERE, DISC, RING, CYLINDER, BOX, VB_QUAD, TERRAIN_PATCH, MODEL_SUB_MESH
  • parent_name [STRING]: Name of parent object
  • lighting [BOOLEAN]: Activates (TRUE) or desactivates (FALSE default) the lighting computations - Default value = FALSE
  • texturing [BOOLEAN]: Activates (TRUE ) or desactivates (FALSE default) application of textures. - Default value = FALSE
  • polygon_mode [STRING]: Sets the render mode for a mesh: SOLID for filled faces, WIREFRAME for faces rendered by their edges only. - Default value = SOLID - Values = SOLID, WIREFRAME
  • shading_mode [STRING]: Sets the coloring mode of faces. - Default value = SMOOTH
  • shadow_caster [BOOLEAN]: Activates (TRUE default) or desactivates (FALSE ) the projection of volumic shadows. - Default value = TRUE
  • vbo [BOOLEAN]: Activates (TRUE ) or desactivates (FALSE default) the use of the Vertex Buffer Objects). The VBO allows to use the hardware vertex buffer to store more efficiently a mesh in memory. It is recommended to use VBO for large static meshes (meshes non affected by vertices transformations ). - Default value = TRUE
  • display_list [BOOLEAN]: Activates (TRUE ) or desactivates (FALSE default) the use of OpenGL display lists to render mesh's geometry. - Default value = FALSE
  • blending [BOOLEAN]: Activates (TRUE ) or desactivates (FALSE default) the blending of colors. - Default value = FALSE
  • improve_specular_highlight [BOOLEAN]: Allows to improve the specular highlights by a method applied to true 'half vectors'. Gives more realistic highlights but also a load on perfomances. - Default value = TRUE
  • normalize [BOOLEAN]: Activates (TRUE) or desactivates (FALSE default) the normalization of vertices normals after a call to SetObjectScale(). - Default value = FALSE
  • two_sides_lighting [BOOLEAN]: (TRUE) or desactivates (FALSE default) the lighting computations on both sides back and front of the mesh polygons. - Default value = FALSE
  • flip_normals [BOOLEAN]: Activates (TRUE) or desactivates (FALSE default) the inversion of the mesh faces normals. - Default value = FALSE
  • compute_normals [BOOLEAN]: Activates (TRUE default) or desactivates (FALSE) the computation of vertices normals. - Default value = TRUE
  • compute_tangent_space [BOOLEAN]: Activates (TRUE default ) or desactivates (FALSE) the computation of tangent space normals of vertices.Useful for bump mapping. - Default value = FALSE
  • average_normals [BOOLEAN]: Activates (TRUE ) or desactivates (FALSE default) the computation of the normals average. - Default value = FALSE
  • auto_spin [BOOLEAN]: Activates (TRUE ) or desactivates (FALSE default) the rotation around the local system axis as specified in the tag. - Default value = FALSE
  • back_face_culling [BOOLEAN]: Activates (TRUE) or desactivates (FALSE default) the suppression of backfaces. - Default value = FALSE
  • cube_mapping_type [STRING]: Specify the type of cube mapping to apply to the mesh.STATIC sets a cube mapping at initilization time. This cube mapping is quick to render but won't reflect any change in the mesh environement. DYNAMIC sets a dynamic cube mapping updated every frame and loading the performances accordingly. - Default value = STATIC
  • display_bounding_box [BOOLEAN]: Activates (TRUE ) or desactivates (FALSE default) the rendering of the bounding box. - Default value = FALSE
  • display_bounding_sphere [BOOLEAN]: Activates (TRUE ) or desactivates (FALSE default) the rendering of the bounding sphere. - Default value = FALSE
  • display_tripod [BOOLEAN]: Activates (TRUE ) or desactivates (FALSE default) the rendering of the local system with the following color code : X axis, Red ; Y axis Green; Z axis Blue. - Default value = FALSE
  • auto_update_direction [BOOLEAN]: Activates (TRUE ) or desactivates (FALSE default) the automatic update of direction (Z axis) for the local system. - Default value = FALSE
  • nx_add_to_physics_engine [BOOLEAN]: Activates (TRUE) or desactivates (FALSE default )physics engine management by PhysX. The physics must be activated in then node. - Default value = FALSE
  • update_shader_mode [ENUM]: Sets the read/write mode of the mesh internal shader.An object internal shader differs from a program shader: it is an Ozone3d concept with all the textures, lighting , wireframe etc of an object. Usually the changes of this shader in a parent object (often a model) is passed to the childrens. With the READONLY mode this update of the child shader is not performed. - Default value = READWRITE - Values = READWRITE, READONLY
  • display_shadow_silhouette [STRING]: Activates (TRUE) or desactivates (FALSE default ) the rendering of the silhouettes with the volumic shadows. - Default value = FALSE
  • display_shadow_volume [STRING]: Activates (TRUE) or desactivates (FALSE default ) the rendering of volumic shadows. - Default value = FALSE
  • depth_test [STRING]: Activates (TRUE default) or desactivates (FALSE ) the depth test for the mesh. - Default value = TRUE
  • display_vertex_normal [BOOLEAN]: Draws vertices normals. - Default value = FALSE

Code sample :

<mesh name="torus" shape_type="TORUS" render="TRUE">
<position x="0.0" y="0.0" z="0.0" />
<torus radius="30.0" vertex_density="15" section_radius="5.0" />
<attach_material name="torusMat" />
</mesh>

<add_child>

Description
Allows to add a child to the current mesh.Useful for building easily complex hierarchies. The transformations rotation ans translation of the current mesh will affect the children.

add_child element has 1 attributes and 0 sub-element(s)

Attributes
  • name [STRING]: name of the object to add, this object must exist.

<alpha_test_params>

Description
Sets the parameters of the hardware alpha test.

alpha_test_params element has 3 attributes and 0 sub-element(s)

Attributes
  • active [BOOLEAN]: Activates (TRUE) or desactivates (FALSE default) the alpha test. - Default value = FALSE
  • func [ENUM]: - Default value = CMP_FUNC_GREATER - Values = CMP_FUNC_NEVER, CMP_FUNC_LESS, CMP_FUNC_LESS_OR_EQUAL, CMP_FUNC_GREATER, CMP_FUNC_GREATER_OR_EQUAL, CMP_FUNC_EQUAL, CMP_FUNC_NOT_EQUAL, CMP_FUNC_ALWAYS
  • ref [REAL]: Value to which the incoming value of alpha is compared. This value is comprised between 0.0 and 1.0 - Default value = 0.5

<blending_params>

Description
Specify the blending parameters in blending equation C = Cs*Sf + Cd*Df where C is the final color (R, G, B, A), Cs the source color or incoming (Rs, Gs, Bs, As) and Cd is current color in framebuffer (Rd, Gd, Bd, Ad). Sf is the blending source factor(Sr, Sg, Sb, Sa) and Df is the blending destination factor(Dr, Dg, Db, Da).

blending_params element has 3 attributes and 0 sub-element(s)

Attributes
  • active [BOOLEAN]: Activates (TRUE) or desactivates (FALSE default) the blending. - Default value = FALSE
  • src_factor [ENUM]: Specify the blending source factor. Authorised values are: BLENDING_FACTOR_ZERO: (0 0 0 0) BLENDING_FACTOR_ONE: (1 1 1 1) BLENDING_FACTOR_SRC_ALPHA: (As, As, As, As) BLENDING_FACTOR_ONE_MINUS_DST_ALPHA: (1-Ad, 1-Ad, 1-Ad, 1-Ad) BLENDING_FACTOR_ONE_MINUS_DST_COLOR: (1-Rd, 1-Gd, 1-Bd, 1-Ad) BLENDING_FACTOR_ONE_MINUS_SRC_ALPHA: (1-As, 1-As, 1-As, 1-As) BLENDING_FACTOR_DST_COLOR: (Rd, Gd, Bd, Ad) BLENDING_FACTOR_DST_ALPHA: (Ad, Ad, Ad, Ad) BLENDING_FACTOR_SRC_COLOR: (Rs, Gs, Bs, As) BLENDING_FACTOR_ONE_MINUS_SRC_COLOR: (1-Rs, 1-Gs, 1-Bs, 1-As) - Default value = BLENDING_FACTOR_SRC_ALPHA - Values = BLENDING_FACTOR_ZERO, BLENDING_FACTOR_ONE, BLENDING_FACTOR_SRC_ALPHA, BLENDING_FACTOR_ONE_MINUS_DST_ALPHA, BLENDING_FACTOR_ONE_MINUS_DST_COLOR, BLENDING_FACTOR_ONE_MINUS_SRC_ALPHA, BLENDING_FACTOR_DST_COLOR, BLENDING_FACTOR_DST_ALPHA, BLENDING_FACTOR_SRC_COLOR, BLENDING_FACTOR_ONE_MINUS_SRC_COLOR
  • dst_factor [ENUM]: Specify the blending destination factor. Authorised values are: BLENDING_FACTOR_ZERO: (0 0 0 0) BLENDING_FACTOR_ONE: (1 1 1 1) BLENDING_FACTOR_SRC_ALPHA: (As, As, As, As) BLENDING_FACTOR_ONE_MINUS_DST_ALPHA: (1-Ad, 1-Ad, 1-Ad, 1-Ad) BLENDING_FACTOR_ONE_MINUS_DST_COLOR: (1-Rd, 1-Gd, 1-Bd, 1-Ad) BLENDING_FACTOR_ONE_MINUS_SRC_ALPHA: (1-As, 1-As, 1-As, 1-As) BLENDING_FACTOR_DST_COLOR: (Rd, Gd, Bd, Ad) BLENDING_FACTOR_DST_ALPHA: (Ad, Ad, Ad, Ad) BLENDING_FACTOR_SRC_COLOR: (Rs, Gs, Bs, As) BLENDING_FACTOR_ONE_MINUS_SRC_COLOR: (1-Rs, 1-Gs, 1-Bs, 1-As) - Default value = BLENDING_FACTOR_ONE_MINUS_SRC_ALPHA - Values = BLENDING_FACTOR_ZERO, BLENDING_FACTOR_ONE, BLENDING_FACTOR_SRC_ALPHA, BLENDING_FACTOR_ONE_MINUS_DST_ALPHA, BLENDING_FACTOR_ONE_MINUS_DST_COLOR, BLENDING_FACTOR_ONE_MINUS_SRC_ALPHA, BLENDING_FACTOR_DST_COLOR, BLENDING_FACTOR_DST_ALPHA, BLENDING_FACTOR_SRC_COLOR, BLENDING_FACTOR_ONE_MINUS_SRC_COLOR

<attach_material>

Description
Allows to attach a material to a mesh.Replaces the material allready assigned

attach_material element has 1 attributes and 0 sub-element(s)

Attributes
  • name [STRING]: name of the material.

<orientation>

Description
Sets the mesh orientation around an arbitrary axis of its local system.

orientation element has 4 attributes and 0 sub-element(s)

Attributes
  • ang [REAL]: Rotation angle in degrees - Default value = 0.0
  • x [REAL]: X component of the rotation axis - Default value = 0.0
  • y [REAL]: Y component of the rotation axis - Default value = 0.0
  • z [REAL]: Z component of the rotation axis - Default value = 0.0

<orientation_pitch_yaw_roll>

Description
Sets the mesh orientation around the axis of its local system.

orientation_pitch_yaw_roll element has 3 attributes and 0 sub-element(s)

Attributes
  • pitch [REAL]: Rotation angle in degrees around the X axis. - Default value = 0.0
  • yaw [REAL]: Rotation angle in degrees around the Y axis. - Default value = 0.0
  • roll [REAL]: Rotation angle in degrees around the Z axis. - Default value = 0.0

<pivot_orientation>

Description
Allows to set the pivot (tripod) orientation of the mesh without changing vertices positions.Useful in animations

pivot_orientation element has 4 attributes and 0 sub-element(s)

Attributes
  • ang [REAL]: Rotation angle in degrees - Default value = 0.0
  • x [REAL]: X component of the rotation axis - Default value = 0.0
  • y [REAL]: Y component of the rotation axis - Default value = 0.0
  • z [REAL]: Z component of the rotation axis - Default value = 0.0

<pivot_position>

Description
Allows to set the pivot (tripod) position of the mesh without changing vertices positions.Useful in animations

pivot_position element has 3 attributes and 0 sub-element(s)

Attributes
  • x [REAL]: X coordinate of position. - Default value = 0.0
  • y [REAL]: Y coordinate of position. - Default value = 0.0
  • z [REAL]: Z coordinate of position. - Default value = 0.0

<position>

Description
Specify the mesh position in its local system or relative to its parent (usually a model).

position element has 3 attributes and 0 sub-element(s)

Attributes
  • x [REAL]: X coordinate of position. - Default value = 0.0
  • y [REAL]: Y coordinate of position. - Default value = 0.0
  • z [REAL]: Z coordinate of position. - Default value = 0.0

<remove_child>

Description
Allows to remove a child from its parent mesh.This allows to build complex hierarchies.

remove_child element has 1 attributes and 0 sub-element(s)

Attributes
  • name [STRING]: name of child.

<scale_vertices>

Description
Allows to apply a scale factors to each vertex.The scale factor are set along the 3 axis.

scale_vertices element has 3 attributes and 0 sub-element(s)

Attributes
  • x [REAL]: Scale factor in X - Default value = 1.0
  • y [REAL]: Scale factor in Y - Default value = 1.0
  • z [REAL]: Scale factor in Z - Default value = 1.0

<spin_values>

Description
Specify the rotation angle around the X,Y and Z axis. Each frame rotation angle are incremented by this spin values. It provides a simple animation around the local system axis

spin_values element has 3 attributes and 0 sub-element(s)

Attributes
  • x [REAL]: Rotation angle in degrees around the X axis - Default value = 0.0
  • y [REAL]: Rotation angle in degrees around the Y axis - Default value = 0.0
  • z [REAL]: Rotation angle in degrees around the Z axis - Default value = 0.0

<texture>

Description
Specify all parameters needed for applying a texture to mesh.

texture element has 10 attributes and 0 sub-element(s)

Attributes
  • texture_unit [INTEGER]: texture unit to use for the texture. Values range from 0 to 7. - Default value = 0
  • texture_name [STRING]: Name of texture.
  • material_name [STRING]: Name of material
  • mirror [STRING]: Activates (TRUE) or desactivates (FALSE default ) the mirror reflection mode. Useful to simulate reflecting srufaces like water, mirrors.. - Default value = FALSE
  • u_tile [REAL]: tiling factor for the u coordinate. - Default value = 1.0
  • v_tile [REAL]: tiling factor for the v coordinate. - Default value = 1.0
  • u_offset [REAL]: Offset of u coordinate. - Default value = 0.0
  • v_offset [REAL]: Offset of v coordinate. - Default value = 0.0
  • u_move [REAL]: increment by frame for the u coordinate. - Default value = 0.0
  • v_move [REAL]: increment by frame for the v coordinate. - Default value = 0.0

<translate_vertices>

Description
Allows to translate the vertices of a mesh without affecting the pivot point position.

translate_vertices element has 3 attributes and 0 sub-element(s)

Attributes
  • x [REAL]: X component of the translation vector. - Default value = 0.0
  • y [REAL]: Y component of the translation vector. - Default value = 0.0
  • z [REAL]: Z component of the translation vector. - Default value = 0.0

<vertices_color>

Description
Sets a new color to apply to all vertiecs of the mesh.

vertices_color element has 4 attributes and 0 sub-element(s)

Attributes
  • r [REAL]: Red component of the - Default value = 1.0
  • g [REAL]: Green component of the - Default value = 1.0
  • b [REAL]: Blue component of the - Default value = 1.0
  • a [REAL]: Alpha component of the - Default value = 1.0

<vertices_uv_tiling>

Description
Applies a tiling factor to the uv textures coordinates for a given texture unit.

vertices_uv_tiling element has 3 attributes and 0 sub-element(s)

Attributes
  • texture_unit [INTEGER]: Number of the texture unit. - Default value = 0 - Values = [0 ; 7]
  • u_tile [REAL]: U component of the tiling factor - Default value = 1.0
  • v_tile [REAL]: V component of the tiling factor - Default value = 1.0

<plane>

Description
Initializes a plane mesh and sets its parameters.

plane element has 4 attributes and 0 sub-element(s)

Attributes
  • x_size [REAL]: Dimention of the mesh plane in the X direction. - Default value = 400.0
  • z_size [REAL]: Dimention of the mesh plane in the Z direction. - Default value = 400.0
  • num_segs_x [INTEGER]: Number of segments in the X direction. - Default value = 32
  • num_segs_z [INTEGER]: Number of segments in the Z direction. - Default value = 32

<torus>

Description
Initializes a torus mesh and sets its parameters.

torus element has 3 attributes and 0 sub-element(s)

Attributes
  • radius [REAL]: main radius of torus. - Default value = 60.0
  • vertex_density [REAL]: Number of vertices along a circumference of the torus. - Default value = 15.0
  • section_radius [INTEGER]: Section radius of torus. - Default value = 32

<box>

Description
Initializes a box mesh and sets its parameters.

box element has 12 attributes and 0 sub-element(s)

Attributes
  • width [REAL]: Width of the box. - Default value = 100.0
  • height [REAL]: Height of the box. - Default value = 100.0
  • depth [REAL]: Depth of the box. - Default value = 100.0
  • w_segs [INTEGER]: Number of segments in X direction. - Default value = 5
  • d_segs [INTEGER]: Number of segments in Y direction. - Default value = 5
  • h_segs [INTEGER]: Number of segments in Z direction. - Default value = 5
  • material_face_posx [STRING]: Name of material to attach to the RIGHT face (POS X)
  • material_face_negx [STRING]: Name of material to attach to the LEFT face (NEG X)
  • material_face_posy [STRING]: Name of material to attach to the UPPER face (POS Y)
  • material_face_negx [STRING]: Name of material to attach to the BOTTOM face (NEG Y)
  • material_face_posz [STRING]: Name of material to attach to the FRONT face (POS Z)
  • material_face_negx [STRING]: Name of material to attach to the BACK face (NEG Z)

<disc>

Description
Initializes a disc mesh and sets its parameters.

disc element has 4 attributes and 0 sub-element(s)

Attributes
  • radius [REAL]: Radius of disc. - Default value = 20.0
  • radius_density [INTEGER]: Number of vertices along a radius segment. - Default value = 3
  • opening_angle [REAL]: Opening angle in degrees. - Default value = 360.0
  • slices [INTEGER]: Number of segments in the disc cirumference. - Default value = 20

<cylinder>

Description
Initializes a cylinder mesh and sets its parameters.

cylinder element has 4 attributes and 0 sub-element(s)

Attributes
  • radius [REAL]: radius of cylinder. - Default value = 20.0
  • stacks [INTEGER]: Number of horizontal elements. - Default value = 10
  • slices [INTEGER]: Number of segments in the cylinder circumference. - Default value = 10
  • height [REAL]: Height of the cylinder. - Default value = 100

<ring>

Description
Initializes a ring mesh and sets its parameters.

ring element has 3 attributes and 0 sub-element(s)

Attributes
  • radius [REAL]: Radius of ring. - Default value = 50.0
  • thickness [REAL]: Thickness of ring. - Default value = 10.0
  • sides [INTEGER]: Number of segments in the ring circumference. - Default value = 10

<sphere>

Description
Initializes a sphere mesh and sets its parameters.

sphere element has 3 attributes and 0 sub-element(s)

Attributes
  • radius [REAL]: Radius of sphere. - Default value = 20.0
  • stacks [INTEGER]: Number of horizontal elements. - Default value = 10
  • slices [INTEGER]: Number of segments in the sphere circumference. - Default value = 10

<terrain>

Description
Initializes a mesh of type TERRAIN_PATCH and sets its parameters.

terrain element has 4 attributes and 0 sub-element(s)

Attributes
  • heightmap [STRING]: Sets the elevation texture which will code for the terrain heights. This must be a square (or power of two) texture : 256x256 ; 400x400, 2048x2048.The resolution must be 24 bits per pixel. BEWARE : unlike other nodes dealing with textures heightmap corresponds to the name of the image file, ie the relative path on the disc drive.
  • patch_num_segs [INTEGER]: Number of segments for each side of the patch. - Default value = 32
  • vertical_scale [REAL]: Elevation factor (scale factor between lowest and highest elevation value). - Default value = 50.0
  • patch_size [REAL]: Patch dimention. - Default value = 400.0

<vb_quad>

Description
Initializes a mesh of type VB_QUAD and sets its parameters. Alternative to the primitive quad when the number of quads exceed a hundred. For the rendering of 500 quads vb_quad if 2 or 3 times faster.(see the 'Animated grass tutorial' 84)

vb_quad element has 1 attributes and 0 sub-element(s)

Attributes
  • num_vb_quad [INTEGER]: Maximum number of vvb_quads maneged by the mesh.Allows to reserve in memory the space for the corresponding number of vb_quads. Use a LUA or PYTHON script to initialize the position of each quad with a call to HYP_MeshVBQuad_AddQuad().See the 'Animated grass tutorial' (84). - Default value = 1

<nx_linear_velocity>

Description
Sets the linear velocity of an object. The parameters are taken into account only if the physics engine has been activated.

nx_linear_velocity element has 5 attributes and 0 sub-element(s)

Attributes
  • x [REAL]: Coordinates in X of the gravity vector. - Default value = 0.0
  • y [REAL]: Coordinates in Y of the gravity vector. - Default value = -9.81
  • z [REAL]: Coordinates in Z of the gravity vector. - Default value = 0.0
  • damping [REAL]: Damping factor of speed. - Default value = 0.5
  • sleep_threshold [REAL]: Threshold under which a physical object is considered inactive (sleeping) - Default value = 0.14*0.14

<nx_angular_velocity>

Description
Sets the velocity of an object. The parameters are taken into account only if the physics engine has been activated.

nx_angular_velocity element has 5 attributes and 0 sub-element(s)

Attributes
  • x [REAL]: Coordinates in X of the gravity vector. - Default value = 0.0
  • y [REAL]: Coordinates in Y of the gravity vector. - Default value = -9.81
  • z [REAL]: Coordinates in Z of the gravity vector. - Default value = 0.0
  • damping [REAL]: Damping factor of speed. - Default value = 0.5
  • sleep_threshold [REAL]: Threshold under which a physical object is considered inactive (sleeping) - Default value = 0.15*0.15

<nx_misc_data >

Description
Sets the type

nx_misc_data element has 3 attributes and 0 sub-element(s)

Attributes
  • mass [REAL]: Concentional mass of object. - Default value = 0.0
  • density [REAL]: Density of object as evaluated by physics engine.For a DYNAMIC actor mass and density can not have both zero value. - Default value = 0.0
  • actor_type [ENUM]: Type of actor (object).A STATIC actor can interact with moving actors but doesn't move itself. A KINEMATIC actor has a fixed movement (limited by axis, a joint). A DYNAMIC actor is free to move and interact in every direction. - Default value = DYNAMIC - Values = STATIC|KINEMATIC|DYNAMIC
Random Projects

PyOpenGL_LAB
PyOpenGL_LAB

Chromatic Aberration
Chromatic Aberration

Chromatic Aberration
Chromatic Aberration


Random Code Samples

Hierarchy
Hierarchy

3DS Format Loading
3DS Format Loading

Simple PhysX demo
Simple PhysX demo



(C)2009-2010 Geeks3D.com