[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

4.10.8 Genmesh Mesh Object

Written by Jorrit Tyberghein, [email protected].

A Genmesh is a complex set of 3D triangles (just like a 3D sprite) that normally doesn't support any automatic animation (unlike a 3D sprite) unless you use a genmesh animation plugin (see section GenMesh Animation). In general genmeshes are ideal for high detailed objects. Genmeshes also support multiple materials using submeshes.

There is also a HOWTO discussing the creation of genmeshes. See section Creating a Genmesh Mesh.

Basic Structure

The following SCF class names are used (for csLoadPlugin):

Objects in this plugin implement the following SCF interfaces, which you can retrieve with scfQueryInterface:

Factory State Interface

Use the `iGeneralFactoryState' SCF interface to access settings for a genmesh factory. The definition of this interface can be found in `CS/include/imesh/genmesh.h' and that is also the include file you need to include in your applications to use this plugin. Using this interface you can access the material, triangles, vertices, texture coordinates, normals, and various other configuration parameters for a genmesh factory.

Factory Loader

Here is a list of all the tags supported by a genmesh factory and their meaning:

Object State Interface

`iGeneralMeshState' (residing in `CS/include/imesh/genmesh.h') is the SCF interface that you can use to manipulate settings for a genmesh object. By using this interface you can access the material, blending mode (mixmode), and various other configuration parameters for a genmesh object.

Object Loader

Here is a list of all the tags supported by a genmesh object and their meaning:

Lighting and Colors

Lighting of genmesh objects is a bit complicated. In this section we describe the different possibilities:


[ < ] [ > ]   [ << ] [ Up ] [ >> ]

This document was generated using texi2html 1.76.